summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_script_module_dynamic_and_element.mjs
blob: ead071d1591264b07ceddb642cfcaf7ec96b3bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { f } = await import(
  "./file_script_module_dynamic_and_element_imported_1.mjs"
);
import { g } from "./file_script_module_dynamic_and_element_imported_2.mjs";
import { h } from "./file_script_module_dynamic_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_dynamic_and_element_imported_1.mjs"
);
document.body.appendChild(script);

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