[wpt-sync] Sync PR 45452 - DOM: Implement the `switchMap()` Observable operator
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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 operatorSee https://github.com/WICG/observable/pull/130 for the spec PR, and
https://chromium-review.googlesource.com/c/chromium/src/+/5381640 for
documentation about theflatMap()operator, which is structured in
almost the same way asswitchMap().Bug: 40282760
Change-Id: Id2b0de2d60dd985be843f154bebd66f8948f36f3Reviewed-on: https://chromium-review.googlesource.com/5410391
WPT-Export-Revision: fadf0ee6abd3a992eb7c09e39274a3ff80964cb1
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
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)
- switchMap(): result subscribes to one inner observable at a time, unsubscribing from the previous active one when a new one replaces it:
- /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)
- switchMap(): result subscribes to one inner observable at a time, unsubscribing from the previous active one when a new one replaces it:
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8da75178b793
https://hg.mozilla.org/mozilla-central/rev/026397a71d09
Description
•