Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/jsmodules/chrome.toml
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test introduction type of a top-level module</title>
<script>
  var introType;
  var extractIntroType;
  info('start');
  SimpleTest.waitForExplicitFinish();
  // eslint-disable-next-line no-unused-vars
  function testIntroductionType() {
    extractIntroType();
    ok(introType == "srcScript", 'Check introduction type');
    SimpleTest.finish();
  }
</script>
<iframe src="iframe_extractIntroType.html"></iframe>
<script type="module" src="module_extractIntroType.mjs">
</script>
<body onload='testIntroductionType()'></body>