summaryrefslogtreecommitdiff
path: root/dom/base/test/jsmodules/test_simpleImport.html
blob: 4c836cd318ab0cea172a845eae5d0864dd9fc026 (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 type="application/javascript" 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.js"></script>
<body onload='testLoaded()'></body>