3 Test passes if it does not crash.
7 <iframe id=
"f" src=
"about:blank"></iframe>
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
14 var listenerActive
= false;
15 var fDoc
= document
.getElementById('f').contentDocument
;
18 // Waits for frame f to finish loading, then moves div b into div a.
19 moveDivBIntoDivA = function() {
20 if (fDoc
.readyState
== 'loading') {
21 if (!listenerActive
) {
22 fDoc
.addEventListener('readystatechange', moveDivBIntoDivA
);
23 listenerActive
= true;
27 document
.getElementById('a').appendChild(document
.getElementById('b'));