aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js
deleted file mode 100644
index 37fbcae9fab..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// META: global=window,dedicatedworker,sharedworker
-
-for (const value of [null, true, false, "string"]) {
- promise_test(async t => {
- const result = await import(`./${value}.json`, { assert: { type: "json" } });
- assert_equals(result.default, value);
- }, `Non-object: ${value}`);
-}
-
-promise_test(async t => {
- const result = await import("./array.json", { assert: { type: "json" } });
- assert_array_equals(result.default, ["en", "try"]);
-}, "Non-object: array");
-