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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/guest_mode_options_ui_browsertest.cc

Issue 422853004: Revert of Disable flaky tests related to "Cannot read property 'textdirection' of undefined" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" 6 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/test/base/testing_profile.h" 8 #include "chrome/test/base/testing_profile.h"
9 #include "chromeos/chromeos_switches.h" 9 #include "chromeos/chromeos_switches.h"
10 #include "chromeos/login/user_names.h" 10 #include "chromeos/login/user_names.h"
11 11
12 namespace { 12 namespace {
13 13
14 // Same as OptionsUIBrowserTest but launches with Guest mode command line 14 // Same as OptionsUIBrowserTest but launches with Guest mode command line
15 // switches. 15 // switches.
16 class GuestModeOptionsBrowserTest : public options::OptionsUIBrowserTest { 16 class GuestModeOptionsBrowserTest : public options::OptionsUIBrowserTest {
17 public: 17 public:
18 GuestModeOptionsBrowserTest() : OptionsUIBrowserTest() {} 18 GuestModeOptionsBrowserTest() : OptionsUIBrowserTest() {}
19 19
20 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 20 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
21 command_line->AppendSwitch(chromeos::switches::kGuestSession); 21 command_line->AppendSwitch(chromeos::switches::kGuestSession);
22 command_line->AppendSwitchASCII(chromeos::switches::kLoginUser, 22 command_line->AppendSwitchASCII(chromeos::switches::kLoginUser,
23 chromeos::login::kGuestUserName); 23 chromeos::login::kGuestUserName);
24 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, 24 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile,
25 TestingProfile::kTestUserProfileDir); 25 TestingProfile::kTestUserProfileDir);
26 command_line->AppendSwitch(switches::kIncognito); 26 command_line->AppendSwitch(switches::kIncognito);
27 } 27 }
28 }; 28 };
29 29
30 // Disabled, see http://crbug.com/396752. 30 IN_PROC_BROWSER_TEST_F(GuestModeOptionsBrowserTest, LoadOptionsByURL) {
31 IN_PROC_BROWSER_TEST_F(GuestModeOptionsBrowserTest, DISABLED_LoadOptionsByURL) {
32 NavigateToSettings(); 31 NavigateToSettings();
33 VerifyTitle(); 32 VerifyTitle();
34 VerifyNavbar(); 33 VerifyNavbar();
35 } 34 }
36 35
37 } // namespace 36 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698