| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <queue> | 5 #include <queue> |
| 6 | 6 |
| 7 #include "ash/common/accelerators/accelerator_controller.h" | 7 #include "ash/common/accelerators/accelerator_controller.h" |
| 8 #include "ash/common/accelerators/accelerator_table.h" | 8 #include "ash/common/accelerators/accelerator_table.h" |
| 9 #include "ash/common/accessibility_types.h" | 9 #include "ash/common/accessibility_types.h" |
| 10 #include "ash/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 while (true) { | 528 while (true) { |
| 529 std::string utterance = speech_monitor_.GetNextUtterance(); | 529 std::string utterance = speech_monitor_.GetNextUtterance(); |
| 530 if (utterance == "Click me") | 530 if (utterance == "Click me") |
| 531 break; | 531 break; |
| 532 } | 532 } |
| 533 EXPECT_EQ("Button", speech_monitor_.GetNextUtterance()); | 533 EXPECT_EQ("Button", speech_monitor_.GetNextUtterance()); |
| 534 | 534 |
| 535 // Press Search+/ to enter ChromeVox's "find in page". | 535 // Press Search+/ to enter ChromeVox's "find in page". |
| 536 SendKeyPressWithSearch(ui::VKEY_OEM_2); | 536 SendKeyPressWithSearch(ui::VKEY_OEM_2); |
| 537 EXPECT_EQ(", window", speech_monitor_.GetNextUtterance()); | 537 EXPECT_EQ(", window", speech_monitor_.GetNextUtterance()); |
| 538 EXPECT_EQ("chrome vox Panel", speech_monitor_.GetNextUtterance()); | 538 EXPECT_EQ("webView", speech_monitor_.GetNextUtterance()); |
| 539 EXPECT_EQ("Find in page.", speech_monitor_.GetNextUtterance()); | 539 EXPECT_EQ("Find in page.", speech_monitor_.GetNextUtterance()); |
| 540 } | 540 } |
| 541 | 541 |
| 542 #if defined(MEMORY_SANITIZER) | 542 #if defined(MEMORY_SANITIZER) |
| 543 // Fails under MemorySanitizer: http://crbug.com/472125 | 543 // Fails under MemorySanitizer: http://crbug.com/472125 |
| 544 #define MAYBE_ChromeVoxNavigateAndSelect DISABLED_ChromeVoxNavigateAndSelect | 544 #define MAYBE_ChromeVoxNavigateAndSelect DISABLED_ChromeVoxNavigateAndSelect |
| 545 #else | 545 #else |
| 546 #define MAYBE_ChromeVoxNavigateAndSelect ChromeVoxNavigateAndSelect | 546 #define MAYBE_ChromeVoxNavigateAndSelect ChromeVoxNavigateAndSelect |
| 547 #endif | 547 #endif |
| 548 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, MAYBE_ChromeVoxNavigateAndSelect) { | 548 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, MAYBE_ChromeVoxNavigateAndSelect) { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync( | 756 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync( |
| 757 window, ui::VKEY_TAB, false, true /*shift*/, false, false)); | 757 window, ui::VKEY_TAB, false, true /*shift*/, false, false)); |
| 758 while (speech_monitor_.GetNextUtterance() != "Select your language:") { | 758 while (speech_monitor_.GetNextUtterance() != "Select your language:") { |
| 759 } | 759 } |
| 760 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); | 760 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); |
| 761 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(), | 761 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(), |
| 762 "Combo box * of *")); | 762 "Combo box * of *")); |
| 763 } | 763 } |
| 764 | 764 |
| 765 } // namespace chromeos | 765 } // namespace chromeos |
| OLD | NEW |