Closed Bug 1692599 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27616 - Add tests for more interesting import assertion module map caching scenarios

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Daniel Clark <daniec@microsoft.com>' wrote:

Add tests for more interesting import assertion module map caching scenarios

Add tests for some scenarios where the module type being part of the
module map cache key (along with the specifier) affects the outcome.
For example, if an import of a given specifier uses the wrong module
type, a later import of the same specifier should succeed if it uses
the correct type assertion.

Add a wpt script for testing some of the stranger cases where repeated
fetches to the same specifier respond with different content types.

Also add basic tests for dynamic import() with the assertions
argument to the virtual/import-assertions suite.

Bug: 1132413
Change-Id: I3ff4cde5a402d3d8c502fdb2bac133323c028254

Reviewed-on: https://chromium-review.googlesource.com/2692491
WPT-Export-Revision: cbcce20467d55897bcca56ee781453cfcd42f1ad

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 2 tests

Status Summary

Firefox

ERROR: 2

Chrome

ERROR: 2

Safari

ERROR: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/scripting-1/the-script-element/import-assertions/dynamic-import-with-assertion-argument.html: ERROR (Chrome: ERROR, Safari: ERROR)
/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.html: ERROR (Chrome: ERROR, Safari: ERROR)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4fb7be79db52
[wpt PR 27616] - Add tests for more interesting import assertion module map caching scenarios, a=testonly
https://hg.mozilla.org/integration/autoland/rev/247ec3b7e2ff
[wpt PR 27616] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.