Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / wrapper-scope.html
blob12215003f5a6d25371226deccb8f7fc32e31235a
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/js-test.js"></script>
4 <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;
15 var pathsToTest = [
16 'HTMLElement',
17 'Window',
18 'close',
19 'console',
20 'document',
21 'document.body',
22 'document.childNodes',
23 'navigator',
24 'postMessage',
25 'window',
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);
37 </script>
38 </body>