Closed Bug 1919951 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 48216 - [wpt] Fix masked failure in `display-mode.https.html`

Categories

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

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jonathan Lee <jonathanjlee@google.com> wrote:

[wpt] Fix masked failure in display-mode.https.html

a. assert_true() checks for strict equality with true 0, so coerce
the MediaQueryList accordingly.
b. Failure (a) was not correctly attributed to the test because
step_func_done() expects sync functions that can throw 1. Passing
an async function will immediately mark the test as a success, but
the returned promise that eventually rejects isn't handled, causing
a harness error 2. The async_test() can be expressed more
naturally as a promise_test().

Bug: 41496375
Change-Id: I894678b014ffdbc69e3e8b4e766eccefc1a67043
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5868839
Commit-Queue: Jonathan Lee \<jonathanjlee@google.com>
Reviewed-by: Fr \<beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1356524}

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 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /document-picture-in-picture/display-mode.https.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
    • Test picture-in-picture display mode: FAIL (Chrome: PASS, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

  • /document-picture-in-picture/display-mode.https.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22a0177a7756 [wpt PR 48216] - [wpt] Fix masked failure in `display-mode.https.html`, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.