Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-removing-iframe.html
blob6431e6a9aa2ec873c41845b0af55b22f2e93fcef
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function test()
11 var toRemove = document.getElementById("child");
12 var childDocument = toRemove.contentDocument;
14 var textarea = childDocument.getElementById("target");
15 textarea.addEventListener("input", function(evt) {
16 toRemove.parentNode.removeChild(toRemove);
17 if (window.testRunner)
18 window.testRunner.notifyDone();
19 });
21 var selection = childDocument.getSelection();
22 var data = childDocument.getElementById("data");
23 selection.selectAllChildren(data);
24 childDocument.execCommand("copy");
25 textarea.select();
26 childDocument.execCommand("paste");
28 </script>
29 </head>
30 <body>
31 <!--
32 -- This test removes an iframe with editable content
33 -- during actually editing that editable text by handling DOM input event.
34 -- WebKit should not crash even after this brutal removal.
35 -->
36 <h1>PASS</h1>
37 <iframe id="child" onload="test()" src="resources/paste-removing-iframe-child.html" />
38 </body>
39 </html>