| Index: ui/message_center/cocoa/status_item_view_unittest.mm
|
| diff --git a/ui/message_center/cocoa/status_item_view_unittest.mm b/ui/message_center/cocoa/status_item_view_unittest.mm
|
| index 4e985b91522e287275c8d24d945cf51c856149cb..e276be1f4e3a62b4d73a25757ca622c1d1db12dc 100644
|
| --- a/ui/message_center/cocoa/status_item_view_unittest.mm
|
| +++ b/ui/message_center/cocoa/status_item_view_unittest.mm
|
| @@ -54,14 +54,32 @@ TEST_F(StatusItemViewTest, Callback) {
|
| }
|
|
|
| TEST_F(StatusItemViewTest, UnreadCount) {
|
| + CGFloat initial_width = NSWidth([view_ frame]);
|
| +
|
| + CGFloat width = initial_width;
|
| [view_ setUnreadCount:2];
|
| [view_ display];
|
| + EXPECT_GT(NSWidth([view_ frame]), width);
|
| + width = NSWidth([view_ frame]);
|
| +
|
| [view_ setUnreadCount:10];
|
| [view_ display];
|
| + EXPECT_GT(NSWidth([view_ frame]), width);
|
| + width = NSWidth([view_ frame]);
|
| +
|
| + CGFloat max_width = width;
|
| +
|
| [view_ setUnreadCount:0];
|
| [view_ display];
|
| + EXPECT_LT(NSWidth([view_ frame]), width);
|
| + width = NSWidth([view_ frame]);
|
| + EXPECT_CGFLOAT_EQ(width, initial_width);
|
| +
|
| [view_ setUnreadCount:1000];
|
| [view_ display];
|
| + EXPECT_GT(NSWidth([view_ frame]), width);
|
| + width = NSWidth([view_ frame]);
|
| + EXPECT_CGFLOAT_EQ(width, max_width);
|
| }
|
|
|
| TEST_F(StatusItemViewTest, Highlight) {
|
|
|