OLD | NEW |
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 "build/build_config.h" | 6 #include "build/build_config.h" |
7 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
8 #include "chrome/common/chrome_switches.h" | |
9 | |
10 class WindowOpenPanelTest : public ExtensionApiTest { | |
11 void SetUpCommandLine(base::CommandLine* command_line) override { | |
12 ExtensionApiTest::SetUpCommandLine(command_line); | |
13 command_line->AppendSwitch(switches::kEnablePanels); | |
14 } | |
15 }; | |
16 | 8 |
17 // http://crbug.com/253417 for NDEBUG | 9 // http://crbug.com/253417 for NDEBUG |
18 #if (defined(OS_WIN) || defined(OS_MACOSX)) && defined(NDEBUG) | 10 #if (defined(OS_WIN) || defined(OS_MACOSX)) && defined(NDEBUG) |
19 // Focus test fails if there is no window manager on Linux. | 11 // Focus test fails if there is no window manager on Linux. |
20 IN_PROC_BROWSER_TEST_F(WindowOpenPanelTest, WindowOpenFocus) { | 12 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WindowOpenFocus) { |
21 ASSERT_TRUE(RunExtensionTest("window_open/focus")) << message_; | 13 ASSERT_TRUE(RunExtensionTest("window_open/focus")) << message_; |
22 } | 14 } |
23 #endif | 15 #endif |
OLD | NEW |