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

Unified Diff: chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc

Issue 1082833006: Compute the correct maximum contents width when eliding away the description in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug and test Created 5 years, 8 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 | « chrome/browser/ui/omnibox/omnibox_popup_model.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc b/chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc
index f7c3b4b37e9de741d5bbe1a0cf901bbc47f5e33a..85787b3164bdc9ac6e334f2392792d2657afe5b3 100644
--- a/chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc
+++ b/chrome/browser/ui/omnibox/omnibox_popup_model_unittest.cc
@@ -63,7 +63,7 @@ TEST(OmniboxPopupModelTest, ComputeMatchMaxWidths) {
OmniboxPopupModel::ComputeMatchMaxWidths(
contents_width, separator_width, description_width, available_width,
true, &contents_max_width, &description_max_width);
- EXPECT_EQ(contents_width, contents_max_width);
+ EXPECT_EQ(available_width, contents_max_width);
EXPECT_EQ(0, description_max_width);
// Half and half.
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_popup_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698