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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs

Issue 2445003002: Reland: Make ChromeVox Next the default ChromeVox experience (Closed)
Patch Set: speculative fixes 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_next_e2e_test_base.js', 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js',
7 '../../testing/assert_additions.js']); 7 '../../testing/assert_additions.js']);
8 8
9 GEN_INCLUDE(['../../testing/mock_feedback.js']); 9 GEN_INCLUDE(['../../testing/mock_feedback.js']);
10 10
11 /** 11 /**
12 * Test fixture for Live Regions. 12 * Test fixture for Live Regions.
13 * @constructor 13 * @constructor
14 * @extends {ChromeVoxNextE2ETest} 14 * @extends {ChromeVoxNextE2ETest}
15 */ 15 */
16 function LiveRegionsTest() { 16 function LiveRegionsTest() {
17 ChromeVoxNextE2ETest.call(this); 17 ChromeVoxNextE2ETest.call(this);
18 } 18 }
19 19
20 LiveRegionsTest.prototype = { 20 LiveRegionsTest.prototype = {
21 __proto__: ChromeVoxNextE2ETest.prototype, 21 __proto__: ChromeVoxNextE2ETest.prototype,
22 22
23 /** @override */ 23 /** @override */
24 setUp: function() { 24 setUp: function() {
25 ChromeVoxState.instance.toggleNext(true);
26 window.RoleType = chrome.automation.RoleType; 25 window.RoleType = chrome.automation.RoleType;
27 }, 26 },
28 27
29 /** 28 /**
30 * @return {!MockFeedback} 29 * @return {!MockFeedback}
31 */ 30 */
32 createMockFeedback: function() { 31 createMockFeedback: function() {
33 var mockFeedback = new MockFeedback(this.newCallback(), 32 var mockFeedback = new MockFeedback(this.newCallback(),
34 this.newCallback.bind(this)); 33 this.newCallback.bind(this));
35 mockFeedback.install(); 34 mockFeedback.install();
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 var focusAfterNodeChange = window.setTimeout.bind(window, function() { 245 var focusAfterNodeChange = window.setTimeout.bind(window, function() {
247 root.firstChild.nextSibling.focus(); 246 root.firstChild.nextSibling.focus();
248 }, 1000); 247 }, 1000);
249 mockFeedback.call(focusAfterNodeChange) 248 mockFeedback.call(focusAfterNodeChange)
250 .expectSpeech('hello!') 249 .expectSpeech('hello!')
251 .expectNextSpeechUtteranceIsNot('hello!') 250 .expectNextSpeechUtteranceIsNot('hello!')
252 .expectNextSpeechUtteranceIsNot('hello!') ; 251 .expectNextSpeechUtteranceIsNot('hello!') ;
253 mockFeedback.replay(); 252 mockFeedback.replay();
254 }); 253 });
255 }); 254 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698