Chromium Code Reviews

Side by Side Diff: chrome/browser/browser_keyevents_browsertest.cc

Issue 1792004: Views: Disable BrowserKeyEventsTests.AccessKeys. It's crashing on Linux views... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/keyboard_codes.h" 8 #include "base/keyboard_codes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 429 matching lines...)
440 440
441 // Press Ctrl+F with keydown suppressed shall not open the find box. 441 // Press Ctrl+F with keydown suppressed shall not open the find box.
442 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlFSuppressKeyDown)); 442 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlFSuppressKeyDown));
443 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW)); 443 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW));
444 444
445 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlZ)); 445 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlZ));
446 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlZSuppressKeyDown)); 446 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlZSuppressKeyDown));
447 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlEnter)); 447 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlEnter));
448 } 448 }
449 449
450 #if defined(OS_CHROMEOS) 450 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
451 // See http://crbug.com/40037 for details. 451 // See http://crbug.com/40037 for details.
452 #define MAYBE_AccessKeys DISABLED_AccessKeys 452 #define MAYBE_AccessKeys DISABLED_AccessKeys
453 #else 453 #else
454 #define MAYBE_AccessKeys AccessKeys 454 #define MAYBE_AccessKeys AccessKeys
455 #endif 455 #endif
456 456
457 IN_PROC_BROWSER_TEST_F(BrowserKeyEventsTest, MAYBE_AccessKeys) { 457 IN_PROC_BROWSER_TEST_F(BrowserKeyEventsTest, MAYBE_AccessKeys) {
458 static const KeyEventTestData kTestAltA = { 458 static const KeyEventTestData kTestAltA = {
459 base::VKEY_A, false, false, true, 459 base::VKEY_A, false, false, true,
460 false, false, false, false, 4, 460 false, false, false, false, 4,
(...skipping 180 matching lines...)
641 ASSERT_EQ(0, browser()->selected_index()); 641 ASSERT_EQ(0, browser()->selected_index());
642 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(0, kTestCtrlWBlocked)); 642 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(0, kTestCtrlWBlocked));
643 ASSERT_EQ(2, browser()->tab_count()); 643 ASSERT_EQ(2, browser()->tab_count());
644 644
645 // Ctrl+F4 to close the tab. 645 // Ctrl+F4 to close the tab.
646 ASSERT_NO_FATAL_FAILURE(SuppressAllEvents(0, true)); 646 ASSERT_NO_FATAL_FAILURE(SuppressAllEvents(0, true));
647 ASSERT_NO_FATAL_FAILURE(SendKey(base::VKEY_F4, true, false, false)); 647 ASSERT_NO_FATAL_FAILURE(SendKey(base::VKEY_F4, true, false, false));
648 ASSERT_EQ(1, browser()->tab_count()); 648 ASSERT_EQ(1, browser()->tab_count());
649 #endif 649 #endif
650 } 650 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine