Commit c8c5da67 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Increase Margin of Error in Find in Page Javascript Test

For iOS 13, the scroll position for iPad is slightly larger.
This shouldn't make the test significantly more unreliable since it
is just bumping it up 0.5.

Bug: 983149
Change-Id: I588f9a7566959c15ea3fae492fa864a44c5e205e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1697533Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676901}
parent 0a72cc2f
...@@ -432,7 +432,7 @@ TEST_F(FindInPageJsTest, CheckFindInPageScrollsToMatch) { ...@@ -432,7 +432,7 @@ TEST_F(FindInPageJsTest, CheckFindInPageScrollsToMatch) {
})); }));
// Scroll offset should either be 1035.333 for most iPhone and 1035.5 for iPad // Scroll offset should either be 1035.333 for most iPhone and 1035.5 for iPad
// and 5S. // and 5S.
EXPECT_NEAR(top_scroll_after_select, 1035, 0.5); EXPECT_NEAR(top_scroll_after_select, 1035, 1.0);
} }
// Tests that FindInPage is able to clear CSS and match highlighting. // Tests that FindInPage is able to clear CSS and match highlighting.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment