mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 8d1253647cfe3809ddf58a4ad7c9da5f26985d7e
This commit is contained in:
parent
553ff20468
commit
48c420fdb5
440 changed files with 6186 additions and 3542 deletions
21
tests/wpt/web-platform-tests/import-maps/module-map-key.html
Normal file
21
tests/wpt/web-platform-tests/import-maps/module-map-key.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue