3 <script src=
"../../resources/js-test.js"></script>
14 if (window
.testRunner
) {
15 testRunner
.dumpAsText();
16 testRunner
.dumpChildFramesAsText();
17 testRunner
.waitUntilDone();
20 var frame
= document
.createElement('iframe');
21 var a
= document
.getElementById('a');
22 var b
= document
.getElementById('b');
23 var c
= document
.getElementById('c');
28 frame
.onload = function() {
29 frame
.contentDocument
.body
.innerHTML
= 'Should be visible.';
32 frame
.contentWindow
.onunload = function() {
33 b
.parentNode
.removeChild(b
);
34 shouldBeNull('frame.contentDocument');
36 shouldNotBe('frame.contentDocument', 'null');
37 isSuccessfullyParsed();
38 if (window
.testRunner
)
39 testRunner
.notifyDone();
42 a
.parentNode
.removeChild(a
);