blob: 40b7ef5dae5010cf39b1df38e3dce5b96c3d62df [file] [log] [blame]
<!DOCTYPE html>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
<body>
<script type="module">
import { runTestsFromJSON, setupGlobalCleanup } from "./resources/test-helper.js";
const promises = [];
for (const json of [
'resources/scopes.json',
'resources/empty-import-map.json',
'resources/packages-via-trailing-slashes.json',
'resources/tricky-specifiers.json',
'resources/url-specifiers.json',
'resources/data-base-url.json',
'resources/scopes-exact-vs-prefix.json',
'resources/overlapping-entries.json',
'resources/resolving-null.json',
]) {
promise_test(() => {
const promise = runTestsFromJSON(json);
promises.push(promise);
return promise;
},
"Test helper: fetching and sanity checking test JSON: " + json);
}
Promise.all(promises).then(setupGlobalCleanup);
</script>