| OLD | NEW |
| (Empty) |
| 1 This tests the prototype chain of DOMException objects. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS e.toString() is "Error: HierarchyRequestError: DOM Exception 3" | |
| 7 PASS Object.prototype.toString.call(e) is "[object DOMException]" | |
| 8 PASS Object.prototype.toString.call(e.__proto__) is "[object DOMExceptionPrototy
pe]" | |
| 9 PASS Object.prototype.toString.call(e.__proto__.__proto__) is "[object Error]" | |
| 10 PASS e.constructor.toString() is "[object DOMExceptionConstructor]" | |
| 11 PASS e instanceof DOMException is true | |
| 12 PASS e instanceof Error is true | |
| 13 PASS e.constructor is window.DOMException | |
| 14 PASS e.HIERARCHY_REQUEST_ERR is e.constructor.HIERARCHY_REQUEST_ERR | |
| 15 PASS e.HIERARCHY_REQUEST_ERR is 3 | |
| 16 PASS e.code is 3 | |
| 17 PASS e.name is "HierarchyRequestError" | |
| 18 PASS e.message is "HierarchyRequestError: DOM Exception 3" | |
| 19 PASS successfullyParsed is true | |
| 20 | |
| 21 TEST COMPLETE | |
| 22 | |
| OLD | NEW |