1 function loadSecondIFrame()
3 document.getElementById("myframe").onload = null;
4 document.getElementById("myframe").src = "resources/iframe-load-event-iframe-2.html";
9 InspectorTest.expandElementsTree(step1);
13 InspectorTest.domModel.addEventListener(WebInspector.DOMModel.Events.NodeInserted, nodeInserted);
14 InspectorTest.evaluateInPage("loadSecondIFrame()");
16 function nodeInserted(event)
18 var node = event.data;
19 if (node.getAttribute("id") === "myframe") {
20 InspectorTest.expandElementsTree(step2);
21 InspectorTest.domModel.removeEventListener(WebInspector.DOMModel.Events.NodeInserted, nodeInserted);
28 InspectorTest.addResult("\n\nAfter frame navigate");
29 InspectorTest.dumpElementsTree();
30 InspectorTest.completeTest();