OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <script> |
| 4 description('MutationRecord should be exposed on window but not constructable'); |
| 5 |
| 6 shouldBeNonNull('window.MutationRecord'); |
| 7 shouldBe('typeof MutationRecord', '"function"'); |
| 8 shouldThrow('new MutationRecord'); |
| 9 |
| 10 var div = document.createElement('div'); |
| 11 var observer = new MutationObserver(function(){}); |
| 12 observer.observe(div, {attributes: true}); |
| 13 div.id = 'foo'; |
| 14 var record = observer.takeRecords()[0]; |
| 15 shouldBeTrue('record instanceof MutationRecord'); |
| 16 </script> |
| 17 <script src="../../js/resources/js-test-post.js"></script> |
OLD | NEW |