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