summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/window-open-then-write.html
blob: 9bee4205f19f1d185e42ef507cdb77d11729e57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.setCanOpenWindows();
    testRunner.dumpAsText();
}

function runTest() {
    var w = window.open('window-open-then-write.html');
    w.document.write('<img src="resources/compass.jpg" onload="if (window.testRunner) setTimeout(\'testRunner.notifyDone()\', 100);">');
    w.document.close();
}
</script>
<body onload="runTest();">
<div>This tests that calling window.open() with a URL and then writing to the window using document.write still causes the WebFrame in question to have a correct WebDataSource.</div>
<div>SUCCESS! Did not assert!</div>
</body>
</html>