Closed Bug 1793861 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36150 - Add ScreenDetails JS API test coverage

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mike Wasserman <msw@chromium.org> wrote:

Add ScreenDetails JS API test coverage

Add a browser_tests fixture for basic API values.

  • WPTs check the API shape, but not value accuracy
  • content_browsertests do not support per-test permissions

Add test util files to share helpers for new and disabled tests.

Update content_browsertest naming and comments, remove flag use.

Bug: 897300, 1119974
Change-Id: Id2eb9d55f479b622662e5b4163f815598ca2e200
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3924460
Reviewed-by: Brad Triebwasser \<btriebw@chromium.org>
Commit-Queue: Mike Wasserman \<msw@chromium.org>
Auto-Submit: Mike Wasserman \<msw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1055492}

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
FAIL: 5

Chrome

OK : 1
PASS: 5

Safari

OK : 1
FAIL: 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /screen-details/getScreenDetails.tentative.https.window.html [wpt.fyi]
    • getScreenDetails() is present: FAIL (Chrome: PASS, Safari: FAIL)
    • getScreenDetails() returns the expected interface with permission granted: FAIL (Chrome: PASS, Safari: FAIL)
    • getScreenDetails() rejects the promise with permission denied: FAIL (Chrome: PASS, Safari: FAIL)
    • getScreenDetails() resolves for attached iframe; rejects for detached iframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Cached ScreenDetails interface from detached iframe does not crash, behaves okay: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ffe31e4f9c9 [wpt PR 36150] - Add ScreenDetails JS API test coverage, a=testonly https://hg.mozilla.org/integration/autoland/rev/b71aa83913f6 [wpt PR 36150] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.