| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <p>FAIL</p> | |
| 3 <iframe src="data:text/html,FAIL"></iframe> | |
| 4 <script type="text/x-isolate" id="s1"> | |
| 5 | |
| 6 window.onunload = function() { | |
| 7 Window; | |
| 8 }; | |
| 9 | |
| 10 </script> | |
| 11 <script> | |
| 12 | |
| 13 window.onload = function() { | |
| 14 if (window.layoutTestController) { | |
| 15 layoutTestController.waitUntilDone(); | |
| 16 layoutTestController.dumpAsText(); | |
| 17 | |
| 18 var iframeElement = document.querySelector('iframe'); | |
| 19 iframeElement.focus(); | |
| 20 layoutTestController.evaluateScriptInIsolatedWorld(0, document.querySele
ctor('#s1').textContent); | |
| 21 | |
| 22 iframeElement.onload = function() { | |
| 23 document.body.textContent = 'PASS'; | |
| 24 layoutTestController.notifyDone(); | |
| 25 }; | |
| 26 iframeElement.src = 'data:text/html,PASS'; | |
| 27 } | |
| 28 }; | |
| 29 | |
| 30 </script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |