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

Unified Diff: chrome/browser/cocoa/location_bar_view_mac_unittest.mm

Issue 1581011: [Mac] Magnifying glass in keyword-search bubble. (Closed)
Patch Set: Present for Rohit. Created 10 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 | « chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/location_bar_view_mac_unittest.mm
diff --git a/chrome/browser/cocoa/location_bar_view_mac_unittest.mm b/chrome/browser/cocoa/location_bar_view_mac_unittest.mm
index aec948da6ffcfbab75569a3eb904a6eecc01667c..733b66192f69e14dc97b9beed526839ad5c40269 100644
--- a/chrome/browser/cocoa/location_bar_view_mac_unittest.mm
+++ b/chrome/browser/cocoa/location_bar_view_mac_unittest.mm
@@ -118,11 +118,11 @@ TEST_F(LocationBarViewMacTest, OnChangedImpl) {
// parameter is true or false.
LocationBarViewMac::OnChangedImpl(
field_, kKeyword, kKeyword, false, true, image);
- EXPECT_TRUE([[[cell keywordString] string] isEqualToString:kKeywordString]);
+ EXPECT_TRUE([[[cell keywordString] string] hasSuffix:kKeywordString]);
EXPECT_FALSE([cell hintString]);
LocationBarViewMac::OnChangedImpl(
field_, kKeyword, kKeyword, false, false, image);
- EXPECT_TRUE([[[cell keywordString] string] isEqualToString:kKeywordString]);
+ EXPECT_TRUE([[[cell keywordString] string] hasSuffix:kKeywordString]);
EXPECT_FALSE([cell hintString]);
// Check that a partial keyword-search string is passed down in case
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698