exceptions.html

FAILExpected7 of 12 subtests pass456 ms

Details

Test
/webidl/ecmascript-binding/es-exceptions/exceptions.html
Harness
OK

Subtests

StatusSubtestMessage
PASSObject.getPrototypeOf(exception) === DOMException.prototype
PASSexception.hasOwnProperty("name")
PASSexception.hasOwnProperty("message")
PASSexception.name === "HierarchyRequestError"
PASSexception.code === DOMException.HIERARCHY_REQUEST_ERR
PASSObject.prototype.toString.call(exception) === "[object DOMException]"
FAILIn 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"
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"
PASSIn iframe: exception.hasOwnProperty("name")
FAILIn iframe: exception.hasOwnProperty("message")
assert_false: expected false got true
assert_false: expected false got true
FAILIn iframe: exception.name === "HierarchyRequestError"
assert_equals: expected "HierarchyRequestError" but got "TypeError"
assert_equals: expected "HierarchyRequestError" but got "TypeError"
FAILIn iframe: exception.code === DOMException.HIERARCHY_REQUEST_ERR
assert_equals: expected (number) 3 but got (undefined) undefined
assert_equals: expected (number) 3 but got (undefined) undefined
FAILIn iframe: Object.prototype.toString.call(exception) === "[object DOMException]"
assert_equals: expected "[object DOMException]" but got "[object Error]"
assert_equals: expected "[object DOMException]" but got "[object Error]"