summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/toolbar_controller_unittest.mm
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
commitfc72076a7fa4c7260312fcb092294ab6e2a39821 (patch)
tree34ca8cca838e7f2aaf317a74034e60033ae8009f /chrome/browser/cocoa/toolbar_controller_unittest.mm
parente5ef3c8b7bebbce20319c73ccf153f3da596d650 (diff)
downloadchromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.zip
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.gz
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.bz2
[Mac] Tweaks to Omnibox metrics.
Pull in the popup corners by half a pixel to more closely match the rounding on the buttons. Pull up the gap between the popup and the field by one pixel to match Windows. http://crbug.com/20446 Review URL: http://codereview.chromium.org/178007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/toolbar_controller_unittest.mm')
-rw-r--r--chrome/browser/cocoa/toolbar_controller_unittest.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/toolbar_controller_unittest.mm b/chrome/browser/cocoa/toolbar_controller_unittest.mm
index a39481b..64532b0 100644
--- a/chrome/browser/cocoa/toolbar_controller_unittest.mm
+++ b/chrome/browser/cocoa/toolbar_controller_unittest.mm
@@ -272,8 +272,9 @@ TEST_F(ToolbarControllerTest, AutocompletePopupPosition) {
EXPECT_LT(popupFrame.x(), NSMinX(locationFrame));
EXPECT_GT(popupFrame.right(), NSMaxX(locationFrame));
- // Make sure the popup frame is positioned at the bottom of the location bar.
- EXPECT_EQ(popupFrame.bottom(), NSMinY(locationFrame));
+ // Make sure the popup frame is positioned above the bottom of the
+ // location bar.
+ EXPECT_GE(popupFrame.bottom(), NSMinY(locationFrame));
}