From a6dabae22b27c4dd8ad9daaa1d360f8bef7948b4 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 12 May 2015 06:21:12 -0700 Subject: [PATCH] Remove two notification browsertests related to infobars. There's no special logic for this behavior in the Notifications implementations that's not covered elsewhere. Given that the test was timing out as well, let's remove them. BUG=168976 Review URL: https://codereview.chromium.org/1136543004 Cr-Commit-Position: refs/heads/master@{#329397} --- .../notifications/notification_browsertest.cc | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/chrome/browser/notifications/notification_browsertest.cc b/chrome/browser/notifications/notification_browsertest.cc index 3feb8ec315c2..b29d6bd37613 100644 --- a/chrome/browser/notifications/notification_browsertest.cc +++ b/chrome/browser/notifications/notification_browsertest.cc @@ -636,31 +636,6 @@ IN_PROC_BROWSER_TEST_F( EXPECT_EQ(0U, settings.size()); } -IN_PROC_BROWSER_TEST_F(NotificationsTest, TestExitBrowserWithInfobar) { - ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); - - // Exit the browser window, when the infobar appears. - ui_test_utils::NavigateToURL(browser(), GetTestPageURL()); - ASSERT_TRUE(RequestPermissionAndWait(browser())); -} - -// Times out. http://crbug.com/168976 -IN_PROC_BROWSER_TEST_F(NotificationsTest, - DISABLED_TestCrashTabWithPermissionInfobar) { - ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); - - // Test crashing the tab with permission infobar doesn't crash Chrome. - ui_test_utils::NavigateToURLWithDisposition( - browser(), - embedded_test_server()->GetURL("/empty.html"), - NEW_BACKGROUND_TAB, - ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB); - browser()->tab_strip_model()->ActivateTabAt(0, true); - ui_test_utils::NavigateToURL(browser(), GetTestPageURL()); - ASSERT_TRUE(RequestPermissionAndWait(browser())); - CrashTab(browser(), 0); -} - IN_PROC_BROWSER_TEST_F(NotificationsTest, TestIncognitoNotification) { ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); -- 2.11.4.GIT