4 <div id=
"div">Test
</div>
5 <div>PASS if not crashed.
</div>
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();
19 testRunner
.notifyDone();
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
);