| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../resources/js-test.js"></script> | |
| 4 <script> | |
| 5 function validate(msg) { | |
| 6 shouldBeGreaterThanOrEqual(msg["width"].toString(), "100"); | |
| 7 shouldBeGreaterThanOrEqual(msg["height"].toString(), "100"); | |
| 8 } | |
| 9 | |
| 10 function test() { | |
| 11 var data = window.showModalDialog("resources/report-size-and-close.html", ""
, "dialogWidth:10; dialogHeight:10"); | |
| 12 validate(data); | |
| 13 | |
| 14 window.addEventListener('message', function(e) { | |
| 15 validate(e.data); | |
| 16 e.source.close(); | |
| 17 testRunner.notifyDone(); | |
| 18 }, false); | |
| 19 window.open("resources/report-size-and-close.html", "non-empty-argument", "w
idth=10, height=10"); | |
| 20 } | |
| 21 | |
| 22 if (window.testRunner) { | |
| 23 testRunner.dumpAsText(); | |
| 24 testRunner.waitUntilDone(); | |
| 25 testRunner.setCanOpenWindows(); | |
| 26 testRunner.setCloseRemainingWindowsWhenComplete(true); | |
| 27 } | |
| 28 | |
| 29 </script> | |
| 30 </head> | |
| 31 <body onload="test()"> | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |