summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:24:41 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:24:41 +0000
commitd659132ecf7a4948bc74593da6a62bf094bbf52b (patch)
treeee09af03cfa7a8d94112768cec109f5af6ab4b11 /chrome/test/ui
parent3bf03aff50e1881229c3b4e28591da4959b9ea07 (diff)
downloadchromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.zip
chromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.tar.gz
chromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.tar.bz2
Some UI tests would fail on some boxes as these tests have specific expectations in term of how many and what kind of info-bars are showing, and the default browser check would add an extra info-bar.
This CL adds a switch that disables the default browser check on start-up and makes the UI tests specify that switch. BUG=13064 TEST=Run the UI tests. Review URL: http://codereview.chromium.org/112081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui')
-rw-r--r--chrome/test/ui/ui_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 1b15116..c6b1574 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -243,6 +243,10 @@ void UITest::LaunchBrowser(const CommandLine& arguments, bool clear_profile) {
// No first-run dialogs, please.
command_line.AppendSwitch(switches::kNoFirstRun);
+ // No default browser check, it would create an info-bar (if we are not the
+ // default browser) that could conflicts with some tests expectations.
+ command_line.AppendSwitch(switches::kNoDefaultBrowserCheck);
+
// We need cookies on file:// for things like the page cycler.
if (enable_file_cookies_)
command_line.AppendSwitch(switches::kEnableFileCookies);