blob: 89ae48c464119ed82bb4401bf2d1c417a1c9823e [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description('MutationRecord should be exposed on window but not constructible');
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="../../../resources/js-test-post.js"></script>