3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
9 var dataElement = document.getElementById("data");
10 dataElement.appendChild(document.createElement("a"));
11 dataElement.removeChild(document.getElementById("id2"));
12 var aElement = document.createElement("a");
13 dataElement.insertBefore(aElement, document.getElementById("id1"));
14 dataElement.appendChild(aElement);
15 dataElement.insertBefore(aElement, document.getElementById("id1"));
22 InspectorTest.nodeWithId("data", step1);
26 dataTreeElement = InspectorTest.firstElementsTreeOutline().findTreeElement(node);
27 dataTreeElement._expandedChildrenLimit = 5;
28 dataTreeElement.reveal();
29 dataTreeElement.expand();
30 InspectorTest.runAfterPendingDispatches(step2);
35 results.push("=========== Loaded 5 children ===========");
37 InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.prototype, "_updateModifiedNodes", step3);
38 InspectorTest.evaluateInPage("insertNode()");
43 results.push("=========== Modified children ===========");
45 dataTreeElement.handleLoadAllChildren();
46 InspectorTest.runAfterPendingDispatches(step4);
51 results.push("=========== Loaded all children ===========");
53 InspectorTest.addResults(results);
54 InspectorTest.completeTest();
57 function dumpElementsTree()
59 InspectorTest.dumpElementsTree(null, 0, results);
65 <body onload="runTest()">
76 <div id="id10">10</div>
79 Tests that src and href element targets are rewritten properly.