OLD | NEW |
| (Empty) |
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.'); | |
9 | |
10 shouldBeTrue('"unscopeableAttribute" in internals'); | |
11 shouldBeTrue('"unscopeableMethod" in internals'); | |
12 | |
13 shouldBe('internals.unscopeableAttribute', '"unscopeableAttribute"'); | |
14 shouldBe('internals.unscopeableMethod()', '"unscopeableMethod"'); | |
15 | |
16 var unscopeableAttribute = 'variable'; | |
17 var unscopeableMethod = 'variable'; | |
18 | |
19 with (internals) { | |
20 shouldBe('unscopeableAttribute', '"variable"'); | |
21 shouldBe('unscopeableMethod', '"variable"'); | |
22 } | |
23 | |
24 </script> | |
25 </body> | |
26 </html> | |
OLD | NEW |