Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-3/style-autocomplete.html

Issue 2215253002: DevTools: do not use CSSMetadata instances for autocompletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-meta-data
Patch Set: address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 9 var namePrompt = new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebIns pector.CSSMetadata.cssPropertiesMetainfo.allProperties(), null, true);
10 var namePrompt = new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebIns pector.CSSMetadata.cssPropertiesMetainfo, null, true);
11 var valuePrompt = valuePromptFor("color"); 10 var valuePrompt = valuePromptFor("color");
12 11
13 function valuePromptFor(name) 12 function valuePromptFor(name)
14 { 13 {
15 return new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebInspector .CSSMetadata.keywordsForProperty(name), null, false); 14 return new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebInspector .CSSMetadata.propertyValues(name), null, false);
16 } 15 }
17 16
18 InspectorTest.runTestSuite([ 17 InspectorTest.runTestSuite([
19 function testEmptyName(next) 18 function testEmptyName(next)
20 { 19 {
21 testAgainstGolden(namePrompt, "", false, [], ["width"], next); 20 testAgainstGolden(namePrompt, "", false, [], ["width"], next);
22 }, 21 },
23 22
24 function testEmptyNameForce(next) 23 function testEmptyNameForce(next)
25 { 24 {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 101 }
103 </script> 102 </script>
104 </head> 103 </head>
105 104
106 <body onload="runTest()"> 105 <body onload="runTest()">
107 <p> 106 <p>
108 Tests that autocompletions are computed correctly when editing the Styles pane. 107 Tests that autocompletions are computed correctly when editing the Styles pane.
109 </p> 108 </p>
110 </body> 109 </body>
111 </html> 110 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698