blob: 37fbcae9fabb6d0fe89ff486fae4e896d5d21db5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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");
|