| 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 insertNode() | 7 function insertNode() |
| 8 { | 8 { |
| 9 var dataElement = document.getElementById("data"); | 9 var dataElement = document.getElementById("data"); |
| 10 dataElement.appendChild(document.createElement("a")); | 10 dataElement.appendChild(document.createElement("a")); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 dataTreeElement._expandedChildrenLimit = 5; | 26 dataTreeElement._expandedChildrenLimit = 5; |
| 27 dataTreeElement.reveal(); | 27 dataTreeElement.reveal(); |
| 28 dataTreeElement.expand(); | 28 dataTreeElement.expand(); |
| 29 InspectorTest.deprecatedRunAfterPendingDispatches(step2); | 29 InspectorTest.deprecatedRunAfterPendingDispatches(step2); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function step2() | 32 function step2() |
| 33 { | 33 { |
| 34 InspectorTest.addResult("=========== Loaded 5 children ==========="); | 34 InspectorTest.addResult("=========== Loaded 5 children ==========="); |
| 35 dumpElementsTree(); | 35 dumpElementsTree(); |
| 36 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_u
pdateModifiedNodes", step3); | 36 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "_updat
eModifiedNodes", step3); |
| 37 InspectorTest.evaluateInPage("insertNode()"); | 37 InspectorTest.evaluateInPage("insertNode()"); |
| 38 } | 38 } |
| 39 | 39 |
| 40 function step3() | 40 function step3() |
| 41 { | 41 { |
| 42 InspectorTest.addResult("=========== Modified children ==========="); | 42 InspectorTest.addResult("=========== Modified children ==========="); |
| 43 dumpElementsTree(); | 43 dumpElementsTree(); |
| 44 dataTreeElement.expandAllButtonElement.button.click(); | 44 dataTreeElement.expandAllButtonElement.button.click(); |
| 45 InspectorTest.deprecatedRunAfterPendingDispatches(step4); | 45 InspectorTest.deprecatedRunAfterPendingDispatches(step4); |
| 46 } | 46 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 71 <div id="id7">7</div> | 71 <div id="id7">7</div> |
| 72 <div id="id8">8</div> | 72 <div id="id8">8</div> |
| 73 <div id="id9">9</div> | 73 <div id="id9">9</div> |
| 74 <div id="id10">10</div> | 74 <div id="id10">10</div> |
| 75 </div> | 75 </div> |
| 76 <p> | 76 <p> |
| 77 Tests that src and href element targets are rewritten properly. | 77 Tests that src and href element targets are rewritten properly. |
| 78 </p> | 78 </p> |
| 79 </body> | 79 </body> |
| 80 </html> | 80 </html> |
| OLD | NEW |