-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import maps: simplify 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. These tests are partially restored, in wpt_internal, in https://chromium-review.googlesource.com/c/chromium/src/+/3815111/. * 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 web-platform-tests/wpt#32697. Change-Id: I4943f4249eaec89f718c7a7fef271dbc61ec3f77 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3816001 Reviewed-by: Hiroshige Hayashizaki <[email protected]> Commit-Queue: Domenic Denicola <[email protected]> Cr-Commit-Position: refs/heads/main@{#1032864} NOKEYCHECK=True GitOrigin-RevId: 9f37e44f3924a3f6191c39784842373654e604b7
- Loading branch information
1 parent
3686ff1
commit 0e935a6
Showing
12 changed files
with
118 additions
and
379 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
38 changes: 0 additions & 38 deletions
38
blink/web_tests/external/wpt/import-maps/data-driven/parsing-internal.https.html
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
blink/web_tests/external/wpt/import-maps/data-driven/resolving-internal.https.html
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
blink/web_tests/external/wpt/import-maps/data-driven/resolving.html
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> |
32 changes: 0 additions & 32 deletions
32
blink/web_tests/external/wpt/import-maps/data-driven/resolving.https.html
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
...k/web_tests/external/wpt/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.