| 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ASSERT_TRUE( | 60 ASSERT_TRUE( |
| 61 ui_test_utils::SendKeyPressToWindowSync( | 61 ui_test_utils::SendKeyPressToWindowSync( |
| 62 root_window, key, false, false, false, false)); | 62 root_window, key, false, false, false, false)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 StubBrailleController braille_controller_; | 66 StubBrailleController braille_controller_; |
| 67 DISALLOW_COPY_AND_ASSIGN(LoggedInSpokenFeedbackTest); | 67 DISALLOW_COPY_AND_ASSIGN(LoggedInSpokenFeedbackTest); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 IN_PROC_BROWSER_TEST_F(LoggedInSpokenFeedbackTest, AddBookmark) { | 70 // http://crbug.com/396507 |
| 71 IN_PROC_BROWSER_TEST_F(LoggedInSpokenFeedbackTest, DISABLED_AddBookmark) { |
| 71 EXPECT_FALSE(AccessibilityManager::Get()->IsSpokenFeedbackEnabled()); | 72 EXPECT_FALSE(AccessibilityManager::Get()->IsSpokenFeedbackEnabled()); |
| 72 | 73 |
| 73 SpeechMonitor monitor; | 74 SpeechMonitor monitor; |
| 74 AccessibilityManager::Get()->EnableSpokenFeedback( | 75 AccessibilityManager::Get()->EnableSpokenFeedback( |
| 75 true, ash::A11Y_NOTIFICATION_NONE); | 76 true, ash::A11Y_NOTIFICATION_NONE); |
| 76 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage()); | 77 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage()); |
| 77 | 78 |
| 78 chrome::ExecuteCommand(browser(), IDC_SHOW_BOOKMARK_BAR); | 79 chrome::ExecuteCommand(browser(), IDC_SHOW_BOOKMARK_BAR); |
| 79 | 80 |
| 80 // Create a bookmark with title "foo". | 81 // Create a bookmark with title "foo". |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 EXPECT_EQ("Select your language:", monitor.GetNextUtterance()); | 284 EXPECT_EQ("Select your language:", monitor.GetNextUtterance()); |
| 284 EXPECT_EQ("English ( United States)", monitor.GetNextUtterance()); | 285 EXPECT_EQ("English ( United States)", monitor.GetNextUtterance()); |
| 285 EXPECT_TRUE(MatchPattern(monitor.GetNextUtterance(), "Combo box * of *")); | 286 EXPECT_TRUE(MatchPattern(monitor.GetNextUtterance(), "Combo box * of *")); |
| 286 ASSERT_TRUE( | 287 ASSERT_TRUE( |
| 287 ui_test_utils::SendKeyPressToWindowSync( | 288 ui_test_utils::SendKeyPressToWindowSync( |
| 288 window, ui::VKEY_TAB, false, false, false, false)); | 289 window, ui::VKEY_TAB, false, false, false, false)); |
| 289 EXPECT_EQ("Select your keyboard:", monitor.GetNextUtterance()); | 290 EXPECT_EQ("Select your keyboard:", monitor.GetNextUtterance()); |
| 290 } | 291 } |
| 291 | 292 |
| 292 } // namespace chromeos | 293 } // namespace chromeos |
| OLD | NEW |