summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_script_module_import_and_element.mjs
blob: c16f07dec71ec2941208393316b0ad11aaf62dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { f } from "./file_script_module_import_and_element_imported_1.mjs";
import { g } from "./file_script_module_import_and_element_imported_2.mjs";
import { h } from "./file_script_module_import_and_element_imported_3.mjs";

f();
g();
h();

let script = document.createElement("script");
script.id = "watchme2";
script.setAttribute("type", "module");
script.setAttribute(
  "src",
  "file_script_module_import_and_element_imported_1.mjs"
);
document.body.appendChild(script);

window.dispatchEvent(new Event("test_evaluated"));