Commit 3c10af5a authored by blundell's avatar blundell Committed by Commit bot

Zoom browsertest: Relax precision of floating-point comparison

This CL relaxes the precision of a floating-point comparison made in the
zoom browsertest to avoid spurious test failures.

BUG=702269

Review-Url: https://codereview.chromium.org/2761473002
Cr-Commit-Position: refs/heads/master@{#457758}
parent 1e3b610b
...@@ -584,10 +584,9 @@ IN_PROC_BROWSER_TEST_F(IFrameZoomBrowserTest, ...@@ -584,10 +584,9 @@ IN_PROC_BROWSER_TEST_F(IFrameZoomBrowserTest,
EXPECT_TRUE(IsLastCommittedEntryOfPageType(web_contents(), PAGE_TYPE_NORMAL)); EXPECT_TRUE(IsLastCommittedEntryOfPageType(web_contents(), PAGE_TYPE_NORMAL));
EXPECT_EQ(redirect_url, web_contents()->GetLastCommittedURL()); EXPECT_EQ(redirect_url, web_contents()->GetLastCommittedURL());
EXPECT_NEAR( EXPECT_NEAR(kZoomFactorForRedirectedHost,
kZoomFactorForRedirectedHost, GetMainFrameZoomFactor(web_contents(), main_frame_window_border),
GetMainFrameZoomFactor(web_contents(), main_frame_window_border), 0.01);
0.001);
} }
#endif #endif
......
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