| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script src="./styles-update-links.js"></script> |
| 6 <style> |
| 7 #pseudo::after { |
| 8 pseudo-property: "12"; |
| 9 color: red; |
| 10 } |
| 11 |
| 12 #pseudo::after { |
| 13 border: 1px solid black; |
| 14 } |
| 15 |
| 16 #pseudo::before { |
| 17 color: blue; |
| 18 } |
| 19 </style> |
| 20 <script> |
| 21 |
| 22 function test() |
| 23 { |
| 24 InspectorTest.runTestSuite([ |
| 25 function selectNodeWithPseudoElements(next) |
| 26 { |
| 27 InspectorTest.selectNodeAndWaitForStyles("pseudo", next); |
| 28 }, |
| 29 |
| 30 function testPseudoSectionPropertyEdit(next) |
| 31 { |
| 32 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("pseudo
-property"); |
| 33 var treeElement = treeItem.section().addNewBlankProperty(1); |
| 34 InspectorTest.waitForStyleApplied(onPropertyInserted); |
| 35 treeElement.applyStyleText("PROPERTY: INSERTED;", true); |
| 36 |
| 37 function onPropertyInserted() |
| 38 { |
| 39 InspectorTest.addResult("\n\n#### AFTER PROPERTY INSERTED ####\n
\n"); |
| 40 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 41 var rules = InspectorTest.getMatchedRules(); |
| 42 InspectorTest.validateRuleRanges("pseudo", rules, next); |
| 43 } |
| 44 } |
| 45 ]); |
| 46 } |
| 47 </script> |
| 48 <link rel="stylesheet" href="../styles/resources/styles-update-links-2.css"></li
nk> |
| 49 <link rel="stylesheet" href="../styles/resources/styles-update-links.css"></link
> |
| 50 </head> |
| 51 |
| 52 <body onload="runTest()"> |
| 53 <p> |
| 54 Tests that links are updated property when editing pseudo element property. |
| 55 </p> |
| 56 |
| 57 <div id="container" class="left-intact should-change"> |
| 58 Red text here. |
| 59 </div> |
| 60 |
| 61 <div id="other"></div> |
| 62 |
| 63 <section id="pseudo"></div> |
| 64 |
| 65 </body> |
| 66 </html> |
| OLD | NEW |