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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs

Issue 2084003004: Disable chromevox time widget and date widget tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromeos_file_manager
Patch Set: Fix comment Created 4 years, 6 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 test fixture. 5 // Include test fixture.
6 GEN_INCLUDE(['../../testing/chromevox_unittest_base.js']); 6 GEN_INCLUDE(['../../testing/chromevox_unittest_base.js']);
7 7
8 /** 8 /**
9 * Test fixture. 9 * Test fixture.
10 * @constructor 10 * @constructor
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // Moves back to first radio. 551 // Moves back to first radio.
552 .waitForCalm(this.assertSpoken, 552 .waitForCalm(this.assertSpoken,
553 'green Radio button selected green Radio button selected') 553 'green Radio button selected green Radio button selected')
554 .waitForCalm(performKeyDown, 'ArrowLeft') // left arrow 554 .waitForCalm(performKeyDown, 'ArrowLeft') // left arrow
555 // Arrowed beyond beginning. Should be quiet. 555 // Arrowed beyond beginning. Should be quiet.
556 .waitForCalm(this.assertSpoken, ''); 556 .waitForCalm(this.assertSpoken, '');
557 }); 557 });
558 558
559 /** 559 /**
560 * Test time widget. 560 * Test time widget.
561 * Disabled because test relies on removed behavior; see crbug.com/520519.
561 */ 562 */
562 TEST_F('CvoxEventWatcherUnitTest', 'TimeWidget', function() { 563 TEST_F('CvoxEventWatcherUnitTest', 'DISABLED_TimeWidget', function() {
563 this.loadHtml( 564 this.loadHtml(
564 '<label for="timewidget">Set alarm for:</label>' + 565 '<label for="timewidget">Set alarm for:</label>' +
565 '<input id="timewidget" type="time" value="12:00">'); 566 '<input id="timewidget" type="time" value="12:00">');
566 var performKeyDown = function(dir) { 567 var performKeyDown = function(dir) {
567 var evt = new KeyboardEvent("keydown", {key: dir}); 568 var evt = new KeyboardEvent("keydown", {key: dir});
568 document.activeElement.dispatchEvent(evt); 569 document.activeElement.dispatchEvent(evt);
569 }; 570 };
570 var performKeyUp = function(dir) { 571 var performKeyUp = function(dir) {
571 var evt = new KeyboardEvent("keyup", {key: dir}); 572 var evt = new KeyboardEvent("keyup", {key: dir});
572 document.activeElement.dispatchEvent(evt); 573 document.activeElement.dispatchEvent(evt);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 'AM'); 609 'AM');
609 610
610 this.waitForCalm(performKeyDown, 'ArrowDown') // down arrow 611 this.waitForCalm(performKeyDown, 'ArrowDown') // down arrow
611 .waitForCalm(performKeyUp, 'ArrowDown') // down arrow 612 .waitForCalm(performKeyUp, 'ArrowDown') // down arrow
612 .waitForCalm(this.assertSpoken, 613 .waitForCalm(this.assertSpoken,
613 'PM'); 614 'PM');
614 }); 615 });
615 616
616 /** 617 /**
617 * Test date widget. 618 * Test date widget.
619 * Disabled because test relies on removed behavior; see crbug.com/520519.
618 */ 620 */
619 TEST_F('CvoxEventWatcherUnitTest', 'DateWidget', function() { 621 TEST_F('CvoxEventWatcherUnitTest', 'DISABLED_DateWidget', function() {
620 this.loadHtml( 622 this.loadHtml(
621 '<label for="datewidget">Set birthdate:</label>' + 623 '<label for="datewidget">Set birthdate:</label>' +
622 '<input id="datewidget" type="date" value="1998-09-04"/>'); 624 '<input id="datewidget" type="date" value="1998-09-04"/>');
623 var performKeyDown = function(dir) { 625 var performKeyDown = function(dir) {
624 var evt = new KeyboardEvent("keydown", {key: dir}); 626 var evt = new KeyboardEvent("keydown", {key: dir});
625 document.activeElement.dispatchEvent(evt); 627 document.activeElement.dispatchEvent(evt);
626 }; 628 };
627 var performKeyUp = function(dir) { 629 var performKeyUp = function(dir) {
628 var evt = new KeyboardEvent("keyup", {key: dir}); 630 var evt = new KeyboardEvent("keyup", {key: dir});
629 document.activeElement.dispatchEvent(evt); 631 document.activeElement.dispatchEvent(evt);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 this.setFocus('final'); 732 this.setFocus('final');
731 }) 733 })
732 .waitForCalm(function() { 734 .waitForCalm(function() {
733 var ulist = cvox.ChromeVoxTester.testTts().getSpeechQueueOutput(); 735 var ulist = cvox.ChromeVoxTester.testTts().getSpeechQueueOutput();
734 assertEquals('Live region changed', ulist[0]); 736 assertEquals('Live region changed', ulist[0]);
735 assertEquals('Exited dialog.', ulist[1]); 737 assertEquals('Exited dialog.', ulist[1]);
736 assertEquals('Final focus', ulist[2]); 738 assertEquals('Final focus', ulist[2]);
737 assertEquals('Button', ulist[3]); 739 assertEquals('Button', ulist[3]);
738 }); 740 });
739 }); 741 });
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