Skip to content

Commit

Permalink
[ES6 modules] Add WPT for loading cyclic module graph w/ slow imports
Browse files Browse the repository at this point in the history
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
nyaxt authored and chromium-wpt-export-bot committed Jun 14, 2017
1 parent ff52ec2 commit 7ea69af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
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>
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./slow-module-graph-a.js";

0 comments on commit 7ea69af

Please sign in to comment.