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

Side by Side Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_apitest.cc

Issue 10836277: Disable flaky OffscreenTabsApiTest.OffscreenTabMouseEvents for Win and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 // Offscreen Tabs does not work on ChromeOS right now. 9 // Offscreen Tabs does not work on ChromeOS right now.
10 #if !defined(OS_CHROMEOS) 10 #if !defined(OS_CHROMEOS)
11 11
12 class OffscreenTabsApiTest : public ExtensionApiTest { 12 class OffscreenTabsApiTest : public ExtensionApiTest {
13 public: 13 public:
14 void SetUpCommandLine(CommandLine* command_line) { 14 void SetUpCommandLine(CommandLine* command_line) {
15 ExtensionApiTest::SetUpCommandLine(command_line); 15 ExtensionApiTest::SetUpCommandLine(command_line);
16 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); 16 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
17 } 17 }
18 }; 18 };
19 19
20 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, DISABLED_OffscreenTabBasics) { 20 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, DISABLED_OffscreenTabBasics) {
21 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", "crud.html")) << message_; 21 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", "crud.html")) << message_;
22 } 22 }
23 23
24 24
25 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabMouseEvents) { 25 #if defined (OS_WIN) || defined (OS_LINUX)
26 // http://crbug.com/142993 - this times out flakily on Win/Linux
27 #define MAYBE_OffscreenTabMouseEvents DISABLED_OffscreenTabMouseEvents
28 #else
29 #define MAYBE_OffscreenTabMouseEvents OffscreenTabMouseEvents
30 #endif
31 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, MAYBE_OffscreenTabMouseEvents) {
26 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", 32 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs",
27 "mouse_events.html")) << message_; 33 "mouse_events.html")) << message_;
28 } 34 }
29 35
30 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabKeyboardEvents) { 36 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabKeyboardEvents) {
31 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", 37 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs",
32 "keyboard_events.html")) << message_; 38 "keyboard_events.html")) << message_;
33 } 39 }
34 40
35 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabDisplay) { 41 IN_PROC_BROWSER_TEST_F(OffscreenTabsApiTest, OffscreenTabDisplay) {
36 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs", 42 ASSERT_TRUE(RunExtensionSubtest("offscreen_tabs",
37 "display.html")) << message_; 43 "display.html")) << message_;
38 } 44 }
39 45
40 #endif // #if !defined(OS_CHROMEOS) 46 #endif // #if !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698