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

Unified Diff: content/browser/renderer_host/input/touch_action_browsertest.cc

Issue 2347903002: Allow for 1px rounding errors in scroll tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_action_browsertest.cc
diff --git a/content/browser/renderer_host/input/touch_action_browsertest.cc b/content/browser/renderer_host/input/touch_action_browsertest.cc
index 986e006a14d50d489fd5b893ebf94ee3f8e42a51..af1ad92b5d42d7159b19786ca0e12ef389fe7aea 100644
--- a/content/browser/renderer_host/input/touch_action_browsertest.cc
+++ b/content/browser/renderer_host/input/touch_action_browsertest.cc
@@ -174,7 +174,8 @@ class TouchActionBrowserTest : public ContentBrowserTest {
if (scrollTop == 0)
return false;
- EXPECT_EQ(distance.y(), scrollTop);
+ // Allow for 1px rounding inaccuracies for some screen sizes.
+ EXPECT_NEAR(distance.y(), scrollTop, 1);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698