Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1282)

Side by Side Diff: chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc

Issue 2498903002: Revert of Show the tutorial during OOBE (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698