| Index: LayoutTests/fast/dom/MutationObserver/mutation-record-constructor.html
|
| diff --git a/LayoutTests/fast/dom/MutationObserver/mutation-record-constructor.html b/LayoutTests/fast/dom/MutationObserver/mutation-record-constructor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..34156c6905d49340568af90a19e2b32ff8c95088
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/MutationObserver/mutation-record-constructor.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<script>
|
| +description('MutationRecord should be exposed on window but not constructable');
|
| +
|
| +shouldBeNonNull('window.MutationRecord');
|
| +shouldBe('typeof MutationRecord', '"function"');
|
| +shouldThrow('new MutationRecord');
|
| +
|
| +var div = document.createElement('div');
|
| +var observer = new MutationObserver(function(){});
|
| +observer.observe(div, {attributes: true});
|
| +div.id = 'foo';
|
| +var record = observer.takeRecords()[0];
|
| +shouldBeTrue('record instanceof MutationRecord');
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
|
|