| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 description('Test the constructor of WebKitMutationObserver'); | 5 description('Test the constructor of WebKitMutationObserver'); |
| 6 | 6 |
| 7 shouldBeNonNull('window.WebKitMutationObserver'); | 7 shouldBeNonNull('window.WebKitMutationObserver'); |
| 8 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.observe', 'functi
on'); | 8 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.observe', 'functi
on'); |
| 9 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.disconnect', 'fun
ction'); | 9 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.disconnect', 'fun
ction'); |
| 10 window.observer = new MutationObserver(function(mutations) { }); | 10 window.observer = new MutationObserver(function(mutations) { }); |
| 11 shouldBeEqualToString('typeof observer.observe', 'function'); | 11 shouldBeEqualToString('typeof observer.observe', 'function'); |
| 12 shouldBeEqualToString('typeof observer.disconnect', 'function'); | 12 shouldBeEqualToString('typeof observer.disconnect', 'function'); |
| 13 | 13 |
| 14 shouldThrow('new MutationObserver({ handleEvent: function() {} })'); | 14 shouldThrow('new MutationObserver({ handleEvent: function() {} })'); |
| 15 shouldThrow('new MutationObserver({})'); | 15 shouldThrow('new MutationObserver({})'); |
| 16 shouldThrow('new MutationObserver(42)'); | 16 shouldThrow('new MutationObserver(42)'); |
| 17 shouldThrow('new MutationObserver("foo")'); | 17 shouldThrow('new MutationObserver("foo")'); |
| 18 </script> | 18 </script> |
| 19 <script src="../../js/resources/js-test-post.js"></script> | |
| 20 </body> | 19 </body> |
| OLD | NEW |