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

Unified Diff: chrome/browser/ui/views/frame/browser_view_unittest.cc

Issue 1395193002: Fixes BrowserViewHostedAppTest.Layout when using MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes BrowserViewHostedAppTest.Layout when using MD Created 5 years, 2 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
Index: chrome/browser/ui/views/frame/browser_view_unittest.cc
diff --git a/chrome/browser/ui/views/frame/browser_view_unittest.cc b/chrome/browser/ui/views/frame/browser_view_unittest.cc
index a693b05ce586c64528c709b745d4d9a05c1ffea2..574c6c6b2fad0524e3c9d487d4286912c3b23bfc 100644
--- a/chrome/browser/ui/views/frame/browser_view_unittest.cc
+++ b/chrome/browser/ui/views/frame/browser_view_unittest.cc
@@ -201,6 +201,7 @@ TEST_F(BrowserViewHostedAppTest, Layout) {
// The find bar should overlap the 1px header/web-contents separator at the
// bottom of the header.
- EXPECT_EQ(browser_view()->frame()->GetTopInset() - 1,
+ EXPECT_EQ(browser_view()->frame()->GetTopInset() -
+ GetLayoutConstant(FIND_BAR_VERTICAL_OFFSET),
Peter Kasting 2015/10/09 22:15:06 I would probably avoid checking this exact value,
varkha 2015/10/13 14:51:13 Done.
browser_view()->GetFindBarBoundingBox().y());
}

Powered by Google App Engine
This is Rietveld 408576698