-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify import maps web platform tests
* Use import.meta.resolve() and <base> trickery, instead of a service worker + sometimes Chromium internals. * Remove the parsing tests that used Chromium internals. We should convert these into resolution tests eventually, but for now they just make wpt.fyi look sad and are confusing for other engines. We leave the JSON files here for now in anticipation of that upcoming conversion. * Use <meta name="variant"> instead of a loop over the JSON files. This avoids the need for <meta timeout="long"> and possibly allows some parallelism. * Renamed data-base-url.json to be data-url-prefix.json and update the test description to reflect the intent. This confusion originates from the original JS to JSON conversion at WICG/import-maps@6cb173d. Fixes #32697. Change-Id: I4943f4249eaec89f718c7a7fef271dbc61ec3f77
- Loading branch information
1 parent
5c79743
commit c90f7cc
Showing
12 changed files
with
121 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<meta name="variant" content="?data-url-prefix.json"> | ||
<meta name="variant" content="?empty-import-map.json"> | ||
<meta name="variant" content="?overlapping-entries.json"> | ||
<meta name="variant" content="?packages-via-trailing-slashes.json"> | ||
<meta name="variant" content="?resolving-null.json"> | ||
<meta name="variant" content="?scopes-exact-vs-prefix.json"> | ||
<meta name="variant" content="?scopes.json"> | ||
<meta name="variant" content="?tricky-specifiers.json"> | ||
<meta name="variant" content="?url-specifiers-schemes.json"> | ||
<meta name="variant" content="?url-specifiers.json"> | ||
|
||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<body> | ||
<script type="module"> | ||
import { runTestsFromJSON } from "./resources/test-helper.js"; | ||
|
||
const filename = location.search.substring(1); | ||
promise_test( | ||
() => runTestsFromJSON('resources/' + filename), | ||
"Test helper: fetching and sanity checking test JSON: " + filename); | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
import-maps/data-driven/resources/empty-import-map-internal.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.