Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 1374373002: Allow MainSync deviation of 1px in AndroidScrollIntegrationTest (Closed)

Created:
5 years, 2 months ago by kraush
Modified:
5 years, 2 months ago
Reviewers:
hush (inactive), boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow MainSync deviation of 1px in AndroidScrollIntegrationTest This change alters AndroidScrollIntegrationTest to allow for a 1px negative deviation when asserting scroll values. This is necessary due to Math being used in productive code that is slightly different than the DIP scale verification done in this test. It also moves asserts onto the testing thread to get stack traces in case a test fails. BUG=537343 Committed: https://crrev.com/79e506a61a58a10da7e826e4acba6f7fe4e94845 Cr-Commit-Position: refs/heads/master@{#353937}

Patch Set 1 #

Patch Set 2 : Keep flooring but allow 1 pixel downwards deviation #

Total comments: 1

Patch Set 3 : Added a comment and updated commit message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -17 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 1 2 3 chunks +67 lines, -17 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
kraush
Hi boliu, Here's a proposed fix for http://crbug.com/537343 Can you please take a look at ...
5 years, 2 months ago (2015-09-29 20:32:15 UTC) #2
boliu
Sent a try job and let's see if it works on nexus 5 (scale == ...
5 years, 2 months ago (2015-09-29 22:23:51 UTC) #3
hush (inactive)
I remember having trouble with nexus 6 regard to floating point too. Like these bugs: ...
5 years, 2 months ago (2015-09-30 20:09:57 UTC) #5
kraush
@hush: Unfortunately I do not have a Nexus 6 at hand :( @boliu: Good point, ...
5 years, 2 months ago (2015-10-01 02:32:55 UTC) #6
kraush
This new patch set keeps all the flooring and ceiling, and instead allows for a ...
5 years, 2 months ago (2015-10-13 23:35:28 UTC) #7
boliu
https://codereview.chromium.org/1374373002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java (right): https://codereview.chromium.org/1374373002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java#newcode230 android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java:230: assertTrue("Actual and expected x-scroll offsets do not match. Expected ...
5 years, 2 months ago (2015-10-13 23:48:52 UTC) #8
kraush
On 2015/10/13 23:48:52, boliu wrote: > https://codereview.chromium.org/1374373002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java > File > android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java > (right): > > ...
5 years, 2 months ago (2015-10-14 00:01:59 UTC) #9
kraush
Added a comment as suggested by boliu. Also updated the commit message to reflect the ...
5 years, 2 months ago (2015-10-14 00:26:37 UTC) #10
boliu
lgtm
5 years, 2 months ago (2015-10-14 00:36:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374373002/40001
5 years, 2 months ago (2015-10-14 00:47:19 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-14 01:18:54 UTC) #14
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 01:20:34 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/79e506a61a58a10da7e826e4acba6f7fe4e94845
Cr-Commit-Position: refs/heads/master@{#353937}

Powered by Google App Engine
This is Rietveld 408576698