Index: chrome/browser/task_manager/task_manager_browsertest.cc |
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc |
index e2e1f7df23d13f6b45b558aaec8d9c986ae2daec..8b9481d7bebc4738ac7a53d5e90f3393047e2378 100644 |
--- a/chrome/browser/task_manager/task_manager_browsertest.cc |
+++ b/chrome/browser/task_manager/task_manager_browsertest.cc |
@@ -166,6 +166,25 @@ IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, MAYBE_NoticeExtensionChanges) { |
WaitForResourceChange(3); |
} |
+IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, NoticeExtensionTabs) { |
+ // Show the task manager. This populates the model, and helps with debugging |
+ // (you see the task manager). |
+ browser()->window()->ShowTaskManager(); |
+ |
+ ASSERT_TRUE(LoadExtension( |
+ test_data_dir_.AppendASCII("good").AppendASCII("Extensions") |
+ .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") |
+ .AppendASCII("1.0.0.0"))); |
+ |
+ // Browser, Extension background page, and the New Tab Page. |
+ EXPECT_EQ(3, model()->ResourceCount()); |
+ |
+ // Open a new tab to an extension URL and make sure we notice that. |
+ GURL url("chrome-extension://behllobkkfkfnphdnhnkndlbkcpglgmj/page.html"); |
+ AddTabAtIndex(0, url, PageTransition::TYPED); |
+ WaitForResourceChange(4); |
Erik does not do reviews
2010/12/02 01:05:17
should we test that this is the right type in the
Charlie Reis
2010/12/02 01:45:43
Good idea. The last one is actually a TabContents
|
+} |
+ |
IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, NoticeNotificationChanges) { |
EXPECT_EQ(0, model()->ResourceCount()); |