From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../jsmodules/importmaps/bug_1893164_module_1.mjs | 3 +++ .../jsmodules/importmaps/bug_1893164_module_2.mjs | 5 ++++ .../jsmodules/importmaps/bug_1893164_module_3.mjs | 1 + .../jsmodules/importmaps/bug_1894631_module_1.mjs | 5 ++++ .../jsmodules/importmaps/bug_1894631_module_2.mjs | 3 +++ .../jsmodules/importmaps/bug_1894631_module_3.mjs | 1 + .../jsmodules/importmaps/bug_1894631_module_4.mjs | 1 + dom/base/test/jsmodules/importmaps/mochitest.toml | 10 ++++++++ .../jsmodules/importmaps/test_bug_1893164.html | 20 +++++++++++++++ .../test_shared_submodules_with_modulepreload.html | 30 ++++++++++++++++++++++ 10 files changed, 79 insertions(+) create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs create mode 100644 dom/base/test/jsmodules/importmaps/test_bug_1893164.html create mode 100644 dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html (limited to 'dom/base/test/jsmodules') diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs new file mode 100644 index 0000000000..45894ce609 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs @@ -0,0 +1,3 @@ +/* eslint-disable import/no-named-default, import/no-unresolved */ +import { default as default_non } from "./non_existing.mjs"; +import { default as default_3 } from "./bug_1893164_module_3.mjs"; diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs new file mode 100644 index 0000000000..e6f5e9f9f0 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs @@ -0,0 +1,5 @@ +/* eslint-disable import/no-named-default */ +import { default as default_3 } from "./bug_1893164_module_3.mjs"; + +module2_loaded = true; +result = default_3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs new file mode 100644 index 0000000000..dbb41f0e1f --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs @@ -0,0 +1 @@ +export default 3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs new file mode 100644 index 0000000000..b0c91fe0cf --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs @@ -0,0 +1,5 @@ +/* eslint-disable import/no-named-default, import/no-unresolved, import/named */ +import { default as default_2 } from "./bug_1894631_module_2.mjs"; +import { default as default_non } from "./non_existing.mjs"; + +module1_loaded = true; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs new file mode 100644 index 0000000000..dd17da2abc --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs @@ -0,0 +1,3 @@ +/* eslint-disable import/no-named-default */ +import { default as default_3 } from "./bug_1894631_module_3.mjs"; +import { default as default_4 } from "./bug_1894631_module_4.mjs"; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs new file mode 100644 index 0000000000..dbb41f0e1f --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs @@ -0,0 +1 @@ +export default 3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs new file mode 100644 index 0000000000..456ffaafac --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs @@ -0,0 +1 @@ +export default 4; diff --git a/dom/base/test/jsmodules/importmaps/mochitest.toml b/dom/base/test/jsmodules/importmaps/mochitest.toml index 1f95b155ac..b71bf21def 100644 --- a/dom/base/test/jsmodules/importmaps/mochitest.toml +++ b/dom/base/test/jsmodules/importmaps/mochitest.toml @@ -3,6 +3,13 @@ support-files = [ "bug_1865410_module_a.mjs", "bug_1865410_module_b.mjs", "bug_1873417.mjs", + "bug_1893164_module_1.mjs", + "bug_1893164_module_2.mjs", + "bug_1893164_module_3.mjs", + "bug_1894631_module_1.mjs", + "bug_1894631_module_2.mjs", + "bug_1894631_module_3.mjs", + "bug_1894631_module_4.mjs", "classic_script.js", "module_chain_1.mjs", "module_chain_2.mjs", @@ -34,7 +41,10 @@ support-files = [ ["test_bug_1873417.html"] +["test_bug_1893164.html"] + ["test_importMap_with_external_script.html"] ["test_importMap_with_nonexisting_module.html"] ["test_dynamic_importMap_with_external_script.html"] ["test_dynamic_importMap_load_completes.html"] +["test_shared_submodules_with_modulepreload.html"] diff --git a/dom/base/test/jsmodules/importmaps/test_bug_1893164.html b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html new file mode 100644 index 0000000000..6c5306b815 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html @@ -0,0 +1,20 @@ + + +Test module cancel + + + + + + + diff --git a/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html b/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html new file mode 100644 index 0000000000..a99582f8d3 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html @@ -0,0 +1,30 @@ + + +Test module cancel won't trigger an assert + + + + + + + + + + -- cgit v1.2.3