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