diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index f77bbba67cc..d634f56d148 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -47,3 +47,5 @@ skip: true skip: false [WebCryptoAPI] skip: false +[WebIDL] + skip: false diff --git a/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor.html.ini b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor.html.ini new file mode 100644 index 00000000000..d31be8ca02c --- /dev/null +++ b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor.html.ini @@ -0,0 +1,101 @@ +[DOMException-constructor.html] + type: testharness + [new DOMException()] + expected: FAIL + + [new DOMException(): own-ness] + expected: FAIL + + [new DOMException(null)] + expected: FAIL + + [new DOMException(undefined)] + expected: FAIL + + [new DOMException(undefined): own-ness] + expected: FAIL + + [new DOMException("foo")] + expected: FAIL + + [new DOMException("foo"): own-ness] + expected: FAIL + + [new DOMException("bar", undefined)] + expected: FAIL + + [new DOMException("bar", "NotSupportedError")] + expected: FAIL + + [new DOMException("bar", "NotSupportedError"): own-ness] + expected: FAIL + + [new DOMException("bar", "foo")] + expected: FAIL + + [new DOMexception("msg", "IndexSizeError")] + expected: FAIL + + [new DOMexception("msg", "HierarchyRequestError")] + expected: FAIL + + [new DOMexception("msg", "WrongDocumentError")] + expected: FAIL + + [new DOMexception("msg", "InvalidCharacterError")] + expected: FAIL + + [new DOMexception("msg", "NoModificationAllowedError")] + expected: FAIL + + [new DOMexception("msg", "NotFoundError")] + expected: FAIL + + [new DOMexception("msg", "NotSupportedError")] + expected: FAIL + + [new DOMexception("msg", "InUseAttributeError")] + expected: FAIL + + [new DOMexception("msg", "InvalidStateError")] + expected: FAIL + + [new DOMexception("msg", "SyntaxError")] + expected: FAIL + + [new DOMexception("msg", "InvalidModificationError")] + expected: FAIL + + [new DOMexception("msg", "NamespaceError")] + expected: FAIL + + [new DOMexception("msg", "InvalidAccessError")] + expected: FAIL + + [new DOMexception("msg", "SecurityError")] + expected: FAIL + + [new DOMexception("msg", "NetworkError")] + expected: FAIL + + [new DOMexception("msg", "AbortError")] + expected: FAIL + + [new DOMexception("msg", "URLMismatchError")] + expected: FAIL + + [new DOMexception("msg", "QuotaExceededError")] + expected: FAIL + + [new DOMexception("msg", "TimeoutError")] + expected: FAIL + + [new DOMexception("msg", "InvalidNodeTypeError")] + expected: FAIL + + [new DOMexception("msg", "DataCloneError")] + expected: FAIL + + [new DOMException("bar", "UnknownError")] + expected: FAIL + diff --git a/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.html.ini b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.html.ini new file mode 100644 index 00000000000..5be1e6376ab --- /dev/null +++ b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.html.ini @@ -0,0 +1,11 @@ +[constructor-object.html] + type: testharness + [existence and properties of DOMException] + expected: FAIL + + [existence and properties of DOMException.prototype] + expected: FAIL + + [existence of name and code properties on DOMException.prototype] + expected: FAIL + diff --git a/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.worker.js.ini b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.worker.js.ini new file mode 100644 index 00000000000..0d3b8275f04 --- /dev/null +++ b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/constructor-object.worker.js.ini @@ -0,0 +1,11 @@ +[constructor-object.worker] + type: testharness + [existence and properties of DOMException] + expected: FAIL + + [existence and properties of DOMException.prototype] + expected: FAIL + + [existence of name and code properties on DOMException.prototype] + expected: FAIL + diff --git a/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/exceptions.html.ini b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/exceptions.html.ini new file mode 100644 index 00000000000..4e691734e3e --- /dev/null +++ b/tests/wpt/metadata/WebIDL/ecmascript-binding/es-exceptions/exceptions.html.ini @@ -0,0 +1,38 @@ +[exceptions.html] + type: testharness + [exception.hasOwnProperty("name")] + expected: FAIL + + [Object.getOwnPropertyDescriptor(exception, "name")] + expected: FAIL + + [typeof exception.message === "string"] + expected: FAIL + + [Object.getOwnPropertyDescriptor(exception, "code")] + expected: FAIL + + [In iframe: Object.getPrototypeOf(exception) === DOMException.prototype] + expected: FAIL + + [In iframe: exception.hasOwnProperty("name")] + expected: FAIL + + [In iframe: exception.name === "HierarchyRequestError"] + expected: FAIL + + [In iframe: Object.getOwnPropertyDescriptor(exception, "name")] + expected: FAIL + + [In iframe: Object.getOwnPropertyDescriptor(exception, "message")] + expected: FAIL + + [In iframe: Object.prototype.toString.call(exception) === "[object DOMException\]"] + expected: FAIL + + [In iframe: exception.code === DOMException.HIERARCHY_REQUEST_ERR] + expected: FAIL + + [In iframe: Object.getOwnPropertyDescriptor(exception, "code")] + expected: FAIL +