blob: 7d45ae8c33bd1f9d11616b3a14085ee8aa218aca [file] [log] [blame] [edit]
<!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>
<script>
// All parsing tests requires Chromium's internal methods.
globalThis.useInternalMethods = true;
</script>
<body>
<script type="module">
import { runTestsFromJSON, setupGlobalCleanup } from "./resources/test-helper.js";
const promises = [];
for (const json of [
'resources/parsing-addresses-absolute.json',
'resources/parsing-addresses-invalid.json',
'resources/parsing-addresses.json',
'resources/parsing-invalid-json.json',
'resources/parsing-schema-normalization.json',
'resources/parsing-schema-scope.json',
'resources/parsing-schema-specifier-map.json',
'resources/parsing-schema-toplevel.json',
'resources/parsing-scope-keys.json',
'resources/parsing-specifier-keys.json',
'resources/parsing-trailing-slashes.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>