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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc

Issue 619763002: Disable PrintPreviewTest.TaskManagerNewPrintPreview. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/prefs/pref_service.h" 5 #include "base/prefs/pref_service.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" 10 #include "chrome/browser/task_manager/task_manager_browsertest_util.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 chrome::Reload(browser(), CURRENT_TAB); 78 chrome::Reload(browser(), CURRENT_TAB);
79 reload_observer.Wait(); 79 reload_observer.Wait();
80 80
81 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); 81 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT));
82 82
83 ASSERT_EQ(is_basic_print_expected, 83 ASSERT_EQ(is_basic_print_expected,
84 chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT)); 84 chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT));
85 } 85 }
86 86
87 // Disable the test for mac, see http://crbug/367665. 87 // Disable the test for mac, see http://crbug/367665.
88 #if defined(OS_MACOSX) && !defined(OS_IOS) 88 #if (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_LINUX)
89 #define MAYBE_TaskManagerNewPrintPreview DISABLED_TaskManagerNewPrintPreview 89 #define MAYBE_TaskManagerNewPrintPreview DISABLED_TaskManagerNewPrintPreview
90 #else 90 #else
91 #define MAYBE_TaskManagerNewPrintPreview TaskManagerNewPrintPreview 91 #define MAYBE_TaskManagerNewPrintPreview TaskManagerNewPrintPreview
92 #endif 92 #endif
93 IN_PROC_BROWSER_TEST_F(PrintPreviewTest, MAYBE_TaskManagerNewPrintPreview) { 93 IN_PROC_BROWSER_TEST_F(PrintPreviewTest, MAYBE_TaskManagerNewPrintPreview) {
94 chrome::ShowTaskManager(browser()); // Show task manager BEFORE print dialog. 94 chrome::ShowTaskManager(browser()); // Show task manager BEFORE print dialog.
95 95
96 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(1, MatchAboutBlankTab())); 96 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(1, MatchAboutBlankTab()));
97 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(1, MatchAnyTab())); 97 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(1, MatchAnyTab()));
98 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(0, MatchAnyPrint())); 98 ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(0, MatchAnyPrint()));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 browser()->tab_strip_model()->ActivateTabAt(0, true); 135 browser()->tab_strip_model()->ActivateTabAt(0, true);
136 136
137 // Navigate main tab to hide print preview. 137 // Navigate main tab to hide print preview.
138 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 138 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
139 139
140 browser()->tab_strip_model()->ActivateTabAt(1, true); 140 browser()->tab_strip_model()->ActivateTabAt(1, true);
141 } 141 }
142 #endif // defined(OS_WIN) 142 #endif // defined(OS_WIN)
143 143
144 } // namespace 144 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698