Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / select-all-iframe-crash.html
blob1a20b7e276e11060df7a7d3632fd857dafbcf0f8
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="div">Test</div>
5 <div>PASS if not crashed.</div>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 window.onload = function () {
13 document.execCommand("SelectAll", false);
14 // Wait for the <iframe> element to be detached from the Document, then call this method to check that
15 // the selection correctly no longer has the iframe in its bounds.
16 window.requestAnimationFrame(function () {
17 window.internals.selectedTextForClipboard();
18 div.remove();
19 testRunner.notifyDone();
20 });
23 var iframe = document.createElement('iframe');
24 iframe.srcdoc = "<div></div>"
25 iframe.onload = function () {
26 window.parent.document.querySelector('iframe').remove();
29 document.body.appendChild(iframe);
30 </script>
31 </body>
32 </html>