blob: b98316009283bf5bb9fb071503960134af3398d5 [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 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