1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
5 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
10 var container
= document
.getElementById("container");
11 var child
= document
.createElement("div");
12 child
.setAttribute("id", "appended");
13 container
.appendChild(child
);
20 InspectorTest
.runTestSuite([
21 function testDumpInitial(next
)
23 function callback(node
)
26 InspectorTest
.addResult("========= Original ========");
27 InspectorTest
.dumpElementsTree(containerNode
);
30 InspectorTest
.selectNodeWithId("container", callback
);
33 function testAppend(next
) {
36 InspectorTest
.firstElementsTreeOutline().runPendingUpdates();
37 InspectorTest
.runAfterPendingDispatches(function() {
38 InspectorTest
.addResult("======== Appended =========");
39 InspectorTest
.dumpElementsTree(containerNode
);
43 InspectorTest
.evaluateInPage("appendChild()", callback
);
51 <body onload=
"runTest()">
53 Tests that elements panel updates hasChildren flag upon adding children to collapsed nodes.
56 <div id=
"container"></div>