Scrolling on Android is not pixel-precise

NEW
Unassigned

Status

()

P3
normal
2 years ago
a year ago

People

(Reporter: ayg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

In bug 1271119, I ported editor/libeditor/tests/test_selection_move_commands.html from a chrome mochitest to a plain mochitest.  That happened to enable the test on Android, and it almost passes, but with deviations of 0.1-0.2 pixels in expected values after scrolling:

https://treeherder.mozilla.org/logviewer.html#?job_id=26674951&repo=try#L2277

 INFO TEST-UNEXPECTED-FAIL | editor/libeditor/tests/test_selection_move_commands.html | cmd_scrollBottom - got -300.1166687011719, expected -300
 SimpleTest.is@SimpleTest/SimpleTest.js:268:5
 testScrollCommand@editor/libeditor/tests/test_selection_move_commands.html:60:5
 execTests@editor/libeditor/tests/test_selection_move_commands.html:122:3
 execNext@editor/libeditor/tests/test_selection_move_commands.html:24:5
 ...
 INFO TEST-UNEXPECTED-FAIL | editor/libeditor/tests/test_selection_move_commands.html | cmd_scrollPageUp - got -210.71665954589844, expected -210.56666564941406
 SimpleTest.is@SimpleTest/SimpleTest.js:268:5
 testScrollCommand@editor/libeditor/tests/test_selection_move_commands.html:60:5
 execTests@editor/libeditor/tests/test_selection_move_commands.html:135:3
 execNext@editor/libeditor/tests/test_selection_move_commands.html:24:5
 ...
 TEST-UNEXPECTED-FAIL | editor/libeditor/tests/test_selection_move_commands.html | cmd_scrollLineUp - got -235.23333740234375, expected -235.0500030517578
 SimpleTest.is@SimpleTest/SimpleTest.js:268:5
 testScrollCommand@editor/libeditor/tests/test_selection_move_commands.html:60:5
 execTests@editor/libeditor/tests/test_selection_move_commands.html:145:3
 execNext@editor/libeditor/tests/test_selection_move_commands.html:24:5
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.