Bug 1614503 [wpt PR 21707] - [Import Maps] Make errors block the whole resolution...
commitc7c0d4af383167ff1012eac24557220b8b6b1152
authorHiroshige Hayashizaki <hiroshige@chromium.org>
Sat, 15 Feb 2020 10:09:37 +0000 (15 10:09 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 17 Feb 2020 10:27:37 +0000 (17 10:27 +0000)
tree9d0db49d14edd0e8c85c930f0f8f7ac30374389a
parent41cf7875c72700b8d4581b1054865a3b43ae5c8f
Bug 1614503 [wpt PR 21707] - [Import Maps] Make errors block the whole resolution, Blink-side, a=testonly

Automatic update from web-platform-tests
[Import Maps] Make errors block the whole resolution, Blink-side

Reflects https://github.com/WICG/import-maps/pull/205.

This CL updates tests from #205.

To match the behavior with the updated spec,
this CL turns non-String values into `null` entries
(i.e. make whole resolution fail without further fallback),
instead of ignoring such entries.
Other aspects were already conformant with the updated spec
(i.e. weren't matching with the spec before #205).

This CL updates (test-only) import maps serialization code
so that it matches with the reference implementation, i.e.
dump `null` entries as `null` instead of `[]`.

This CL also updates spec comments.

Bug: 990561, https://github.com/WICG/import-maps/issues/184
Change-Id: Ifa2d04bf20fcef5575c14d135c328730ea09c454
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037012
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740847}

--

wpt-commits: 8767abfffb790e4928ac9433282928caa2357ee8
wpt-pr: 21707
testing/web-platform/tests/import-maps/common/resolving.tentative.html
testing/web-platform/tests/import-maps/common/resources/parsing-addresses-absolute.json
testing/web-platform/tests/import-maps/common/resources/parsing-addresses-invalid.json
testing/web-platform/tests/import-maps/common/resources/parsing-addresses.json
testing/web-platform/tests/import-maps/common/resources/parsing-schema-specifier-map.json
testing/web-platform/tests/import-maps/common/resources/parsing-trailing-slashes.json
testing/web-platform/tests/import-maps/common/resources/resolving-null.json [new file with mode: 0644]