summaryrefslogtreecommitdiff
path: root/cli/tests/unit/dom_exception_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-01-14 22:08:49 +0900
committerGitHub <noreply@github.com>2021-01-14 22:08:49 +0900
commitc75f92c4e2827a8c69edbb7dd937df87142b2b29 (patch)
treed491a852ec0f6789139f2b4ce6b1fcfa8b5e7779 /cli/tests/unit/dom_exception_test.ts
parent78c27e0923e52d0b3afeef8f4b0f71660c0adfa5 (diff)
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
Diffstat (limited to 'cli/tests/unit/dom_exception_test.ts')
-rw-r--r--cli/tests/unit/dom_exception_test.ts18
1 files changed, 0 insertions, 18 deletions
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);
-});