summaryrefslogtreecommitdiffstats
path: root/dom/base/test/jsmodules/test_importIntroType.html
blob: 3f8538282916f9d1e7ef4a6803407c2cea879a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test introduction type of an imported module</title>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script>
  var introType;
  var extractIntroType;

  info('start');
  SimpleTest.waitForExplicitFinish();

  function testIntroductionType() {
    extractIntroType();
    ok(introType == "importedModule", 'Check introduction type');
    SimpleTest.finish();
  }
</script>
<iframe src="iframe_extractIntroType.html"></iframe>
<script type="module">
import "./module_extractIntroType.js";
</script>
<body onload='testIntroductionType()'></body>