| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/command_line.h" | |
| 6 #include "chrome/browser/extensions/extension_apitest.h" | |
| 7 #include "chrome/common/chrome_switches.h" | |
| 8 | |
| 9 // Offscreen Tabs does not work on ChromeOS right now. | |
| 10 #if !defined(OS_CHROMEOS) | |
| 11 | |
| 12 class OffscreenTabsApiTest : public ExtensionApiTest { | |
| 13 public: | |
| 14 void SetUpCommandLine(CommandLine* command_line) { | |
| 15 ExtensionApiTest::SetUpCommandLine(command_line); | |
| 16 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); | |
| 17 } | |
| 18 }; | |
| 19 | |
| 20 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabBasics) { | |
| 21 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", "crud.html")) << message_; | |
| 22 } | |
| 23 | |
| 24 | |
| 25 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabMouseEvents) { | |
| 26 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", | |
| 27 "mouse_events.html")) << message_; | |
| 28 } | |
| 29 | |
| 30 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabKeyboardEvents) { | |
| 31 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", | |
| 32 "keyboard_events.html")) << message_; | |
| 33 } | |
| 34 | |
| 35 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabDisplay) { | |
| 36 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", | |
| 37 "display.html")) << message_; | |
| 38 } | |
| 39 | |
| 40 #endif // #if !defined(OS_CHROMEOS) | |
| OLD | NEW |