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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698