| OLD | NEW |
| 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 "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/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlA)); | 799 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlA)); |
| 800 // Forward one character | 800 // Forward one character |
| 801 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlF)); | 801 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlF)); |
| 802 // Delete to the end of the line. | 802 // Delete to the end of the line. |
| 803 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlK)); | 803 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlK)); |
| 804 EXPECT_NO_FATAL_FAILURE(CheckTextBoxValue(tab_index, L"A", L"H")); | 804 EXPECT_NO_FATAL_FAILURE(CheckTextBoxValue(tab_index, L"A", L"H")); |
| 805 } | 805 } |
| 806 #endif | 806 #endif |
| 807 | 807 |
| 808 // See http://crbug.com/147579 | 808 // See http://crbug.com/147579 |
| 809 IN_PROC_BROWSER_TEST_F(BrowserKeyEventsTest, FLAKY_PageUpDownKeys) { | 809 IN_PROC_BROWSER_TEST_F(BrowserKeyEventsTest, DISABLED_PageUpDownKeys) { |
| 810 static const KeyEventTestData kTestPageUp = { | 810 static const KeyEventTestData kTestPageUp = { |
| 811 ui::VKEY_PRIOR, false, false, false, false, | 811 ui::VKEY_PRIOR, false, false, false, false, |
| 812 false, false, false, false, 2, | 812 false, false, false, false, 2, |
| 813 { "D 33 0 false false false false", | 813 { "D 33 0 false false false false", |
| 814 "U 33 0 false false false false" } | 814 "U 33 0 false false false false" } |
| 815 }; | 815 }; |
| 816 | 816 |
| 817 static const KeyEventTestData kTestPageDown = { | 817 static const KeyEventTestData kTestPageDown = { |
| 818 ui::VKEY_NEXT, false, false, false, false, | 818 ui::VKEY_NEXT, false, false, false, false, |
| 819 false, false, false, false, 2, | 819 false, false, false, false, 2, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestAltKeySuppress)); | 884 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestAltKeySuppress)); |
| 885 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); | 885 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); |
| 886 | 886 |
| 887 // Ctrl+Alt should have no effect. | 887 // Ctrl+Alt should have no effect. |
| 888 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlAltKey)); | 888 EXPECT_NO_FATAL_FAILURE(TestKeyEvent(tab_index, kTestCtrlAltKey)); |
| 889 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); | 889 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); |
| 890 } | 890 } |
| 891 #endif | 891 #endif |
| 892 | 892 |
| 893 } // namespace | 893 } // namespace |
| OLD | NEW |