| 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 InspectorTest.runTestSuite([ | 9 InspectorTest.runTestSuite([ |
| 10 function selectInitialNode(next) | 10 function selectInitialNode(next) |
| 11 { | 11 { |
| 12 InspectorTest.selectNodeAndWaitForStyles("inspected", next); | 12 InspectorTest.selectNodeAndWaitForStyles("inspected", next); |
| 13 }, | 13 }, |
| 14 | 14 |
| 15 function editSelector(next) | 15 function editSelector(next) |
| 16 { | 16 { |
| 17 var section = WebInspector.panels.elements.sidebarPanes.styles.secti
ons[0][1]; | 17 var section = InspectorTest.firstMatchedStyleSection(); |
| 18 section.startEditingSelector(); | 18 section.startEditingSelector(); |
| 19 section._selectorElement.textContent = "#inspected, .INSERTED-OTHER-
SELECTOR"; | 19 section._selectorElement.textContent = "#inspected, .INSERTED-OTHER-
SELECTOR"; |
| 20 InspectorTest.waitForSelectorCommitted(next); | 20 InspectorTest.waitForSelectorCommitted(next); |
| 21 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent(
"Enter")); | 21 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent(
"Enter")); |
| 22 }, | 22 }, |
| 23 | 23 |
| 24 function testDisableProperty(next) | 24 function testDisableProperty(next) |
| 25 { | 25 { |
| 26 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("color"
); | 26 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("color"
); |
| 27 InspectorTest.waitForStyleApplied(onPropertyDisabled); | 27 InspectorTest.waitForStyleApplied(onPropertyDisabled); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 <body onload="runTest()"> | 47 <body onload="runTest()"> |
| 48 <p> | 48 <p> |
| 49 Verifies that sequence of setting selector and disabling property works. | 49 Verifies that sequence of setting selector and disabling property works. |
| 50 </p> | 50 </p> |
| 51 | 51 |
| 52 <div id="inspected">Red text here.</div> | 52 <div id="inspected">Red text here.</div> |
| 53 | 53 |
| 54 </body> | 54 </body> |
| 55 </html> | 55 </html> |
| OLD | NEW |