Closed Bug 1888947 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 45452 - DOM: Implement the `switchMap()` Observable operator

Categories

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

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dominic Farolino <dom@chromium.org> wrote:

DOM: Implement the switchMap() Observable operator

See https://github.com/WICG/observable/pull/130 for the spec PR, and
https://chromium-review.googlesource.com/c/chromium/src/+/5381640 for
documentation about the flatMap() operator, which is structured in
almost the same way as switchMap().

R=masonf@chromium.org

Bug: 40282760
Change-Id: Id2b0de2d60dd985be843f154bebd66f8948f36f3

Reviewed-on: https://chromium-review.googlesource.com/5410391
WPT-Export-Revision: fadf0ee6abd3a992eb7c09e39274a3ff80964cb1

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

CI Results

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

Total 2 tests and 6 subtests

Status Summary

Firefox

OK : 2
FAIL: 12

Safari

OK : 2
FAIL: 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/observable/tentative/observable-switchMap.any.worker.html [wpt.fyi]
    • switchMap(): result subscribes to one inner observable at a time, unsubscribing from the previous active one when a new one replaces it: FAIL (Safari: FAIL)
    • switchMap(): result does not complete when the source observable completes, if the inner observable is still active: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if Mapper callback throws an error: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if the source observable emits an error: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if the inner observable emits an error: FAIL (Safari: FAIL)
    • switchMap(): should unsubscribe in the correct order when user aborts the subscription: FAIL (Safari: FAIL)
  • /dom/observable/tentative/observable-switchMap.any.html [wpt.fyi]
    • switchMap(): result subscribes to one inner observable at a time, unsubscribing from the previous active one when a new one replaces it: FAIL (Safari: FAIL)
    • switchMap(): result does not complete when the source observable completes, if the inner observable is still active: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if Mapper callback throws an error: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if the source observable emits an error: FAIL (Safari: FAIL)
    • switchMap(): result emits an error if the inner observable emits an error: FAIL (Safari: FAIL)
    • switchMap(): should unsubscribe in the correct order when user aborts the subscription: FAIL (Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8da75178b793 [wpt PR 45452] - DOM: Implement the `switchMap()` Observable operator, a=testonly https://hg.mozilla.org/integration/autoland/rev/026397a71d09 [wpt PR 45452] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.