| Index: chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| diff --git a/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm b/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| index da01dbbd2526278371e7ca82220d68d639000ddc..c76eb973fe8f3c286c7db7be8622c077362c6551 100644
|
| --- a/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| +++ b/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| @@ -223,6 +223,7 @@ TEST_F(AutocompleteTextFieldCellTest, TextFrame) {
|
| EXPECT_LT(NSMaxX(textFrame), searchHintMaxX);
|
| EXPECT_TRUE(NSContainsRect(cursorFrame, textFrame));
|
|
|
| +
|
| // Text frame should take everything over again on reset.
|
| [cell clearHint];
|
| textFrame = [cell textFrameForFrame:bounds];
|
| @@ -281,6 +282,7 @@ TEST_F(AutocompleteTextFieldCellTest, DrawingRectForBounds) {
|
| EXPECT_TRUE(NSContainsRect(NSInsetRect(textFrame, 1, 1), drawingRect));
|
|
|
| [cell clearHint];
|
| +
|
| textFrame = [cell textFrameForFrame:bounds];
|
| drawingRect = [cell drawingRectForBounds:bounds];
|
| EXPECT_FALSE(NSIsEmptyRect(drawingRect));
|
| @@ -407,6 +409,8 @@ TEST_F(AutocompleteTextFieldCellTest, PageActionImageFrame) {
|
| EXPECT_LE(NSMaxX(labelRect), NSMinX(iconRect0));
|
| }
|
|
|
| + NSImage* image = [NSImage imageNamed:@"NSApplicationIcon"];
|
| +
|
| // Test that the cell drops the search hint if there is no room for
|
| // it.
|
| TEST_F(AutocompleteTextFieldCellTest, OmitsSearchHintIfNarrow) {
|
|
|