5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.dumpChildFramesAsText();
9 var t
= document
.getElementById("t_frame");
10 var b
= document
.getElementById("b_frame");
12 var dv
= t
.contentDocument
.getElementById("my_div");
13 dv
.innerText
= "Testing contentWindow on Frames. Test passes if there is a 'PASS' line.\n";
14 var result
= b
.contentWindow
.location
== "about:blank" ? "PASS" : "FAIL";
15 dv
.innerText
+= result
;
17 window
.onload
= putText
;
21 <FRAMESET rows=
"30%, 70%">
22 <FRAME id=
"t_frame" name=
"top" src=
"resources/frame_top.html">
23 <FRAME id=
"b_frame" name=
"bottom" src=
"about:blank">