Closed Bug 1964053 Opened 20 days ago Closed 10 days ago

[wpt-sync] Sync PR 52285 - [Viewport Segments] Fix WPT tests not working on wpt.fyi

Categories

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

task

Tracking

(firefox140 fixed)

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Menard, Alexis <alexis.menard@intel.com> wrote:

[Viewport Segments] Fix WPT tests not working on wpt.fyi

It turns out that the runner may have a viewport with dimensions which
will not return an integer if divided by 2 (to put the display feature
in the middle). set_display_features expect an integer so let's make sure we give it one. Also make sure we allow for rounding errors when checking the values of the segments.

Bug: 40137084
Change-Id: I713be16200f78cdca15e80d0397ee930168a727e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6505780
Commit-Queue: Alexis Menard \<alexis.menard@intel.com>
Reviewed-by: Jonathan Lee \<jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1454533}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Component: CSS Parsing and Computation → web-platform-tests
Product: Core → Testing

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

FAIL : 2
ERROR: 2

Chrome

OK : 2
PASS : 1
FAIL : 1

Safari

FAIL : 2
ERROR: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Automatic update from web-platform-tests
[Viewport Segments] Fix WPT tests not working on wpt.fyi

It turns out that the runner may have a viewport with dimensions which
will not return an integer if divided by 2 (to put the display feature
in the middle). set_display_features expect an integer so let's make sure we give it one. Also make sure we allow for rounding errors when checking the values of the segments.

Bug: 40137084
Change-Id: I713be16200f78cdca15e80d0397ee930168a727e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6505780
Commit-Queue: Alexis Menard <alexis.menard@intel.com>
Reviewed-by: Jonathan Lee <jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1454533}

--

wpt-commits: 556ae05b4337fbd45c6ec77edecdad1582a020e2
wpt-pr: 52285

Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93e100533243 [wpt PR 52285] - [Viewport Segments] Fix WPT tests not working on wpt.fyi,
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: