<!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>
