summaryrefslogtreecommitdiffstats
path: root/dom/base/test/jsmodules/importmaps/test_bug_1893164.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/jsmodules/importmaps/test_bug_1893164.html')
-rw-r--r--dom/base/test/jsmodules/importmaps/test_bug_1893164.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/dom/base/test/jsmodules/importmaps/test_bug_1893164.html b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html
new file mode 100644
index 0000000000..6c5306b815
--- /dev/null
+++ b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Test module cancel</title>
+<script src="/tests/SimpleTest/SimpleTest.js"></script>
+<script>
+ var module2_loaded = false, result;
+
+ SimpleTest.waitForExplicitFinish();
+
+ function testLoaded() {
+ ok(module2_loaded, 'module_2.mjs should be loaded');
+ ok(result == 3, "result should be 3 from module_3.mjs");
+ SimpleTest.finish();
+ }
+</script>
+
+<script src="./bug_1893164_module_1.mjs" type="module"></script>
+<script src="./bug_1893164_module_2.mjs" type="module"></script>
+
+<body onload='testLoaded()'></body>