Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / resources / iframe-load-event-iframe.js
blob6f7673cefd08cdf8d435f4934d8438ef13860af1
1 function loadSecondIFrame()
3     document.getElementById("myframe").onload = null;
4     document.getElementById("myframe").src = "resources/iframe-load-event-iframe-2.html";
7 function test()
9     InspectorTest.expandElementsTree(step1);
11     function step1()
12     {
13         InspectorTest.domModel.addEventListener(WebInspector.DOMModel.Events.NodeInserted, nodeInserted);
14         InspectorTest.evaluateInPage("loadSecondIFrame()");
16         function nodeInserted(event)
17         {
18             var node = event.data;
19             if (node.getAttribute("id") === "myframe") {
20                 InspectorTest.expandElementsTree(step2);
21                 InspectorTest.domModel.removeEventListener(WebInspector.DOMModel.Events.NodeInserted, nodeInserted);
22             }
23         }
24     }
26     function step2()
27     {
28         InspectorTest.addResult("\n\nAfter frame navigate");
29         InspectorTest.dumpElementsTree();
30         InspectorTest.completeTest();
31     }