Closed Bug 1935976 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 49589 - [Observable#reduce] Test for complex objects as initial values

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Marais Rossouw <me@marais.co> wrote:

[Observable#reduce] Test for complex objects as initial values

We should probably have tests that check that complex objects as initial values, make its way through the promise.

Much like we were doing here: https://github.com/web-platform-tests/wpt/pull/49021

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

CI Results

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

Total 2 tests and 8 subtests

Status Summary

Firefox

OK : 2
FAIL: 16

Chrome

OK : 2
PASS: 16

Safari

OK : 2
FAIL: 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/observable/tentative/observable-reduce.any.html [wpt.fyi]
    • reduce(): Reduces the values of the Observable, starting with the initial seed value: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Rejects if the source observable emits an error: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Seeds with the first value of the source, if no initial value is provided: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Errors thrown in reducer reject the promise and abort the source: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): When source is empty, promise resolves with initial value: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): When source is empty, AND no seed value is provided, the promise rejects with a TypeError: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Reject with an AbortError if the subscription is aborted before the source completes: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Reduces the values for different objects: FAIL (Chrome: PASS, Safari: FAIL)
  • /dom/observable/tentative/observable-reduce.any.worker.html [wpt.fyi]
    • reduce(): Reduces the values of the Observable, starting with the initial seed value: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Rejects if the source observable emits an error: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Seeds with the first value of the source, if no initial value is provided: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Errors thrown in reducer reject the promise and abort the source: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): When source is empty, promise resolves with initial value: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): When source is empty, AND no seed value is provided, the promise rejects with a TypeError: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Reject with an AbortError if the subscription is aborted before the source completes: FAIL (Chrome: PASS, Safari: FAIL)
    • reduce(): Reduces the values for different objects: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d98647235c29 [wpt PR 49589] - [Observable#reduce] Test for complex objects as initial values, a=testonly https://hg.mozilla.org/integration/autoland/rev/98db2912b839 [wpt PR 49589] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.