blob: 017891267f7c466c410aebb19b0abc417ef4b2b8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="output"></div>
<script>
window.focus();
// This should not pick up the 'bar' defined in the isolated world from the parent
// document, or the 'hotdog' defined in previous runs of this frame.
testRunner.evaluateScriptInIsolatedWorld(1,
"document.getElementById('output').appendChild(document.createTextNode(window.bar + ',' + window.hotdog));");
// Next time we run, we also shouldn't see this 'hotdog'.
testRunner.evaluateScriptInIsolatedWorld(1, "var hotdog = 'hotdog';");
parent.iframeComplete(document.getElementById("output").textContent);
</script>
</body>
</html>