3 <script src=
"../../resources/js-test.js"></script>
7 <iframe id=
"frame1" name=
"frame1" srcdoc=
"frame1"></iframe>
8 <iframe id=
"frame2" name=
"frame2" srcdoc=
"frame2"></iframe>
13 description('Reparented sibling frames from unload handlers should load.');
15 var jsTestIsAsync
= true;
17 var container
= document
.getElementById('container');
18 var inside
= document
.getElementById('inside');
19 var frame1
= document
.getElementById('frame1');
20 var frame2
= document
.getElementById('frame2');
22 if (window
.testRunner
) {
23 testRunner
.dumpAsText();
24 testRunner
.dumpChildFramesAsText();
30 // Wait until all frame disconnection calls are complete to ensure inDocument
31 // frames remain loaded.
32 setTimeout(function() {
33 shouldNotBe('frame1.contentDocument', 'null');
34 shouldNotBe('frame2.contentDocument', 'null');
40 inside
.appendChild(frame1
);
41 inside
.appendChild(frame2
);
43 frame1
.contentWindow
.onunload = function() {
44 frame1
.onload
= runTest
;
45 frame2
.onload
= runTest
;
46 document
.body
.appendChild(inside
);
49 container
.parentNode
.removeChild(container
);