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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 99543003: Fix popup crash on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: ash/system/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index 5ae2e49deaf8612d3fcb5540ba6eb1a62b1d8b66..b64e2b8f7f424cdcf08dfeec5b8b61c86af37057 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -208,6 +208,16 @@ TEST_F(WebNotificationTrayTest, WebNotificationPopupBubble) {
// Removing the visible notification should hide the popup bubble.
RemoveNotification("test_id3");
EXPECT_FALSE(GetTray()->IsPopupVisible());
+
+ // Now test that we can show multiple popups and then show the message center.
+ AddNotification("test_id4");
+ AddNotification("test_id5");
+ EXPECT_TRUE(GetTray()->IsPopupVisible());
+
+ GetTray()->message_center_tray_->ShowMessageCenterBubble();
+ GetTray()->message_center_tray_->HideMessageCenterBubble();
+
+ EXPECT_FALSE(GetTray()->IsPopupVisible());
}
using message_center::NotificationList;

Powered by Google App Engine
This is Rietveld 408576698