Closed Bug 1755091 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32825 - Fetch: add tests for Response.json

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Luca Casonato <hello@lcas.dev> wrote:

Fetch: add tests for Response.json

Spec change: https://github.com/whatwg/fetch/pull/1392

DO NOT MERGE

Component: web-platform-tests → DOM: Networking
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]

CI Results

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

Total 4 tests and 13 subtests

Status Summary

Firefox

OK : 4
PASS: 20
FAIL: 32

Chrome

OK : 4
PASS: 20
FAIL: 32

Safari

OK : 4
PASS: 20
FAIL: 32

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /fetch/api/response/response-static-json.any.worker.html [wpt.fyi]
    • Check response returned by static json() with init undefined: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"status":400}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"statusText":"foo"}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"x-foo":"bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() encodes JSON objects correctly: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() propagates JSON serializer errors: FAIL (Chrome: FAIL, Safari: FAIL)
  • /fetch/api/response/response-static-json.any.html [wpt.fyi]
    • Check response returned by static json() with init undefined: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"status":400}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"statusText":"foo"}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"x-foo":"bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() encodes JSON objects correctly: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() propagates JSON serializer errors: FAIL (Chrome: FAIL, Safari: FAIL)
  • /fetch/api/response/response-static-json.any.serviceworker.html [wpt.fyi]
    • Check response returned by static json() with init undefined: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"status":400}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"statusText":"foo"}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"x-foo":"bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() encodes JSON objects correctly: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() propagates JSON serializer errors: FAIL (Chrome: FAIL, Safari: FAIL)
  • /fetch/api/response/response-static-json.any.sharedworker.html [wpt.fyi]
    • Check response returned by static json() with init undefined: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"status":400}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"statusText":"foo"}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check response returned by static json() with init {"headers":{"x-foo":"bar"}}: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() encodes JSON objects correctly: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check static json() propagates JSON serializer errors: FAIL (Chrome: FAIL, Safari: FAIL)
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/83891639237e
[wpt PR 32825] - Fetch: add tests for Response.json, a=testonly
https://hg.mozilla.org/integration/autoland/rev/6de1e024566d
[wpt PR 32825] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.