Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 if (window.testRunner) { | 3 if (window.testRunner) { |
| 4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
| 5 testRunner.setCanOpenWindows(); | 5 testRunner.setCanOpenWindows(); |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function runTest() { | 9 function runTest() { |
| 10 var w = window.open('window-open-then-write.html'); | 10 var w = window.open('window-open-then-write.html'); |
| 11 w.document.write('<img src="resources/compass.jpg" onload="if (window.testRu nner) setTimeout(\'testRunner.notifyDone()\', 100);">'); | 11 w.document.write('<img src="resources/compass.jpg" onload="if (window.testRu nner) setTimeout(\'testRunner.notifyDone()\', 500);">'); |
|
Nate Chapin
2017/03/07 18:39:08
What's the reason for extending this timeout? Is t
clamy
2017/03/13 13:55:57
Sorry this was for testing. I needed to trigger a
| |
| 12 w.document.close(); | 12 w.document.close(); |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 <body onload="runTest();"> | 15 <body onload="runTest();"> |
| 16 <div>This tests that calling window.open() with a URL and then writing to the wi ndow using document.write still causes the WebFrame in question to have a correc t WebDataSource.</div> | 16 <div>This tests that calling window.open() with a URL and then writing to the wi ndow using document.write still causes the WebFrame in question to have a correc t WebDataSource.</div> |
| 17 <div>SUCCESS! Did not assert!</div> | 17 <div>SUCCESS! Did not assert!</div> |
| 18 </body> | 18 </body> |
| 19 </html> | 19 </html> |
| OLD | NEW |