OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
8 | 8 |
9 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, GetViews) { | 9 #if defined(USE_AURA) |
| 10 // crbug.com/105177. |
| 11 #define MAYBE_GetViews DISABLED_GetViews |
| 12 #else |
| 13 #define MAYBE_GetViews GetViews |
| 14 #endif |
| 15 |
| 16 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_GetViews) { |
10 // TODO(finnur): Remove once infobars are no longer experimental (bug 39511). | 17 // TODO(finnur): Remove once infobars are no longer experimental (bug 39511). |
11 CommandLine::ForCurrentProcess()->AppendSwitch( | 18 CommandLine::ForCurrentProcess()->AppendSwitch( |
12 switches::kEnableExperimentalExtensionApis); | 19 switches::kEnableExperimentalExtensionApis); |
13 | 20 |
14 ASSERT_TRUE(RunExtensionTest("get_views")) << message_; | 21 ASSERT_TRUE(RunExtensionTest("get_views")) << message_; |
15 } | 22 } |
OLD | NEW |