| OLD | NEW |
| 1 <!DOCTYPE html> |
| 2 <p>Passes if no alert() is displayed</p> |
| 1 <script> | 3 <script> |
| 2 if (window.testRunner) { | 4 if (window.testRunner) { |
| 3 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 4 testRunner.dumpChildFramesAsText(); | |
| 5 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 6 } | 7 } |
| 7 | 8 |
| 8 function done() { | 9 new Promise(function(res, rej) { res(); }).then(function() { |
| 10 alert('this should not be shown'); |
| 9 if (window.testRunner) | 11 if (window.testRunner) |
| 10 testRunner.notifyDone(); | 12 testRunner.notifyDone(); |
| 11 } | 13 }); |
| 12 </script> | 14 </script> |
| 13 <iframe src="resources/set-parent-to-javascript-url.html"></iframe> | |
| OLD | NEW |