3 <script src=
"../../resources/js-test.js"></script>
6 description('Make sure wrappers are setup using the window the property came from, instead of the lexical global object.');
8 var frame
= document
.createElement('iframe');
9 document
.body
.appendChild(frame
);
10 var inner
= frame
.contentWindow
;
12 window
.Object
.prototype.isInner
= false;
13 inner
.Object
.prototype.isInner
= true;
22 'document.childNodes',
28 function testPath(path
) {
29 shouldBeTrue('inner.' + path
+ '.isInner');
30 shouldBeTrue('inner.' + path
+ '.constructor.isInner');
31 shouldBeTrue('inner.' + path
+ '.constructor.prototype.isInner');
32 shouldBeTrue('inner.' + path
+ '.__proto__.isInner');
35 pathsToTest
.forEach(testPath
);