2 <script src=
"../../../resources/js-test.js"></script>
4 <iframe name=
"f"></iframe>
5 <a href=
"http://webkit.org" name=
"a"></a>
9 Object
.getPrototypeOf(window
).y
= 2;
14 shouldBeTrue('window.hasOwnProperty("Element")');
15 shouldBeTrue('window.hasOwnProperty("x")');
16 shouldBeFalse('window.hasOwnProperty("y")');
17 shouldBeTrue('window.hasOwnProperty("f")');
18 shouldBeTrue('window.hasOwnProperty("div")');
19 shouldBeTrue('window.hasOwnProperty("a")');
25 shouldNotBe('Element', 'undefined');
31 shouldBeUndefined('y');
34 shouldBeUndefined('f');
37 shouldBeUndefined('div');
40 shouldBeUndefined('a');