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

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

Issue 2299463002: Disable SpokenFeedbackTest.ChromeVoxStickyMode not just on MSAN (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | 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/system/tray/system_tray.h" 10 #include "ash/common/system/tray/system_tray.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 EXPECT_EQ("Start selection", speech_monitor_.GetNextUtterance()); 599 EXPECT_EQ("Start selection", speech_monitor_.GetNextUtterance());
600 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); 600 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance());
601 EXPECT_EQ(", selected", speech_monitor_.GetNextUtterance()); 601 EXPECT_EQ(", selected", speech_monitor_.GetNextUtterance());
602 602
603 // Press again to end the selection. 603 // Press again to end the selection.
604 SendKeyPressWithSearchAndShift(ui::VKEY_S); 604 SendKeyPressWithSearchAndShift(ui::VKEY_S);
605 EXPECT_EQ("End selection", speech_monitor_.GetNextUtterance()); 605 EXPECT_EQ("End selection", speech_monitor_.GetNextUtterance());
606 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance()); 606 EXPECT_EQ("Title", speech_monitor_.GetNextUtterance());
607 } 607 }
608 608
609 #if defined(MEMORY_SANITIZER) 609 // http://crbug.com/628060
610 // Fails under MemorySanitizer: http://crbug.com/628060 610 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, DISABLED_ChromeVoxStickyMode) {
611 #define MAYBE_ChromeVoxStickyMode DISABLED_ChromeVoxStickyMode
612 #else
613 #define MAYBE_ChromeVoxStickyMode ChromeVoxStickyMode
614 #endif
615 IN_PROC_BROWSER_TEST_P(SpokenFeedbackTest, MAYBE_ChromeVoxStickyMode) {
616 LoadChromeVoxAndThenNavigateToURL( 611 LoadChromeVoxAndThenNavigateToURL(
617 GURL("data:text/html;charset=utf-8," 612 GURL("data:text/html;charset=utf-8,"
618 "<label>Enter your name <input autofocus></label>" 613 "<label>Enter your name <input autofocus></label>"
619 "<p>One</p>" 614 "<p>One</p>"
620 "<h2>Two</h2>")); 615 "<h2>Two</h2>"));
621 while (speech_monitor_.GetNextUtterance() != "Enter your name") { 616 while (speech_monitor_.GetNextUtterance() != "Enter your name") {
622 } 617 }
623 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance()); 618 EXPECT_EQ("Edit text", speech_monitor_.GetNextUtterance());
624 619
625 // Press the sticky-key sequence: Search Search. 620 // Press the sticky-key sequence: Search Search.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync( 788 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync(
794 window, ui::VKEY_TAB, false, true /*shift*/, false, false)); 789 window, ui::VKEY_TAB, false, true /*shift*/, false, false));
795 while (speech_monitor_.GetNextUtterance() != "Select your language:") { 790 while (speech_monitor_.GetNextUtterance() != "Select your language:") {
796 } 791 }
797 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); 792 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance());
798 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(), 793 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(),
799 "Combo box * of *")); 794 "Combo box * of *"));
800 } 795 }
801 796
802 } // namespace chromeos 797 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698