Closed Bug 1571177 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 18264 - [Import Maps] Update resolving tests from upstream

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 18264 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/18264
Details from upstream follow.

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:

[Import Maps] Update resolving tests from upstream

This CL imports more tests from upstream:

The current test failures are added as -expected.txt, and will be
fixed in the future when import map functionalities are implemented or fixed.

Bug: 990561
Change-Id: I087df82355513584a0cf1891da648dd2155f53c8

Reviewed-on: https://chromium-review.googlesource.com/1734024
WPT-Export-Revision: d918ff163561355207a37a22cd8146126dcf9005

Ran 8 tests and 97 subtests
OK     : 8
FAIL   : 97

New tests that have failures or other problems:
/import-maps/imported/parsing-addresses.tentative.html
    Absolute URL addresses / should only accept absolute URL addresses with fetch schemes: FAIL
    Absolute URL addresses / should only accept absolute URL addresses with fetch schemes inside arrays: FAIL
    Absolute URL addresses / should parse absolute URLs, ignoring unparseable ones: FAIL
    Absolute URL addresses / should parse absolute URLs, ignoring unparseable ones inside arrays: FAIL
    Built-in module addresses / should accept URLs using the built-in module scheme: FAIL
    Built-in module addresses / should allow built-in module URLs that contain "/" or "\": FAIL
    Built-in module addresses / should ignore percent-encoded variants of the built-in module scheme: FAIL
    Failing addresses: mismatched trailing slashes / should warn for a mismatch alone in an array: FAIL
    Failing addresses: mismatched trailing slashes / should warn for a mismatch alongside non-mismatches in an array: FAIL
    Failing addresses: mismatched trailing slashes / should warn for the simple case: FAIL
    Other invalid addresses / should ignore unprefixed strings that are not absolute URLs: FAIL
    Relative URL-like addresses / should accept strings prefixed with ./, ../, or /: FAIL
    Relative URL-like addresses / should accept the literal strings ./, ../, or / with no suffix: FAIL
    Relative URL-like addresses / should ignore percent-encoded variants of ./, ../, or /: FAIL
    Relative URL-like addresses / should not accept strings prefixed with ./, ../, or / for data: base URLs: FAIL
/import-maps/imported/parsing-schema.tentative.html
    Invalid JSON: FAIL
    Mismatching the specifier map schema / should ignore entries where the address is not a string, array, or null: FAIL
    Mismatching the specifier map schema / should ignore entries where the specifier key is an empty string: FAIL
    Mismatching the specifier map schema / should ignore members of an address array that are not strings: FAIL
    Mismatching the specifier map schema / should throw if a scope's value is not an object: FAIL
    Mismatching the top-level schema / should ignore unspecified top-level entries: FAIL
    Mismatching the top-level schema / should throw for top-level non-objects: FAIL
    Mismatching the top-level schema / should throw if imports is a non-object: FAIL
    Mismatching the top-level schema / should throw if scopes is a non-object: FAIL
    Normalization / should normalize addresses to arrays: FAIL
    Normalization / should normalize an import map without imports to have imports: FAIL
    Normalization / should normalize an import map without scopes to have scopes: FAIL
    Normalization / should normalize empty import maps to have imports and scopes keys: FAIL
/import-maps/imported/parsing-scope-keys.tentative.html
    Absolute URL scope keys / should ignore relative URL scope keys when the base URL is a data: URL: FAIL
    Absolute URL scope keys / should only accept absolute URL scope keys with fetch schemes: FAIL
    Absolute URL scope keys / should parse absolute URL scope keys, ignoring unparseable ones: FAIL
    Relative URL scope keys / should deduplicate based on URL parsing rules: FAIL
    Relative URL scope keys / should work with ./, ../, and / prefixes: FAIL
    Relative URL scope keys / should work with / suffixes: FAIL
    Relative URL scope keys / should work with /s, ?s, and #s: FAIL
    Relative URL scope keys / should work with an empty string scope key: FAIL
    Relative URL scope keys / should work with no prefix: FAIL
/import-maps/imported/parsing-specifier-keys.tentative.html
    Absolute URL specifier keys / should only accept absolute URL specifier keys with fetch schemes, treating others as bare specifiers: FAIL
    Absolute URL specifier keys / should parse absolute URLs, treating unparseable ones as bare specifiers: FAIL
    Absolute URL specifier keys / should parse built-in module specifier keys, including with a "/": FAIL
    Relative URL-like specifier keys / should absolutize strings prefixed with ./, ../, or / into the corresponding URLs: FAIL
    Relative URL-like specifier keys / should absolutize the literal strings ./, ../, or / with no suffix: FAIL
    Relative URL-like specifier keys / should not absolutize strings prefixed with ./, ../, or / with a data: URL base: FAIL
    Relative URL-like specifier keys / should treat percent-encoded variants of ./, ../, or / as bare specifiers: FAIL
/import-maps/imported/resolving-builtins.tentative.html
    Fallbacks with built-in module addresses / should fall back past "std:none": FAIL
    Fallbacks with built-in module addresses / should resolve to "std:blank": FAIL
    Remapping built-in module specifiers / should remap built-in modules: FAIL
    Remapping built-in module specifiers / should remap built-in modules with fallbacks: FAIL
    Remapping built-in module specifiers / should remap built-in modules with slashes: FAIL
    Remapping built-in module specifiers / should remap built-in modules with slashes and fallbacks: FAIL
    Remapping to built-in modules / should fail when remapping to "std:blank/": FAIL
    Remapping to built-in modules / should fail when remapping to "std:none": FAIL
    Remapping to built-in modules / should remap to "std:blank": FAIL
    Remapping to built-in modules / should remap to "std:blank" for URL-like specifiers: FAIL
    Remapping to built-in modules / should remap to "std:blank/for-testing": FAIL
    Unmapped built-in module specifiers / should error resolving "std:none": FAIL
    Unmapped built-in module specifiers / should resolve "std:blank" to "std:blank": FAIL
/import-maps/imported/resolving-not-yet-implemented.tentative.html
    Fallbacks that are not [built-in, fetch scheme] / should fail for [built-in, built-in]: FAIL
    Fallbacks that are not [built-in, fetch scheme] / should fail for [built-in, fetch scheme, fetch scheme]: FAIL
    Fallbacks that are not [built-in, fetch scheme] / should fail for [fetch scheme, fetch scheme]: FAIL
/import-maps/imported/resolving-scopes.tentative.html
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when both are in the map: FAIL
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when only a prefix match is in the map: FAIL
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when only an exact match is in the map: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should apply best scope match: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should fallback to "imports": FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should resolve scoped: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should still fail for package-like specifiers that are not declared: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve a ../ scope using the import map URL's directory: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve a ./ scope using the import map URL's directory: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve an empty string scope using the import map URL: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should fall back to "imports" when none match: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should use a direct scope override: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should use an indirect scope override: FAIL
    Mapped using scope instead of "imports" / should fail when the mapping is to an empty array: FAIL
/import-maps/imported/resolving.tentative.html
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key (no empty arrays): FAIL
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key when empty arrays are involved for less-specific keys: FAIL
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key when empty arrays are involved for more-specific keys: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should fail for package submodules that map to nowhere: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should still fail for package modules that are not declared: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package main modules: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package names that end in a slash by just passing through: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package submodules: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should fail for attempting to get a submodule of something not declared with a trailing slash: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should work for explicitly-mapped specifiers that happen to have a slash: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should work when the specifier has punctuation: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should fail for URLs that remap to empty arrays: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap URLs that are just composed from / and .: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap URLs that are prefix-matched by keys with trailing slashes: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap to other URLs: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should use the last entry's address when URL-like specifiers parse to the same absolute URL: FAIL
    Mapped using the "imports" key only (no scopes) / should fail when the mapping is to an empty array: FAIL
    Unmapped / should fail for absolute non-fetch-scheme URLs: FAIL
    Unmapped / should fail for strings not parseable as absolute URLs and not starting with ./ ../ or /: FAIL
    Unmapped / should parse absolute fetch-scheme URLs: FAIL
    Unmapped / should resolve ../ specifiers as URLs: FAIL
    Unmapped / should resolve ./ specifiers as URLs: FAIL
    Unmapped / should resolve / specifiers as URLs: FAIL
Ran 8 tests and 97 subtests
OK     : 8
FAIL   : 97

New tests that have failures or other problems:
/import-maps/imported/parsing-addresses.tentative.html
    Absolute URL addresses / should only accept absolute URL addresses with fetch schemes: FAIL
    Absolute URL addresses / should only accept absolute URL addresses with fetch schemes inside arrays: FAIL
    Absolute URL addresses / should parse absolute URLs, ignoring unparseable ones: FAIL
    Absolute URL addresses / should parse absolute URLs, ignoring unparseable ones inside arrays: FAIL
    Built-in module addresses / should accept URLs using the built-in module scheme: FAIL
    Built-in module addresses / should allow built-in module URLs that contain "/" or "\": FAIL
    Built-in module addresses / should ignore percent-encoded variants of the built-in module scheme: FAIL
    Failing addresses: mismatched trailing slashes / should warn for a mismatch alone in an array: FAIL
    Failing addresses: mismatched trailing slashes / should warn for a mismatch alongside non-mismatches in an array: FAIL
    Failing addresses: mismatched trailing slashes / should warn for the simple case: FAIL
    Other invalid addresses / should ignore unprefixed strings that are not absolute URLs: FAIL
    Relative URL-like addresses / should accept strings prefixed with ./, ../, or /: FAIL
    Relative URL-like addresses / should accept the literal strings ./, ../, or / with no suffix: FAIL
    Relative URL-like addresses / should ignore percent-encoded variants of ./, ../, or /: FAIL
    Relative URL-like addresses / should not accept strings prefixed with ./, ../, or / for data: base URLs: FAIL
/import-maps/imported/parsing-schema.tentative.html
    Invalid JSON: FAIL
    Mismatching the specifier map schema / should ignore entries where the address is not a string, array, or null: FAIL
    Mismatching the specifier map schema / should ignore entries where the specifier key is an empty string: FAIL
    Mismatching the specifier map schema / should ignore members of an address array that are not strings: FAIL
    Mismatching the specifier map schema / should throw if a scope's value is not an object: FAIL
    Mismatching the top-level schema / should ignore unspecified top-level entries: FAIL
    Mismatching the top-level schema / should throw for top-level non-objects: FAIL
    Mismatching the top-level schema / should throw if imports is a non-object: FAIL
    Mismatching the top-level schema / should throw if scopes is a non-object: FAIL
    Normalization / should normalize addresses to arrays: FAIL
    Normalization / should normalize an import map without imports to have imports: FAIL
    Normalization / should normalize an import map without scopes to have scopes: FAIL
    Normalization / should normalize empty import maps to have imports and scopes keys: FAIL
/import-maps/imported/parsing-scope-keys.tentative.html
    Absolute URL scope keys / should ignore relative URL scope keys when the base URL is a data: URL: FAIL
    Absolute URL scope keys / should only accept absolute URL scope keys with fetch schemes: FAIL
    Absolute URL scope keys / should parse absolute URL scope keys, ignoring unparseable ones: FAIL
    Relative URL scope keys / should deduplicate based on URL parsing rules: FAIL
    Relative URL scope keys / should work with ./, ../, and / prefixes: FAIL
    Relative URL scope keys / should work with / suffixes: FAIL
    Relative URL scope keys / should work with /s, ?s, and #s: FAIL
    Relative URL scope keys / should work with an empty string scope key: FAIL
    Relative URL scope keys / should work with no prefix: FAIL
/import-maps/imported/parsing-specifier-keys.tentative.html
    Absolute URL specifier keys / should only accept absolute URL specifier keys with fetch schemes, treating others as bare specifiers: FAIL
    Absolute URL specifier keys / should parse absolute URLs, treating unparseable ones as bare specifiers: FAIL
    Absolute URL specifier keys / should parse built-in module specifier keys, including with a "/": FAIL
    Relative URL-like specifier keys / should absolutize strings prefixed with ./, ../, or / into the corresponding URLs: FAIL
    Relative URL-like specifier keys / should absolutize the literal strings ./, ../, or / with no suffix: FAIL
    Relative URL-like specifier keys / should not absolutize strings prefixed with ./, ../, or / with a data: URL base: FAIL
    Relative URL-like specifier keys / should treat percent-encoded variants of ./, ../, or / as bare specifiers: FAIL
/import-maps/imported/resolving-builtins.tentative.html
    Fallbacks with built-in module addresses / should fall back past "std:none": FAIL
    Fallbacks with built-in module addresses / should resolve to "std:blank": FAIL
    Remapping built-in module specifiers / should remap built-in modules: FAIL
    Remapping built-in module specifiers / should remap built-in modules with fallbacks: FAIL
    Remapping built-in module specifiers / should remap built-in modules with slashes: FAIL
    Remapping built-in module specifiers / should remap built-in modules with slashes and fallbacks: FAIL
    Remapping to built-in modules / should fail when remapping to "std:blank/": FAIL
    Remapping to built-in modules / should fail when remapping to "std:none": FAIL
    Remapping to built-in modules / should remap to "std:blank": FAIL
    Remapping to built-in modules / should remap to "std:blank" for URL-like specifiers: FAIL
    Remapping to built-in modules / should remap to "std:blank/for-testing": FAIL
    Unmapped built-in module specifiers / should error resolving "std:none": FAIL
    Unmapped built-in module specifiers / should resolve "std:blank" to "std:blank": FAIL
/import-maps/imported/resolving-not-yet-implemented.tentative.html
    Fallbacks that are not [built-in, fetch scheme] / should fail for [built-in, built-in]: FAIL
    Fallbacks that are not [built-in, fetch scheme] / should fail for [built-in, fetch scheme, fetch scheme]: FAIL
    Fallbacks that are not [built-in, fetch scheme] / should fail for [fetch scheme, fetch scheme]: FAIL
/import-maps/imported/resolving-scopes.tentative.html
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when both are in the map: FAIL
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when only a prefix match is in the map: FAIL
    Mapped using scope instead of "imports" / Exact vs. prefix based matching / should match correctly when only an exact match is in the map: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should apply best scope match: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should fallback to "imports": FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should resolve scoped: FAIL
    Mapped using scope instead of "imports" / Package-like scenarios / should still fail for package-like specifiers that are not declared: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve a ../ scope using the import map URL's directory: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve a ./ scope using the import map URL's directory: FAIL
    Mapped using scope instead of "imports" / Relative URL scope keys / should resolve an empty string scope using the import map URL: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should fall back to "imports" when none match: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should use a direct scope override: FAIL
    Mapped using scope instead of "imports" / The scope inheritance example from the README / should use an indirect scope override: FAIL
    Mapped using scope instead of "imports" / should fail when the mapping is to an empty array: FAIL
/import-maps/imported/resolving.tentative.html
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key (no empty arrays): FAIL
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key when empty arrays are involved for less-specific keys: FAIL
    Mapped using the "imports" key only (no scopes) / Overlapping entries with trailing slashes / should favor the most-specific key when empty arrays are involved for more-specific keys: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should fail for package submodules that map to nowhere: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should still fail for package modules that are not declared: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package main modules: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package names that end in a slash by just passing through: FAIL
    Mapped using the "imports" key only (no scopes) / Package-like scenarios / should work for package submodules: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should fail for attempting to get a submodule of something not declared with a trailing slash: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should work for explicitly-mapped specifiers that happen to have a slash: FAIL
    Mapped using the "imports" key only (no scopes) / Tricky specifiers / should work when the specifier has punctuation: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should fail for URLs that remap to empty arrays: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap URLs that are just composed from / and .: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap URLs that are prefix-matched by keys with trailing slashes: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should remap to other URLs: FAIL
    Mapped using the "imports" key only (no scopes) / URL-like specifiers / should use the last entry's address when URL-like specifiers parse to the same absolute URL: FAIL
    Mapped using the "imports" key only (no scopes) / should fail when the mapping is to an empty array: FAIL
    Unmapped / should fail for absolute non-fetch-scheme URLs: FAIL
    Unmapped / should fail for strings not parseable as absolute URLs and not starting with ./ ../ or /: FAIL
    Unmapped / should parse absolute fetch-scheme URLs: FAIL
    Unmapped / should resolve ../ specifiers as URLs: FAIL
    Unmapped / should resolve ./ specifiers as URLs: FAIL
    Unmapped / should resolve / specifiers as URLs: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b68a5d37dd7c
[wpt PR 18264] - [Import Maps] Update resolving tests from upstream, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef5a4643c142
[wpt PR 18264] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.