diff --git a/import-maps/META.yml b/import-maps/META.yml new file mode 100644 index 00000000000000..bc6d40ec352178 --- /dev/null +++ b/import-maps/META.yml @@ -0,0 +1,4 @@ +spec: https://github.com/WICG/import-maps +suggested_reviewers: + - domenic + - hiroshige-g diff --git a/import-maps/README.md b/import-maps/README.md deleted file mode 100644 index 3803e350c844b4..00000000000000 --- a/import-maps/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Tests for [Import Maps](https://github.com/WICG/import-maps). - -Because the spec itself is still under development and there are ongoing spec -discussions, the tests are all tentative. - -Also, some tests are based on Chromium's behavior which reflects an older -version of import maps spec ("package name maps" around May 2018), and have -dependency to Chromium's implementation (internals.resolveModuleSpecifier). -These dependencies should be removed, once the spec matures. diff --git a/import-maps/acquire-import-maps-flag/worker-request/success.tentative.html b/import-maps/acquire-import-maps-flag/worker-request/success.tentative.html deleted file mode 100644 index ceef4100aad01f..00000000000000 --- a/import-maps/acquire-import-maps-flag/worker-request/success.tentative.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - diff --git a/import-maps/acquiring/README.md b/import-maps/acquiring/README.md new file mode 100644 index 00000000000000..189d19021791bf --- /dev/null +++ b/import-maps/acquiring/README.md @@ -0,0 +1 @@ +These tests are about the impact of the [acquiring import maps](https://wicg.github.io/import-maps/#document-acquiring-import-maps) boolean, which prevents import maps from taking effect after a module import has started. diff --git a/import-maps/acquire-import-maps-flag/dynamic-import/success.tentative.html b/import-maps/acquiring/dynamic-import.html similarity index 74% rename from import-maps/acquire-import-maps-flag/dynamic-import/success.tentative.html rename to import-maps/acquiring/dynamic-import.html index 512cd7fa6974e8..49d8a701da2e43 100644 --- a/import-maps/acquire-import-maps-flag/dynamic-import/success.tentative.html +++ b/import-maps/acquiring/dynamic-import.html @@ -3,7 +3,6 @@ - + + diff --git a/import-maps/core/bare.sub.tentative.html b/import-maps/bare-specifiers.sub.html similarity index 75% rename from import-maps/core/bare.sub.tentative.html rename to import-maps/bare-specifiers.sub.html index 7fb769e09a2af4..d087cb31c44705 100644 --- a/import-maps/core/bare.sub.tentative.html +++ b/import-maps/bare-specifiers.sub.html @@ -2,7 +2,7 @@ - +
+ diff --git a/import-maps/common/resources/tricky-specifiers.json b/import-maps/data-driven/resources/tricky-specifiers.json similarity index 100% rename from import-maps/common/resources/tricky-specifiers.json rename to import-maps/data-driven/resources/tricky-specifiers.json diff --git a/import-maps/common/resources/url-specifiers.json b/import-maps/data-driven/resources/url-specifiers.json similarity index 100% rename from import-maps/common/resources/url-specifiers.json rename to import-maps/data-driven/resources/url-specifiers.json diff --git a/import-maps/common/common-test-service-worker.js b/import-maps/data-driven/service-worker.js similarity index 91% rename from import-maps/common/common-test-service-worker.js rename to import-maps/data-driven/service-worker.js index 6985c901fa683a..68f293bfbfb497 100644 --- a/import-maps/common/common-test-service-worker.js +++ b/import-maps/data-driven/service-worker.js @@ -6,7 +6,7 @@ self.addEventListener('message', event => { }); self.addEventListener('fetch', event => { - if (event.request.url.indexOf('common-test-helper-iframe.js') >= 0) { + if (event.request.url.indexOf('test-helper-iframe.js') >= 0) { return; } if (serveImporterScript) { diff --git a/import-maps/common/tools/format_json.py b/import-maps/data-driven/tools/format_json.py similarity index 100% rename from import-maps/common/tools/format_json.py rename to import-maps/data-driven/tools/format_json.py diff --git a/import-maps/core/data.sub.tentative.html b/import-maps/data-url-specifiers.sub.html similarity index 75% rename from import-maps/core/data.sub.tentative.html rename to import-maps/data-url-specifiers.sub.html index 25c18c45b7dc3e..a6fa12c12662eb 100644 --- a/import-maps/core/data.sub.tentative.html +++ b/import-maps/data-url-specifiers.sub.html @@ -2,7 +2,7 @@ - + - + + + + diff --git a/import-maps/core/not-as-classic-script.html b/import-maps/not-as-classic-script.html similarity index 100% rename from import-maps/core/not-as-classic-script.html rename to import-maps/not-as-classic-script.html diff --git a/import-maps/resources/test-helper.js b/import-maps/resources/test-helper.js index 3cb278b7989959..0e870c26f16f12 100644 --- a/import-maps/resources/test-helper.js +++ b/import-maps/resources/test-helper.js @@ -10,9 +10,6 @@ function expect_log(test, expected_log) { // Results of resolving a specifier using import maps. const Result = { - // A built-in module (std:blank) is loaded. - BUILTIN: "builtin", - // A failure considered as a fetch error in a module script tree. //