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

Unified Diff: chrome/test/base/web_ui_browser_test_browsertest.cc

Issue 1311333005: Disable material design downloads UI from some tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/web_ui_browser_test_browsertest.cc
diff --git a/chrome/test/base/web_ui_browser_test_browsertest.cc b/chrome/test/base/web_ui_browser_test_browsertest.cc
index 8ddf2e94e06a4ebc5aac00e957db297ae6950398..f7409b03323a241dfffd7f37096332d97351029c 100644
--- a/chrome/test/base/web_ui_browser_test_browsertest.cc
+++ b/chrome/test/base/web_ui_browser_test_browsertest.cc
@@ -6,7 +6,9 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/command_line.h"
#include "base/values.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_browser_test.h"
@@ -29,6 +31,13 @@ class WebUIBrowserExpectFailTest : public WebUIBrowserTest {
s_test_ = this;
}
+ // Disable new downloads UI as it is very very slow.
Lei Zhang 2015/09/01 22:41:07 // Disable new downloads UI as it is very very slo
benwells 2015/09/01 23:06:11 Done.
+ // TODO(dbeam): remove this once the downloads UI is not slow.
+ void SetUpCommandLine(base::CommandLine* command_line) override {
+ WebUIBrowserTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(switches::kDisableMaterialDesignDownloads);
+ }
+
protected:
~WebUIBrowserExpectFailTest() override {
EXPECT_TRUE(s_test_);

Powered by Google App Engine
This is Rietveld 408576698