Closed Bug 1607407 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 21064 - [Import Maps] Migrate Jest-based parsing tests into JSON-based

Categories

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

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:

[Import Maps] Migrate Jest-based parsing tests into JSON-based

This CL

  • Converts Jest-based parsing tests into JSONs
    (with minor refinement, and removing test cases depending
    on interoperability issues of underlying URL parsers),
  • Adjust the JSON schema for parsing tests, and
  • Removes imported resolution tests.

The test failures
(virtual/import-maps-without-builtin-modules/external/wpt/import-maps/common/parsing.tentative.html)
are due to https://github.com/WICG/import-maps/issues/184, i.e.
whether null mappings are removed from parsed import map or not.

Bug: 1026809, https://github.com/WICG/import-maps/issues/170
Change-Id: If1e53cbeafd44c1de1a7fa38ef646fcd5721b495

Reviewed-on: https://chromium-review.googlesource.com/1982509
WPT-Export-Revision: 0ec0506654ef8f1b1afe0f1978e58ab601fe2b3f

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 137 subtests

Status Summary

Firefox

OK : 2
PASS: 19
FAIL: 185

Chrome

OK : 2
PASS: 40
FAIL: 164

Safari

OK : 2
PASS: 19
FAIL: 185

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/import-maps/common/parsing.tentative.html
Relative URL scope keys should work with /s, ?s, and #s: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching scopes schema: should throw if a scope's value is not an object: array: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching the top-level schema: should throw if scopes is a non-object: string: FAIL (Chrome: PASS, Safari: FAIL)
Failing addresses: mismatched trailing slashes: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw for top-level non-objects: boolean: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL-like addresses: should ignore percent-encoded variants of ./, ../, or /: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should absolutize strings prefixed with ./, ../, or / into the corresponding URLs: FAIL (Chrome: FAIL, Safari: FAIL)
Absolute URL specifier keys should accept all absolute URL specifier keys, with or without fetch schemes: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should ignore an empty string key: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw for top-level non-objects: array: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching the top-level schema: should throw if imports is a non-object: string: FAIL (Chrome: PASS, Safari: FAIL)
Specifier keys should be sort correctly (issue #181) - Test #1: FAIL (Chrome: FAIL, Safari: FAIL)
Specifier keys should be sort correctly (issue #181) - Test #2: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching scopes schema: should throw if a scope's value is not an object: string: FAIL (Chrome: PASS, Safari: FAIL)
Normalization: should normalize an import map without imports to have imports: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the specifier map schema: should ignore entries where the specifier key is an empty string: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should deduplicate based on URL parsing rules: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should treat percent-encoded variants of ./, ../, or / as bare specifiers: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if scopes is a non-object: number: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching the top-level schema: should ignore unspecified top-level entries: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if imports is a non-object: null: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching scopes schema: should throw if a scope's value is not an object: null: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL scope keys should work with no prefix: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if imports is a non-object: boolean: FAIL (Chrome: PASS, Safari: FAIL)
Invalid JSON: FAIL (Chrome: PASS, Safari: FAIL)
Other invalid addresses: should ignore unprefixed strings that are not absolute URLs: FAIL (Chrome: FAIL, Safari: FAIL)
Normalization: should normalize an import map without scopes to have scopes: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if imports is a non-object: number: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL scope keys should deduplicate based on URL parsing rules: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys should work with ./, ../, and / prefixes: FAIL (Chrome: FAIL, Safari: FAIL)
Normalization: should normalize empty import maps to have imports and scopes keys: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if imports is a non-object: array: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL specifier keys should not absolutize strings prefixed with ./, ../, or / with a data: URL base: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if scopes is a non-object: array: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching the top-level schema: should throw for top-level non-objects: string: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL scope keys should work with ./, ../, or / with no suffix: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys should work with / suffixes: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys should work with an empty string scope key: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching scopes schema: should throw if a scope's value is not an object: boolean: FAIL (Chrome: PASS, Safari: FAIL)
Mismatching the top-level schema: should throw if scopes is a non-object: boolean: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL-like addresses: should accept strings prefixed with ./, ../, or /: FAIL (Chrome: FAIL, Safari: FAIL)
Absolute URL scope keys should ignore relative URL scope keys when the base URL is a data: URL: FAIL (Chrome: FAIL, Safari: FAIL)
Absolute URL scope keys should accept all absolute URL scope keys, with or without fetch schemes: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw if scopes is a non-object: null: FAIL (Chrome: PASS, Safari: FAIL)
Absolute URL scope keys should parse absolute URL scope keys, ignoring unparseable ones: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should absolutize the literal strings ./, ../, or / with no suffix: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw for top-level non-objects: null: FAIL (Chrome: PASS, Safari: FAIL)
Relative URL-like addresses: should accept the literal strings ./, ../, or / with no suffix: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the specifier map schema: should ignore entries where the address is not a string: FAIL (Chrome: FAIL, Safari: FAIL)
Absolute URL addresses: should parse absolute URLs, ignoring unparseable ones: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching the top-level schema: should throw for top-level non-objects: number: FAIL (Chrome: PASS, Safari: FAIL)
Absolute URL specifier keys should parse absolute URLs, treating unparseable ones as bare specifiers: FAIL (Chrome: FAIL, Safari: FAIL)
Absolute URL addresses: should only accept absolute URL addresses with fetch schemes: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL-like addresses: should not accept strings prefixed with ./, ../, or / for data: base URLs: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL specifier keys should work with /s, ?s, and #s: FAIL (Chrome: FAIL, Safari: FAIL)
Mismatching scopes schema: should throw if a scope's value is not an object: number: FAIL (Chrome: PASS, Safari: FAIL)
/import-maps/common/resolving.tentative.html
Package-like scenarios: package submodules: moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: \invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: https://example.com/app/: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: /app/: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Non-subpath base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope fallback to toplevel: moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use a direct scope override: c: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Subpath base URL (prefix match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
fetch scheme absolute URLs: https://fetch%2Dscheme.com/: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: specifier with punctuation: ..: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: %2E/invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: .%2Finvalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package modules that are not declared should fail: underscore/foo: FAIL (Chrome: FAIL, Safari: FAIL)
fetch scheme absolute URLs: https://fetch-scheme.net: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Non-subpath base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs outside a scope shouldn't use the scope even if the scope has matching keys: lodash-dot: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Non-trailing-slash base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Non-subpath base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: /: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope should use the scope if the scope has matching keys: lodash-dot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: explicitly-mapped specifiers that happen to have a slash: package/withslash: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs outside a scope shouldn't use the scope even if the scope has matching keys: lodash-dotdot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package main modules: lodash-dot: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: prefix-matched by keys with trailing slashes: https://example.com/app/test/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a/x: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope fallback to less specific scope: moment: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a/b: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package main modules: moment: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a/: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: /foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ../foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope should use the scope if the scope has matching keys: lodash-dotdot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: specifier with punctuation: %2F: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: specifier with punctuation: %2E: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: should use the last entry's address when URL-like specifiers parse to the same absolute URL: /test: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Trailing-slash base URL (exact match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ../../../foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a/b/: FAIL (Chrome: FAIL, Safari: FAIL)
non-fetch scheme absolute URLs: wss:non-fetch-scheme: FAIL (Chrome: FAIL, Safari: FAIL)
should favor the most-specific key: Overlapping entries with trailing slashes: a/b/c: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Non-trailing-slash base URL (exact match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ./foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: should still fail for package-like specifiers that are not declared: underscore/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Non-subpath base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
non-fetch scheme absolute URLs: mailto:non-fetch-scheme: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: '../' scope is a scope with import map base URL's parent directory: a: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Subpath base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ./foo: FAIL (Chrome: FAIL, Safari: FAIL)
invalid absolute URLs should fail: https://invalid-url.com:demo: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: submodule of something not declared with a trailing slash should fail: not-a-package/foo: FAIL (Chrome: FAIL, Safari: FAIL)
fetch scheme absolute URLs: about:fetch-scheme: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: %2E%2E/invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: An empty string scope is a scope with import map base URL: c: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: An empty string scope is a scope with import map base URL: a: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: :invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Trailing-slash base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
invalid absolute URLs should fail: http://[invalid-url.com]/: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: https://example.com/dotdotrelative/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: should still fail for package-like specifiers that are not declared: underscore/: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: /foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Fallback to toplevel or not, depending on trailing slash match: moment: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Non-trailing-slash base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package main modules: lodash-dotdot: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: /../../foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope fallback to less specific scope: vue: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs outside a scope shouldn't use the scope even if the scope has matching keys: lodash-dot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Subpath base URL (prefix match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Trailing-slash base URL (exact match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope with trailing slash only: Trailing-slash base URL (exact match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Non-trailing-slash base URL (exact match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: '../' scope is a scope with import map base URL's parent directory: c: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: '../' scope is a scope with import map base URL's parent directory: b: FAIL (Chrome: FAIL, Safari: FAIL)
fetch scheme absolute URLs: https://///fetch-scheme.com///: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Non-subpath base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: https://example.com/: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope should use the scope if the scope has matching keys: lodash-dot: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package names that end in a slash should just pass through: moment/: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: https://example.com/lib/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
non-fetch scheme absolute URLs: import:non-fetch-scheme: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: https://example.com/app/dotrelative/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Subpath base URL (prefix match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package submodules: lodash-dot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Non-trailing-slash base URL (exact match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: module for which only a trailing-slash version is present should fail: only-slash: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs outside a scope shouldn't use the scope even if the scope has matching keys: lodash-dotdot: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: /../foo/../bar: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: https://///example.com/lib/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package submodules: lodash-dotdot/foo: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ./foo/../bar: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: ../: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: specifier with punctuation: ..: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use an indirect scope override: d: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Base URLs inside the scope should use the scope if the scope has matching keys: lodash-dotdot: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use an indirect scope override: a: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use an indirect scope override: b: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use an indirect scope override: c: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Trailing-slash base URL (fail): moment: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ../foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: './' scope is a scope with import map base URL's directory: c: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: './' scope is a scope with import map base URL's directory: b: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: './' scope is a scope with import map base URL's directory: a: FAIL (Chrome: FAIL, Safari: FAIL)
non-fetch scheme absolute URLs: javascript:non-fetch-scheme: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: ../app/dotrelative/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
data: base URL (?): should favor the most-specific key: foo/bar: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Non-trailing-slash base URL (exact match): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Non-subpath base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative specifiers: ./foo/../../bar: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: /lib/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Ordinal URL-like specifiers: ../dotdotrelative/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
valid relative URLs that are invalid as specifiers should fail: @invalid-specifier: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: Import map entries just composed from / and .: ../app/: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should fall back to imports when no scopes match: d: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should fall back to imports when no scopes match: a: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should fall back to imports when no scopes match: c: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should fall back to imports when no scopes match: b: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: Fallback to toplevel or not, depending on trailing slash match: moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
fetch scheme absolute URLs: https:fetch-scheme.org: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Trailing-slash base URL (exact match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scopes with and without trailing slash: Subpath base URL (prefix match): moment: FAIL (Chrome: FAIL, Safari: FAIL)
Relative URL scope keys: An empty string scope is a scope with import map base URL: b: FAIL (Chrome: FAIL, Safari: FAIL)
Exact vs. prefix based matching: Scope without trailing slash only: Subpath base URL (fail): moment/foo: FAIL (Chrome: FAIL, Safari: FAIL)
URL-like specifiers: prefix-matched by keys with trailing slashes: /test/foo.mjs: FAIL (Chrome: FAIL, Safari: FAIL)
Package-like scenarios: package modules that are not declared should fail: underscore/: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use a direct scope override: b: FAIL (Chrome: FAIL, Safari: FAIL)
Tricky specifiers: specifier with punctuation: .: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use a direct scope override: a: FAIL (Chrome: FAIL, Safari: FAIL)
Fallback to toplevel and between scopes: should use a direct scope override: d: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b7d516c6378 [wpt PR 21064] - [Import Maps] Migrate Jest-based parsing tests into JSON-based, a=testonly https://hg.mozilla.org/integration/autoland/rev/1b05bea426e2 [wpt PR 21064] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.