OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 | 4 |
5 description('Tests that Replaceable attributes are writable'); | 5 description('Tests that Replaceable attributes are writable'); |
6 | 6 |
7 shouldBeTrue('Object.getOwnPropertyDescriptor(window, "innerHeight").writable'); | 7 shouldBeType('Object.getOwnPropertyDescriptor(window, "innerHeight").set', 'Func
tion'); |
8 | 8 |
9 window.innerHeight = 42; | 9 window.innerHeight = 42; |
10 shouldBe('window.innerHeight', '42'); | 10 shouldBe('window.innerHeight', '42'); |
11 | 11 |
12 </script> | 12 </script> |
OLD | NEW |