haikuwebkit/LayoutTests/fast/dom/assign-to-prototype-accesso...

15 lines
392 B
HTML

<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Makes sure that assigning to a DOM property directly on the prototype throws a TypeError.");
shouldThrow('document.prototype.oncopy = "fail"');
shouldThrow('HTMLElement.prototype.innerText = "fail"');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>