Commit c769afbf authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[LayoutTests/wpt] Fix bogus tests of module cycles.

See https://github.com/w3c/web-platform-tests/issues/5239 for an explanation.

R=domenic@chromium.org, kouhei@chromium.org

Bug: 
Change-Id: I7312e4d774eea1083d2283d8ccbad361bd974d0b
Reviewed-on: https://chromium-review.googlesource.com/519242Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#476227}
parent b28a6524
......@@ -1971,7 +1971,6 @@ crbug.com/694958 virtual/stable/http/tests/navigation/same-and-different-back.ht
# Failing because of module-related implementation/test issues.
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin.html [ Failure ]
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling.html [ Failure ]
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/imports.html [ Failure ]
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/compilation-error-1.html [ Failure ]
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/compilation-error-2.html [ Failure ]
crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/evaluation-error-1.html [ Failure ]
......
import { CycleA } from "./imports-cycle-a.js";
test_importCycle.step(function () {
assert_unreached("This module should not have loaded!");
assert_equals(CycleA, "CycleA");
test_importCycle.done();
});
import { SelfInner } from "./imports-self-inner.js";
test_importSelf.step(function () {
assert_unreached("This module should not have loaded!");
assert_equals(SelfInner, "SelfInner");
test_importSelf.done();
});
......@@ -52,13 +52,13 @@
</script>
<script>
var test_importSelf = async_test("Import a module that tries to import itself");
var test_importSelf = async_test("Import a module that validly imports itself");
</script>
<script type="module" src="imports-self.js" onerror="test_importSelf.done();"></script>
<script type="module" src="imports-self.js"></script>
<script>
var test_importCycle = async_test("Import a module with a cyclical module dependency");
var test_importCycle = async_test("Import a module with a valid cyclical module dependency");
</script>
<script type="module" src="imports-cycle.js" onerror="test_importCycle.done();"></script>
<script type="module" src="imports-cycle.js"></script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment