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

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

Issue 2093963003: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (comment) Created 4 years, 5 months 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 | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/browser.h » ('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/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/accelerators/accelerator_table.h" 8 #include "ash/accelerators/accelerator_table.h"
9 #include "ash/common/accessibility_types.h" 9 #include "ash/common/accessibility_types.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, OverviewMode) { 470 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, OverviewMode) {
471 EnableChromeVox(); 471 EnableChromeVox();
472 472
473 EXPECT_TRUE(PerformAcceleratorAction(ash::TOGGLE_OVERVIEW)); 473 EXPECT_TRUE(PerformAcceleratorAction(ash::TOGGLE_OVERVIEW));
474 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance()); 474 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance());
475 EXPECT_EQ(", window", speech_monitor_.GetNextUtterance()); 475 EXPECT_EQ(", window", speech_monitor_.GetNextUtterance());
476 EXPECT_EQ("Alert", speech_monitor_.GetNextUtterance()); 476 EXPECT_EQ("Alert", speech_monitor_.GetNextUtterance());
477 EXPECT_EQ("Entered window overview mode", speech_monitor_.GetNextUtterance()); 477 EXPECT_EQ("Entered window overview mode", speech_monitor_.GetNextUtterance());
478 478
479 SendKeyPress(ui::VKEY_TAB); 479 SendKeyPress(ui::VKEY_TAB);
480 EXPECT_EQ("about:blank", speech_monitor_.GetNextUtterance()); 480 // On Chrome OS accessibility title for tabbed browser windows contains app
481 // name ("Chrome" or "Chromium") in overview mode.
482 EXPECT_EQ("Chromium - about:blank", speech_monitor_.GetNextUtterance());
481 EXPECT_EQ("Button", speech_monitor_.GetNextUtterance()); 483 EXPECT_EQ("Button", speech_monitor_.GetNextUtterance());
482 } 484 }
483 485
484 #if defined(MEMORY_SANITIZER) 486 #if defined(MEMORY_SANITIZER)
485 // Fails under MemorySanitizer: http://crbug.com/472125 487 // Fails under MemorySanitizer: http://crbug.com/472125
486 #define MAYBE_ChromeVoxShiftSearch DISABLED_ChromeVoxShiftSearch 488 #define MAYBE_ChromeVoxShiftSearch DISABLED_ChromeVoxShiftSearch
487 #else 489 #else
488 #define MAYBE_ChromeVoxShiftSearch ChromeVoxShiftSearch 490 #define MAYBE_ChromeVoxShiftSearch ChromeVoxShiftSearch
489 #endif 491 #endif
490 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, MAYBE_ChromeVoxShiftSearch) { 492 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, MAYBE_ChromeVoxShiftSearch) {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync( 723 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync(
722 window, ui::VKEY_TAB, false, true /*shift*/, false, false)); 724 window, ui::VKEY_TAB, false, true /*shift*/, false, false));
723 while (speech_monitor_.GetNextUtterance() != "Select your language:") { 725 while (speech_monitor_.GetNextUtterance() != "Select your language:") {
724 } 726 }
725 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); 727 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance());
726 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(), 728 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(),
727 "Combo box * of *")); 729 "Combo box * of *"));
728 } 730 }
729 731
730 } // namespace chromeos 732 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698