Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-open-self-from-other-frame.html
bloba72fc5322fef84cb56d831ef2360ced033de9ddf
1 <html>
2 <head>
3 <script>
4 function runTest()
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');
15 </script>
16 </head>
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">
21 </iframe>
22 </body>
23 </html>