OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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, ContextMenus) { | 9 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContextMenus) { |
10 // TODO(asargent): Remove when context menu API is no longer experimental | 10 ASSERT_TRUE(RunExtensionTest("context_menus/basics")) << message_; |
11 // (http://crbug.com/39508). | 11 ASSERT_TRUE(RunExtensionTest("context_menus/no_perms")) << message_; |
12 CommandLine::ForCurrentProcess()->AppendSwitch( | |
13 switches::kEnableExperimentalExtensionApis); | |
14 | |
15 ASSERT_TRUE(RunExtensionTest("context_menus")) << message_; | |
16 } | 12 } |
OLD | NEW |