diff options
Diffstat (limited to '')
-rw-r--r-- | dom/base/test/file_script_module_dynamic_and_element.mjs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dom/base/test/file_script_module_dynamic_and_element.mjs b/dom/base/test/file_script_module_dynamic_and_element.mjs new file mode 100644 index 0000000000..ead071d159 --- /dev/null +++ b/dom/base/test/file_script_module_dynamic_and_element.mjs @@ -0,0 +1,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")); |