Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / resources / closure-access-after-navigation-iframe-child-1.html
blob83482d4d1691d3e7d05618f958ebd08240d45909
1 <script>
2 parent.logTitle("Child 1 loaded.");
4 Object.prototype.myVal = "child1";
5 var myGlobal = {
6 myGlobalVal: "child1"
7 };
9 parent.logTitle("Child 1 objects set.");
11 parent.getObjectOfChild1 = function()
13 return {};
16 parent.getGlobalOfChild1 = function()
18 return myGlobal;
21 parent.test("getObjectOfChild1", "myVal");
22 parent.test("getGlobalOfChild1", "myGlobalVal");
24 window.location = "closure-access-after-navigation-iframe-child-2.html"
25 </script>
26 Child 1