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

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

Issue 58533003: Move fast/js/resources files to resources. (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 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description('MutationRecord should be exposed on window but not constructable'); 4 description('MutationRecord should be exposed on window but not constructable');
5 5
6 shouldBeNonNull('window.MutationRecord'); 6 shouldBeNonNull('window.MutationRecord');
7 shouldBe('typeof MutationRecord', '"function"'); 7 shouldBe('typeof MutationRecord', '"function"');
8 shouldThrow('new MutationRecord'); 8 shouldThrow('new MutationRecord');
9 9
10 var div = document.createElement('div'); 10 var div = document.createElement('div');
11 var observer = new MutationObserver(function(){}); 11 var observer = new MutationObserver(function(){});
12 observer.observe(div, {attributes: true}); 12 observer.observe(div, {attributes: true});
13 div.id = 'foo'; 13 div.id = 'foo';
14 var record = observer.takeRecords()[0]; 14 var record = observer.takeRecords()[0];
15 shouldBeTrue('record instanceof MutationRecord'); 15 shouldBeTrue('record instanceof MutationRecord');
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698