OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.js"></script> |
3 <script> | 3 <script> |
4 | 4 |
5 description('This tests that setting the proto of a built in constructor is not
reset'); | 5 description('This tests that setting the proto of a built in constructor is not
reset'); |
6 | 6 |
7 shouldBe('Object.getPrototypeOf(HTMLElement)', 'Element'); | 7 shouldBe('Object.getPrototypeOf(HTMLElement)', 'Element'); |
8 | 8 |
9 var proto = new Number(42); | 9 var proto = new Number(42); |
10 HTMLElement.__proto__ = proto; | 10 HTMLElement.__proto__ = proto; |
11 shouldBe('Object.getPrototypeOf(HTMLElement)', 'proto'); | 11 shouldBe('Object.getPrototypeOf(HTMLElement)', 'proto'); |
12 | 12 |
13 </script> | 13 </script> |
14 <script src="../js/resources/js-test-post.js"></script> | |
OLD | NEW |