6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
11 var t
= '<script>if(window.testRunner) testRunner.notifyDone()</scri';
12 t
+= 'pt><div>If you can see this text and it is not in a subframe the test has FAILED.</div>'
13 window
['subframe'].open('data:text/html,' + t
, '_self');
17 <body onload=
"runTest()">
18 <div>This tests that calling somewindow.open performs the frame name lookup in the context of somewindow and not the window running the script.
</div>
19 <div>SUCCESS - did not replace window contents
</div>
20 <iframe name=
"subframe" id=
"iframe">