summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_script_module_import_and_element.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/file_script_module_import_and_element.mjs')
-rw-r--r--dom/base/test/file_script_module_import_and_element.mjs18
1 files changed, 18 insertions, 0 deletions
diff --git a/dom/base/test/file_script_module_import_and_element.mjs b/dom/base/test/file_script_module_import_and_element.mjs
new file mode 100644
index 0000000000..c16f07dec7
--- /dev/null
+++ b/dom/base/test/file_script_module_import_and_element.mjs
@@ -0,0 +1,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"));