| 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 "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 EXPECT_EQ("Start selection", speech_monitor_.GetNextUtterance()); | 350 EXPECT_EQ("Start selection", speech_monitor_.GetNextUtterance()); |
| 351 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); | 351 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); |
| 352 EXPECT_EQ(", selected", speech_monitor_.GetNextUtterance()); | 352 EXPECT_EQ(", selected", speech_monitor_.GetNextUtterance()); |
| 353 | 353 |
| 354 // Press again to end the selection. | 354 // Press again to end the selection. |
| 355 SendKeyPressWithSearchAndShift(ui::VKEY_S); | 355 SendKeyPressWithSearchAndShift(ui::VKEY_S); |
| 356 EXPECT_EQ("End selection", speech_monitor_.GetNextUtterance()); | 356 EXPECT_EQ("End selection", speech_monitor_.GetNextUtterance()); |
| 357 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); | 357 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); |
| 358 } | 358 } |
| 359 | 359 |
| 360 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, ChromeVoxStickyMode) { | 360 // flaky: http://crbug.com/418572 |
| 361 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, DISABLED_ChromeVoxStickyMode) { |
| 361 LoadChromeVoxAndThenNavigateToURL( | 362 LoadChromeVoxAndThenNavigateToURL( |
| 362 GURL("data:text/html;charset=utf-8," | 363 GURL("data:text/html;charset=utf-8," |
| 363 "<label>Enter your name <input autofocus></label>" | 364 "<label>Enter your name <input autofocus></label>" |
| 364 "<p>One</p>" | 365 "<p>One</p>" |
| 365 "<h2>Two</h2>")); | 366 "<h2>Two</h2>")); |
| 366 while (speech_monitor_.GetNextUtterance() != "Enter your name") { | 367 while (speech_monitor_.GetNextUtterance() != "Enter your name") { |
| 367 } | 368 } |
| 368 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance()); | 369 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance()); |
| 369 | 370 |
| 370 // Press the sticky-key sequence: Search Search. | 371 // Press the sticky-key sequence: Search Search. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); | 501 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); |
| 501 EXPECT_TRUE(MatchPattern(speech_monitor_.GetNextUtterance(), | 502 EXPECT_TRUE(MatchPattern(speech_monitor_.GetNextUtterance(), |
| 502 "Combo box * of *")); | 503 "Combo box * of *")); |
| 503 ASSERT_TRUE( | 504 ASSERT_TRUE( |
| 504 ui_test_utils::SendKeyPressToWindowSync( | 505 ui_test_utils::SendKeyPressToWindowSync( |
| 505 window, ui::VKEY_TAB, false, false, false, false)); | 506 window, ui::VKEY_TAB, false, false, false, false)); |
| 506 EXPECT_EQ("Select your keyboard:", speech_monitor_.GetNextUtterance()); | 507 EXPECT_EQ("Select your keyboard:", speech_monitor_.GetNextUtterance()); |
| 507 } | 508 } |
| 508 | 509 |
| 509 } // namespace chromeos | 510 } // namespace chromeos |
| OLD | NEW |