| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |