| <!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> | |
| // This test file is for resolution tests that require Chromium's internal | |
| // methods. | |
| // For tests that don't use Chromium's internal methods, see | |
| // resolving.https.html. | |
| globalThis.useInternalMethods = true; | |
| </script> | |
| <body> | |
| <script type="module"> | |
| import { runTestsFromJSON, setupGlobalCleanup } from "./resources/test-helper.js"; | |
| const promises = []; | |
| for (const json of [ | |
| 'resources/empty-import-map-internal.json', | |
| 'resources/url-specifiers-schemes-internal.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> |