Closed
Bug 1846740
Opened 2 years ago
Closed 2 years ago
[wdspec] Some screenshot clip tests fail because of comparing float with integer values
Categories
(Remote Protocol :: WebDriver BiDi, defect, P1)
Remote Protocol
WebDriver BiDi
Tracking
(firefox118 fixed)
RESOLVED
FIXED
118 Branch
| Tracking | Status | |
|---|---|---|
| firefox118 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m8], [wptsync upstream])
Attachments
(1 file)
Currently some tests for browsingContext.screenshot with the clip argument fail because the compared values are floats and not integers. Affected tests are test_clip_viewport and test_clip_element.
Here the failure message:
FAIL message: assert (190, 23) == (190.6666717529297, 23)
Affected tests use the get_physical_element_dimensions() helper to retrieve the element dimension. While the documentation says it returns integers: Tuple of (int, int) it's not the fact.
For us the failures started when the clipping tests have been added via bug 1840998.
Most likely we have to floor the value when comparing with the PNG dimensions.
Note it doesn't seem to be an issue in our own CI but on Github the test fails.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d86212d5deaf
[wdspec] get_physical_element_dimensions has to return integer numbers and not float. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41335 for changes under testing/web-platform/tests
Updated•2 years ago
|
Priority: -- → P1
Whiteboard: [webdriver:m8]
| Assignee | ||
Updated•2 years ago
|
Points: --- → 1
Comment 4•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox118:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Upstream PR was closed without merging
Upstream PR merged by jgraham
Whiteboard: [webdriver:m8] → [webdriver:m8], [wptsync upstream]
You need to log in
before you can comment on or make changes to this bug.
Description
•