Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / iframe-remove-after-id-change.html
blob42d3cdb23a31afde63b02aa4e4af9bf981052c0e
1 <p>This test verifies that removing an iframe from the DOM removes the
2 corresponding frame from the page, even if the iframe's id has changed and the
3 iframe is loading a document.</p>
4 <pre id="console"></pre>
5 <iframe id="iframe"></iframe>
7 <script>
8 function log(s)
10 document.getElementById("console").appendChild(document.createTextNode(s));
13 if (window.testRunner)
14 testRunner.dumpAsText();
16 var iframe = document.getElementById("iframe");
17 iframe.setAttribute("id", "iframe2", 0);
18 iframe.setAttribute("src", "data:text/html,", 0);
19 iframe.parentNode.removeChild(iframe);
21 if (frames.length)
22 log("FAIL: iframe remained in the page.\n");
23 else
24 log("PASS: iframe removed from the page.\n");
25 </script>