Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / resources / closure-access-after-navigation-iframe-child-2.html
blobe9c301dfa121cfc6dbe4e84e31ed1002af50d9ab
1 <script>
2 parent.logTitle("Child 2 loaded.");
3 parent.test("getObjectOfChild1", "myVal");
4 parent.test("getGlobalOfChild1", "myGlobalVal");
6 Object.prototype.myVal = "child2";
7 var myGlobal = {
8 myGlobalVal: "child2"
9 };
11 parent.logTitle("Child 2 objects set.");
13 parent.getObjectOfChild2 = function()
15 return {};
18 parent.getGlobalOfChild2 = function()
20 return myGlobal;
23 parent.test("getObjectOfChild1", "myVal");
24 parent.test("getGlobalOfChild1", "myGlobalVal");
25 parent.test("getObjectOfChild2", "myVal");
26 parent.test("getGlobalOfChild2", "myGlobalVal");
27 parent.test("getObjectOfParent", "myVal");
28 parent.test("getGlobalOfParent", "myGlobalVal");
30 onload = function()
32 parent.done();
34 </script>
35 Child 2