| 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 <div id="parent"> | 5 <div id="parent"> |
| 6 <div id=foo><div id="child"></div></div> | 6 <div id=foo><div id="child"></div></div> |
| 7 <div id="sibling"><div id="child-of-sibling"></div></div> | 7 <div id="sibling"><div id="child-of-sibling"></div></div> |
| 8 </div> | 8 </div> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| 11 function modify(id) | 11 function modify(id) |
| 12 { | 12 { |
| 13 document.getElementById(id).setAttribute("fake", "modified"); | 13 document.getElementById(id).setAttribute("fake", "modified"); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 InspectorTest.runTestSuite([ | 18 InspectorTest.runTestSuite([ |
| 19 function setupTest(next) | 19 function setupTest(next) |
| 20 { | 20 { |
| 21 InspectorTest.selectNodeAndWaitForStylesWithComputed("foo", didSelec
tElement); | 21 InspectorTest.selectNodeAndWaitForStylesWithComputed("foo", didSelec
tElement); |
| 22 | 22 |
| 23 function didSelectElement() | 23 function didSelectElement() |
| 24 { | 24 { |
| 25 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototyp
e, "update", InspectorTest.addResult.bind(InspectorTest, "Requested StyleSidebar
Pane update"), true); | 25 InspectorTest.addSniffer(Elements.StylesSidebarPane.prototype, "
update", InspectorTest.addResult.bind(InspectorTest, "Requested StyleSidebarPane
update"), true); |
| 26 next(); | 26 next(); |
| 27 } | 27 } |
| 28 }, | 28 }, |
| 29 | 29 |
| 30 function testModifySibling(next) | 30 function testModifySibling(next) |
| 31 { | 31 { |
| 32 InspectorTest.evaluateInPage("modify(\"sibling\")", next); | 32 InspectorTest.evaluateInPage("modify(\"sibling\")", next); |
| 33 }, | 33 }, |
| 34 | 34 |
| 35 function testModifySiblingChild(next) | 35 function testModifySiblingChild(next) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 </script> | 52 </script> |
| 53 | 53 |
| 54 </head> | 54 </head> |
| 55 | 55 |
| 56 <body onload="runTest()"> | 56 <body onload="runTest()"> |
| 57 <p>Tests show that ssp isn't rebuild on every dom mutation</p> | 57 <p>Tests show that ssp isn't rebuild on every dom mutation</p> |
| 58 | 58 |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |