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

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

Issue 13861028: Expose MutationRecord on DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/MutationObserver/mutation-record-constructor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script>
3 <script>
4 description('MutationRecord should be exposed on window but not constructable');
5
6 shouldBeNonNull('window.MutationRecord');
7 shouldBe('typeof MutationRecord', '"function"');
8 shouldThrow('new MutationRecord');
9
10 var div = document.createElement('div');
11 var observer = new MutationObserver(function(){});
12 observer.observe(div, {attributes: true});
13 div.id = 'foo';
14 var record = observer.takeRecords()[0];
15 shouldBeTrue('record instanceof MutationRecord');
16 </script>
17 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/MutationObserver/mutation-record-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698