summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/task_manager_notification_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/task_manager/task_manager_notification_browsertest.cc')
-rw-r--r--chrome/browser/task_manager/task_manager_notification_browsertest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/task_manager/task_manager_notification_browsertest.cc b/chrome/browser/task_manager/task_manager_notification_browsertest.cc
index bbae222..76ad825 100644
--- a/chrome/browser/task_manager/task_manager_notification_browsertest.cc
+++ b/chrome/browser/task_manager/task_manager_notification_browsertest.cc
@@ -54,8 +54,8 @@ IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest,
// Show the task manager.
chrome::ShowTaskManager(browser());
- // Expect to see the browser and the New Tab Page renderers.
- TaskManagerBrowserTestUtil::WaitForWebResourceChange(2);
+ // Expect to see the browser and the New Tab Page renderer.
+ TaskManagerBrowserTestUtil::WaitForWebResourceChange(1);
// Show a notification.
NotificationUIManager* notifications =
@@ -73,11 +73,11 @@ IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest,
GURL(), GURL(content), ASCIIToUTF16("Test 2"), string16(), del2.get());
notifications->Add(n1, browser()->profile());
- TaskManagerBrowserTestUtil::WaitForWebResourceChange(3);
+ TaskManagerBrowserTestUtil::WaitForWebResourceChange(2);
notifications->Add(n2, browser()->profile());
- TaskManagerBrowserTestUtil::WaitForWebResourceChange(4);
- notifications->CancelById(n1.notification_id());
TaskManagerBrowserTestUtil::WaitForWebResourceChange(3);
- notifications->CancelById(n2.notification_id());
+ notifications->CancelById(n1.notification_id());
TaskManagerBrowserTestUtil::WaitForWebResourceChange(2);
+ notifications->CancelById(n2.notification_id());
+ TaskManagerBrowserTestUtil::WaitForWebResourceChange(1);
}