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"));
21 InspectorTest
.nodeWithId("data", step1
);
25 dataTreeElement
= InspectorTest
.firstElementsTreeOutline().findTreeElement(node
);
26 dataTreeElement
._expandedChildrenLimit
= 5;
27 dataTreeElement
.reveal();
28 dataTreeElement
.expand();
29 InspectorTest
.runAfterPendingDispatches(step2
);
34 InspectorTest
.addResult("=========== Loaded 5 children ===========");
36 InspectorTest
.addSniffer(WebInspector
.ElementsTreeOutline
.prototype, "_updateModifiedNodes", step3
);
37 InspectorTest
.evaluateInPage("insertNode()");
42 InspectorTest
.addResult("=========== Modified children ===========");
44 dataTreeElement
.expandAllButtonElement
.button
.click();
45 InspectorTest
.runAfterPendingDispatches(step4
);
50 InspectorTest
.addResult("=========== Loaded all children ===========");
52 InspectorTest
.completeTest();
55 function dumpElementsTree()
57 InspectorTest
.dumpElementsTree(null, 0);
63 <body onload=
"runTest()">
74 <div id=
"id10">10</div>
77 Tests that src and href element targets are rewritten properly.