blob: 5c8f6cd251580a433dec796da6bdc4b98abee483 [file] [log] [blame]
This tests the prototype chain of DOMException objects.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS e.toString() is "HierarchyRequestError: The operation would yield an incorrect node tree."
PASS Object.prototype.toString.call(e) is "[object DOMException]"
PASS Object.prototype.toString.call(e.__proto__) is "[object DOMExceptionPrototype]"
PASS Object.prototype.toString.call(e.__proto__.__proto__) is "[object Object]"
PASS e.constructor.toString() is "function DOMException() {\n [native code]\n}"
PASS e instanceof DOMException is true
PASS e instanceof Error is true
PASS e.constructor is window.DOMException
PASS e.HIERARCHY_REQUEST_ERR is e.constructor.HIERARCHY_REQUEST_ERR
PASS e.HIERARCHY_REQUEST_ERR is 3
PASS e.code is 3
PASS e.name is "HierarchyRequestError"
PASS e.message is "The operation would yield an incorrect node tree."
PASS successfullyParsed is true
TEST COMPLETE