exceptions.html
Details
- Test
/webidl/ecmascript-binding/es-exceptions/exceptions.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | Object.getPrototypeOf(exception) === DOMException.prototype |
| PASS | exception.hasOwnProperty("name") |
| PASS | exception.hasOwnProperty("message") |
| PASS | exception.name === "HierarchyRequestError" |
| PASS | exception.code === DOMException.HIERARCHY_REQUEST_ERR |
| PASS | Object.prototype.toString.call(exception) === "[object DOMException]" |
| FAIL | In iframe: Object.getPrototypeOf(exception) === DOMException.prototype assert_equals: expected [stringifying object threw TypeError: Illegal invocation: 'name' getter called on an object that is not a DOMException with type object] but got object "TypeError" |
| PASS | In iframe: exception.hasOwnProperty("name") |
| FAIL | In iframe: exception.hasOwnProperty("message") assert_false: expected false got true |
| FAIL | In iframe: exception.name === "HierarchyRequestError" assert_equals: expected "HierarchyRequestError" but got "TypeError" |
| FAIL | In iframe: exception.code === DOMException.HIERARCHY_REQUEST_ERR assert_equals: expected (number) 3 but got (undefined) undefined |
| FAIL | In iframe: Object.prototype.toString.call(exception) === "[object DOMException]" assert_equals: expected "[object DOMException]" but got "[object Error]" |