| 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 var namePrompt = new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebIns
pector.cssMetadata().allProperties(), null, true); | 9 var namePrompt = new Elements.StylesSidebarPane.CSSPropertyPrompt(SDK.cssMet
adata().allProperties(), null, true); |
| 10 var valuePrompt = valuePromptFor("color"); | 10 var valuePrompt = valuePromptFor("color"); |
| 11 | 11 |
| 12 function valuePromptFor(name) | 12 function valuePromptFor(name) |
| 13 { | 13 { |
| 14 return new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebInspector
.cssMetadata().propertyValues(name), null, false); | 14 return new Elements.StylesSidebarPane.CSSPropertyPrompt(SDK.cssMetadata(
).propertyValues(name), null, false); |
| 15 } | 15 } |
| 16 | 16 |
| 17 InspectorTest.runTestSuite([ | 17 InspectorTest.runTestSuite([ |
| 18 function testEmptyName(next) | 18 function testEmptyName(next) |
| 19 { | 19 { |
| 20 testAgainstGolden(namePrompt, "", false, [], ["width"], next); | 20 testAgainstGolden(namePrompt, "", false, [], ["width"], next); |
| 21 }, | 21 }, |
| 22 | 22 |
| 23 function testEmptyNameForce(next) | 23 function testEmptyNameForce(next) |
| 24 { | 24 { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 </script> | 112 </script> |
| 113 </head> | 113 </head> |
| 114 | 114 |
| 115 <body onload="runTest()"> | 115 <body onload="runTest()"> |
| 116 <p> | 116 <p> |
| 117 Tests that autocompletions are computed correctly when editing the Styles pane. | 117 Tests that autocompletions are computed correctly when editing the Styles pane. |
| 118 </p> | 118 </p> |
| 119 </body> | 119 </body> |
| 120 </html> | 120 </html> |
| OLD | NEW |