summaryrefslogtreecommitdiffstats
path: root/dom/base/test/jsmodules/test_cyclicImport.html
blob: d316a140d47cc66b04f31f9b32003df2132ab921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test cyclic module imports</title>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script>
  var result;

  SimpleTest.waitForExplicitFinish();

  function testLoaded() {
    SimpleTest.finish();
  }
</script>
<script type="module">
  import { func1 } from "./module_cyclic1.js";
  ok(func1(5, "") == "12312");
</script>
<body onload='testLoaded()'></body>