Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / unscopeable.html
blob5ca9b2cf7b5d0dd972b51cb63268bfb1c47c585b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Test [Unscopeable] attributes and methods.');
10 shouldBeTrue('"unscopeableAttribute" in internals');
11 shouldBeTrue('"unscopeableMethod" in internals');
13 shouldBe('internals.unscopeableAttribute', '"unscopeableAttribute"');
14 shouldBe('internals.unscopeableMethod()', '"unscopeableMethod"');
16 var unscopeableAttribute = 'variable';
17 var unscopeableMethod = 'variable';
19 with (internals) {
20 shouldBe('unscopeableAttribute', '"variable"');
21 shouldBe('unscopeableMethod', '"variable"');
24 </script>
25 </body>
26 </html>