OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
6 <title></title> | 6 <title></title> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <p id=description></p> | 9 <p id=description></p> |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 <script> | 11 <script> |
12 | 12 |
13 function runTest() { | 13 function runTest() { |
14 shouldBeNonNull('window.WebKitMutationObserver'); | 14 shouldBeNonNull('window.WebKitMutationObserver'); |
15 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.observe', 'fu
nction'); | 15 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.observe', 'fu
nction'); |
16 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.disconnect',
'function'); | 16 shouldBeEqualToString('typeof WebKitMutationObserver.prototype.disconnect',
'function'); |
17 window.observer = new WebKitMutationObserver(function(mutations) { }); | 17 window.observer = new MutationObserver(function(mutations) { }); |
18 shouldBeEqualToString('typeof observer.observe', 'function'); | 18 shouldBeEqualToString('typeof observer.observe', 'function'); |
19 shouldBeEqualToString('typeof observer.disconnect', 'function'); | 19 shouldBeEqualToString('typeof observer.disconnect', 'function'); |
20 } | 20 } |
21 | 21 |
22 description('Test the constructor of WebKitMutationObserver'); | 22 description('Test the constructor of WebKitMutationObserver'); |
23 | 23 |
24 runTest(); | 24 runTest(); |
25 </script> | 25 </script> |
26 <script src="../../js/resources/js-test-post.js"></script> | 26 <script src="../../js/resources/js-test-post.js"></script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |