blob: a037fbe0a3f6959494e7b81d90b7a99899c03979 [file] [log] [blame]
Makes sure that assigning to a DOM property directly on the prototype throws a TypeError.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.prototype.oncopy = "fail" threw exception TypeError: undefined is not an object (evaluating 'document.prototype.oncopy = "fail"').
PASS Document.prototype.selectedStylesheetSet = "fail" threw exception TypeError: The Document.selectedStylesheetSet setter can only be used on instances of Document.
PASS HTMLElement.prototype.innerText = "fail" threw exception TypeError: The HTMLElement.innerText setter can only be used on instances of HTMLElement.
PASS successfullyParsed is true
TEST COMPLETE