Closed Bug 1915752 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 47877 - DOM: Implement the `Observable#catch()` operator

Categories

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

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dominic Farolino <dom@chromium.org> wrote:

DOM: Implement the Observable#catch() operator

See https://github.com/WICG/observable/pull/172.

R=masonf@chromium.org

Bug: 40282760
Change-Id: I6b117b34ddcbed0a7ac18d4c66121350b0e864c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5823731
Commit-Queue: Dominic Farolino \<dom@chromium.org>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1348932}

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 and 9 subtests

Status Summary

Firefox

OK : 2
FAIL : 18

Chrome

FAIL : 13
ERROR: 2

Safari

OK : 2
FAIL : 18

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/observable/tentative/observable-catch.any.worker.html [wpt.fyi]
    • catch(): Returns an Observable that is a pass-through for next()/complete(): FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): Handle errors from source and flatten to a new Observable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): Errors thrown in the catch() callback are sent to the consumer's error handler: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler can return an empty iterable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler can return a Promise: FAIL (Safari: FAIL)
    • catch(): should handle returning an async iterable: FAIL (Safari: FAIL)
    • catch(): CatchHandler emits an error if the value returned is not convertible to an Observable: FAIL (Safari: FAIL)
    • catch(): CatchHandler returns an Observable that throws immediately on subscription: FAIL (Safari: FAIL)
    • catch(): Abort order between outer AbortSignal and inner CatchHandler subscriber's AbortSignal: FAIL (Safari: FAIL)
  • /dom/observable/tentative/observable-catch.any.html [wpt.fyi]
    • catch(): Returns an Observable that is a pass-through for next()/complete(): FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): Handle errors from source and flatten to a new Observable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): Errors thrown in the catch() callback are sent to the consumer's error handler: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler can return an empty iterable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler can return a Promise: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): should handle returning an async iterable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler emits an error if the value returned is not convertible to an Observable: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): CatchHandler returns an Observable that throws immediately on subscription: FAIL (Chrome: FAIL, Safari: FAIL)
    • catch(): Abort order between outer AbortSignal and inner CatchHandler subscriber's AbortSignal: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2bd918ac8037 [wpt PR 47877] - DOM: Implement the `Observable#catch()` operator, a=testonly https://hg.mozilla.org/integration/autoland/rev/6a0eedf2a189 [wpt PR 47877] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.