From c75f92c4e2827a8c69edbb7dd937df87142b2b29 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 14 Jan 2021 22:08:49 +0900 Subject: fix: align DOMException API to the spec and add web platform testing of it. (#9106) * fix: align DOMException API to the spec * test: fix test case 070_location * test(DOMException): disable "does not inherit from Error: class-side" test of WPT * test: remove test cases in deno codebase * docs: add note about skipped test --- cli/tests/wpt.jsonc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cli/tests/wpt.jsonc') diff --git a/cli/tests/wpt.jsonc b/cli/tests/wpt.jsonc index 29f3967ad..242338155 100644 --- a/cli/tests/wpt.jsonc +++ b/cli/tests/wpt.jsonc @@ -182,5 +182,21 @@ ], "WebCryptoApi": [ "getRandomValues" + ], + "WebIDL": [ + "ecmascript-binding/es-exceptions/DOMException-constants", + "ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype", + "ecmascript-binding/es-exceptions/DOMException-constructor-behavior", + { + "name": "ecmascript-binding/es-exceptions/DOMException-custom-bindings", + "expectFail": [ + // TODO(kt3k): Enable this test. + // We can pass this test by using Object.setPrototypeOf(...) instead of + // class...extends, but that causes a problem in printing of uncaught + // DOMException. We might need to modify how to print uncaught error in + // `//core/error.rs`. + "does not inherit from Error: class-side" + ] + } ] } -- cgit v1.2.3