mirror of
https://github.com/servo/servo.git
synced 2025-06-26 18:14:34 +01:00
Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820
This commit is contained in:
parent
0838d782c6
commit
b24cb329fb
202 changed files with 11044 additions and 1361 deletions
|
@ -0,0 +1 @@
|
|||
import { b } from "./nested-imports-b.js";
|
|
@ -0,0 +1,2 @@
|
|||
import { c } from "./nested-imports-c.js";
|
||||
export const b = "b";
|
|
@ -0,0 +1,2 @@
|
|||
import { d } from "./nested-imports-d.js";
|
||||
export const c = "c";
|
|
@ -0,0 +1,3 @@
|
|||
import { e } from "./nested-imports-e.js";
|
||||
import "./resources/delayed-modulescript.py";
|
||||
export const d = "d";
|
|
@ -0,0 +1,2 @@
|
|||
import { f } from "./nested-imports-f.js";
|
||||
export const e = "e";
|
|
@ -0,0 +1,2 @@
|
|||
import { g } from "./nested-imports-g.js";
|
||||
export const f = "f";
|
|
@ -0,0 +1,2 @@
|
|||
import { h } from "./nested-imports-h.js";
|
||||
export const g = "g";
|
|
@ -0,0 +1,2 @@
|
|||
import { c } from "./nested-imports-c.js";
|
||||
export const h = "h";
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue