-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ES6 modules] Add WPT for loading cyclic module graph w/ slow imports
Bug: 594639 Change-Id: I3cf8a640a73083ad612c96fc4bbd0f01e00f6e46 Reviewed-on: https://chromium-review.googlesource.com/535413 Cr-Commit-Position: refs/heads/master@{#479295} WPT-Export-Revision: 34a24748bf9325b7c641ee8a05417c9402f5adb5
- Loading branch information
1 parent
ff52ec2
commit 7ea69af
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
html/semantics/scripting-1/the-script-element/module/slow-cycle.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,11 @@ | ||
<!DOCTYPE html> | ||
<title>Cyclic graph with slow imports</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script type="module"> | ||
import { loaded } from "./slow-module-graph-a.js"; | ||
|
||
test(() => { | ||
assert_true(loaded); | ||
}, "module graph with cycles load even if part of the graph loads slow"); | ||
</script> |
3 changes: 3 additions & 0 deletions
3
html/semantics/scripting-1/the-script-element/module/slow-module-graph-a.js
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,3 @@ | ||
import "./slow-module-graph-b.js"; | ||
import "./resources/delayed-modulescript.py" | ||
export let loaded = true; |
1 change: 1 addition & 0 deletions
1
html/semantics/scripting-1/the-script-element/module/slow-module-graph-b.js
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 @@ | ||
import "./slow-module-graph-a.js"; |