| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <div id="output"></div> | 4 <div id="output"></div> |
| 5 <script> | 5 <script> |
| 6 window.focus(); | 6 window.focus(); |
| 7 | 7 |
| 8 // This should not pick up the 'bar' defined in the isolated world from the pare
nt | 8 // This should not pick up the 'bar' defined in the isolated world from the pare
nt |
| 9 // document, or the 'hotdog' defined in previous runs of this frame. | 9 // document, or the 'hotdog' defined in previous runs of this frame. |
| 10 testRunner.evaluateScriptInIsolatedWorld(1, | 10 testRunner.evaluateScriptInIsolatedWorld(1, |
| 11 "document.getElementById('output').appendChild(document.createTextNode(window.
bar + ',' + window.hotdog));"); | 11 "document.getElementById('output').appendChild(document.createTextNode(window.
bar + ',' + window.hotdog));"); |
| 12 | 12 |
| 13 // Next time we run, we also shouldn't see this 'hotdog'. | 13 // Next time we run, we also shouldn't see this 'hotdog'. |
| 14 testRunner.evaluateScriptInIsolatedWorld(1, "var hotdog = 'hotdog';"); | 14 testRunner.evaluateScriptInIsolatedWorld(1, "var hotdog = 'hotdog';"); |
| 15 | 15 |
| 16 parent.iframeComplete(document.getElementById("output").textContent); | 16 parent.iframeComplete(document.getElementById("output").textContent); |
| 17 </script> | 17 </script> |
| 18 </body> | 18 </body> |
| 19 </html> | 19 </html> |
| OLD | NEW |