Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / closure-access-after-navigation-iframe.html
blob0d61234150a6fd0e47890735fe180fa0ba876b40
1 <pre id="console"></pre>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 var logString = "";
9 function log(s)
11 logString += s + "<br />";
14 function logTitle(s)
16 log("<b>" + s + "<b>");
19 function done()
21 document.getElementById("console").innerHTML = logString;
22 if (window.testRunner)
23 testRunner.notifyDone();
26 Object.prototype.myVal = "parent";
27 var myGlobal = {
28 myGlobalVal: "parent"
31 getObjectOfParent = function()
33 return {};
36 getGlobalOfParent = function()
38 return myGlobal;
41 test = function(p, val)
43 try {
44 log(p + "()." + val + " = " + window[p]()[val]);
45 } catch(e) {
46 log(e.message);
49 </script>
50 <iframe src="resources/closure-access-after-navigation-iframe-child-1.html"></iframe>