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

Unified Diff: content/browser/zoom_browsertest.cc

Issue 2761473002: Zoom browsertest: Relax precision of floating-point comparison (Closed)
Patch Set: Created 3 years, 9 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/zoom_browsertest.cc
diff --git a/content/browser/zoom_browsertest.cc b/content/browser/zoom_browsertest.cc
index 38b2753400e745dc77814766896b038fa098f035..3a6721f04d61c2e56c33a972f12cf89f1c2c5f74 100644
--- a/content/browser/zoom_browsertest.cc
+++ b/content/browser/zoom_browsertest.cc
@@ -584,10 +584,9 @@ IN_PROC_BROWSER_TEST_F(IFrameZoomBrowserTest,
EXPECT_TRUE(IsLastCommittedEntryOfPageType(web_contents(), PAGE_TYPE_NORMAL));
EXPECT_EQ(redirect_url, web_contents()->GetLastCommittedURL());
- EXPECT_NEAR(
- kZoomFactorForRedirectedHost,
- GetMainFrameZoomFactor(web_contents(), main_frame_window_border),
- 0.001);
+ EXPECT_NEAR(kZoomFactorForRedirectedHost,
+ GetMainFrameZoomFactor(web_contents(), main_frame_window_border),
+ 0.01);
}
#endif
« 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