Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820

This commit is contained in:
WPT Sync Bot 2020-06-24 08:20:43 +00:00
parent 0838d782c6
commit b24cb329fb
202 changed files with 11044 additions and 1361 deletions

View file

@ -0,0 +1 @@
import { b } from "./nested-imports-b.js";

View file

@ -0,0 +1,2 @@
import { c } from "./nested-imports-c.js";
export const b = "b";

View file

@ -0,0 +1,2 @@
import { d } from "./nested-imports-d.js";
export const c = "c";

View file

@ -0,0 +1,3 @@
import { e } from "./nested-imports-e.js";
import "./resources/delayed-modulescript.py";
export const d = "d";

View file

@ -0,0 +1,2 @@
import { f } from "./nested-imports-f.js";
export const e = "e";

View file

@ -0,0 +1,2 @@
import { g } from "./nested-imports-g.js";
export const f = "f";

View file

@ -0,0 +1,2 @@
import { h } from "./nested-imports-h.js";
export const g = "g";

View file

@ -0,0 +1,2 @@
import { c } from "./nested-imports-c.js";
export const h = "h";

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<title>Test imports under more than 3 levels in different modules</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ allow_uncaught_exception: true });
window.log = [];
const test_load = async_test("should load all modules successfully");
window.addEventListener(
"load",
test_load.step_func_done((ev) => {
assert_equals(log.length, 2);
assert_equals(log[0], 1);
assert_equals(log[1], 2);
})
);
function unreachable() {
log.push("unexpected");
}
</script>
<script type="module" src="./nested-imports-a.js" onerror="unreachable()"
onload="log.push(1)"></script>
<script type="module" src="./nested-imports-e.js" onerror="unreachable()"
onload="log.push(2)"></script>