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

  SimpleTest.waitForExplicitFinish();

  function testLoaded() {
    ok(result == 42, 'Check imported value');
    SimpleTest.finish();
  }
</script>
<script type="module" src="module_simpleImport.mjs"></script>
<body onload='testLoaded()'></body>