OLD | NEW |
1 Tests the properties of the exception thrown by dispatchEvent. | 1 Tests the properties of the exception thrown by dispatchEvent. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS e.toString() is "Error: InvalidStateError: DOM Exception 11" | 6 PASS e.toString() is "InvalidStateError: An attempt was made to use an object th
at is not, or is no longer, usable." |
7 PASS Object.prototype.toString.call(e) is "[object DOMException]" | 7 PASS Object.prototype.toString.call(e) is "[object DOMException]" |
8 FAIL Object.prototype.toString.call(e.__proto__) should be [object DOMExceptionP
rototype]. Was [object Object]. | 8 FAIL Object.prototype.toString.call(e.__proto__) should be [object DOMExceptionP
rototype]. Was [object Object]. |
9 PASS e.constructor.toString() is "function DOMException() { [native code] }" | 9 PASS e.constructor.toString() is "function DOMException() { [native code] }" |
10 PASS e.constructor is window.DOMException | 10 PASS e.constructor is window.DOMException |
11 PASS successfullyParsed is true | 11 PASS successfullyParsed is true |
12 | 12 |
13 TEST COMPLETE | 13 TEST COMPLETE |
14 | 14 |
OLD | NEW |