Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/mutation-observer-constructor.html

Issue 12317072: Merge 143386 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698