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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java

Issue 1026853002: Integrate the notification database with the normal code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Patch Set: delete a now invalid 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java
index 3aca840ecfcdfb2aada670c4b5653bfc10830475..7b142dc17b050b77c5258cd9fae0ee52c9976ade 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java
@@ -7,7 +7,6 @@ package org.chromium.chrome.browser.notifications;
import android.app.Notification;
import android.graphics.Bitmap;
import android.os.Build;
-import android.test.FlakyTest;
import android.test.suitebuilder.annotation.LargeTest;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
@@ -233,28 +232,6 @@ public class NotificationUIManagerTest extends ChromeShellTestBase {
}
/*
- * Verifies that starting the PendingIntent stored as the notification's delete intent will
- * close the notification.
- */
- /* @MediumTest */
- @FlakyTest
- @Feature({"Browser", "Notifications"})
- public void testNotificationDeleteIntentClosesNotification() throws Exception {
- setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
-
- Notification notification = showAndGetNotification("MyNotification", "{}");
- assertEquals(1, mMockNotificationManager.getNotifications().size());
-
- // Sending the PendingIntent simulates dismissing (swiping away) the notification.
- assertNotNull(notification.deleteIntent);
- notification.deleteIntent.send();
- // The deleteIntent should trigger a call to cancel() in the NotificationManager.
- assertTrue(waitForNotificationManagerMutation());
-
- assertEquals(0, mMockNotificationManager.getNotifications().size());
- }
-
- /*
* Verifies that starting the PendingIntent stored as the notification's content intent will
* start up the associated Service Worker, where the JavaScript code will close the notification
* by calling event.notification.close().

Powered by Google App Engine
This is Rietveld 408576698