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/unit/dom_exception_test.ts | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 cli/tests/unit/dom_exception_test.ts (limited to 'cli/tests/unit/dom_exception_test.ts') diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts deleted file mode 100644 index f6c69c36d..000000000 --- a/cli/tests/unit/dom_exception_test.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -import { assert, assertEquals, unitTest } from "./test_util.ts"; - -unitTest(function testDomError() { - const de = new DOMException("foo", "bar"); - assert(de); - assertEquals(de.message, "foo"); - assertEquals(de.name, "bar"); - assertEquals(de.code, 0); -}); - -unitTest(function testKnownDomException() { - const de = new DOMException("foo", "SyntaxError"); - assert(de); - assertEquals(de.message, "foo"); - assertEquals(de.name, "SyntaxError"); - assertEquals(de.code, 12); -}); -- cgit v1.2.3