| 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 src="./styles-update-links.js"></script> | 5 <script src="./styles-update-links.js"></script> |
| 6 <style> | 6 <style> |
| 7 #pseudo::after { | 7 #pseudo::after { |
| 8 pseudo-property: "12"; | 8 pseudo-property: "12"; |
| 9 color: red; | 9 color: red; |
| 10 } | 10 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 function test() | 22 function test() |
| 23 { | 23 { |
| 24 InspectorTest.runTestSuite([ | 24 InspectorTest.runTestSuite([ |
| 25 function selectInitialNode(next) | 25 function selectInitialNode(next) |
| 26 { | 26 { |
| 27 InspectorTest.selectNodeAndWaitForStyles("container", next); | 27 InspectorTest.selectNodeAndWaitForStyles("container", next); |
| 28 }, | 28 }, |
| 29 | 29 |
| 30 function testEditSelector(next) | 30 function testEditSelector(next) |
| 31 { | 31 { |
| 32 var section = WebInspector.panels.elements._stylesWidget._sectionBlo
cks[0].sections[3]; | 32 var section = UI.panels.elements._stylesWidget._sectionBlocks[0].sec
tions[3]; |
| 33 section.startEditingSelector(); | 33 section.startEditingSelector(); |
| 34 section._selectorElement.textContent = ".should-change, .INSERTED-OT
HER-SELECTOR"; | 34 section._selectorElement.textContent = ".should-change, .INSERTED-OT
HER-SELECTOR"; |
| 35 InspectorTest.waitForSelectorCommitted(onSelectorEdited); | 35 InspectorTest.waitForSelectorCommitted(onSelectorEdited); |
| 36 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent(
"Enter")); | 36 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent(
"Enter")); |
| 37 | 37 |
| 38 function onSelectorEdited() | 38 function onSelectorEdited() |
| 39 { | 39 { |
| 40 InspectorTest.addResult("\n\n#### AFTER SELECTOR EDIT ####\n\n")
; | 40 InspectorTest.addResult("\n\n#### AFTER SELECTOR EDIT ####\n\n")
; |
| 41 InspectorTest.dumpSelectedElementStyles(true, false, true); | 41 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 42 var rules = InspectorTest.getMatchedRules(); | 42 var rules = InspectorTest.getMatchedRules(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 58 <div id="container" class="left-intact should-change"> | 58 <div id="container" class="left-intact should-change"> |
| 59 Red text here. | 59 Red text here. |
| 60 </div> | 60 </div> |
| 61 | 61 |
| 62 <div id="other"></div> | 62 <div id="other"></div> |
| 63 | 63 |
| 64 <section id="pseudo"></div> | 64 <section id="pseudo"></div> |
| 65 | 65 |
| 66 </body> | 66 </body> |
| 67 </html> | 67 </html> |
| OLD | NEW |