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

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