fune/testing/web-platform/tests/import-maps/module-map-key.html
Domenic Denicola f3ddfa10e3 Bug 1676381 [wpt PR 26239] - Import maps: rearrange and update WPTs, a=testonly
Automatic update from web-platform-tests
Import maps: rearrange and update WPTs

* Flips the pass condition for worker interaction. A module worker does
  not impact the import map of the outer page, since its constructor
  takes a URL, not a specifier that needs resolution.

* Removes leftover built-in module support and @std references.

* Removes .tentative filename suffixes.

* Renames "common" to "data-driven".

* Renames parsing.tentative.https.html to parsing-internal.https.html so
  that all internal tests to have -internal in the name. We should move
  them out of WPT (or convert them to not require internals),
  eventually, but for now making the difference clear is good.

* Moves "core" tests up to the top level.

* Removes references to future fetch-based import maps and Chromium
  implementation limitations.

* Adds OWNERS and META.yml

Bug: 1026809
Change-Id: I1807468a813ebee416cd8e05a272dbae6ea157bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491616
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825559}

--

wpt-commits: bb36180aa7a284259079575ba2a175a6a4f5d8d2
wpt-pr: 26239
2020-11-11 16:39:15 +00:00

21 lines
560 B
HTML

<!DOCTYPE html>
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="importmap">
{
"imports": {
"./resources/log.js?pipe=sub&name=A": "./resources/log.js?pipe=sub&name=B"
}
}
</script>
<script>
const log = [];
promise_test(() => {
return import("./resources/log.js?pipe=sub&name=A")
.then(() => import("./resources/log.js?pipe=sub&name=B"))
.then(() => assert_array_equals(log, ["log:B"]))
},
"Module map's key is the URL after import map resolution");
</script>