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

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

Issue 1124383009: Disables the TC for input time from OutputE2ETest.Input of chromevox_tests temporarily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 GEN_INCLUDE(['../../testing/assert_additions.js']); 5 GEN_INCLUDE(['../../testing/assert_additions.js']);
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']); 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']);
7 7
8 /** 8 /**
9 * Test fixture for output.js. 9 * Test fixture for output.js.
10 * @constructor 10 * @constructor
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 }); 184 });
185 }); 185 });
186 186
187 TEST_F('OutputE2ETest', 'Input', function() { 187 TEST_F('OutputE2ETest', 'Input', function() {
188 this.runWithLoadedTree( 188 this.runWithLoadedTree(
189 '<input type="text"></input>' + 189 '<input type="text"></input>' +
190 '<input type="email"></input>' + 190 '<input type="email"></input>' +
191 '<input type="password"></input>' + 191 '<input type="password"></input>' +
192 '<input type="tel"></input>' + 192 '<input type="tel"></input>' +
193 '<input type="number"></input>' + 193 '<input type="number"></input>' +
194 '<input type="time"></input>' + 194 // temporarily disabled to handle time role. crbug.com/480861
195 // '<input type="time"></input>' +
195 '<input type="date"></input>', 196 '<input type="date"></input>',
196 function(root) { 197 function(root) {
197 var expected = {string_: '', 'spans_': [ 198 var expected = {string_: '', 'spans_': [
198 {value: 'name', start: 0, end: 0}, 199 {value: 'name', start: 0, end: 0},
199 200
200 // Earcon 201 // Earcon
201 {value: {}, start: 0, end: 0}, 202 {value: {}, start: 0, end: 0},
202 203
203 // Selection span. 204 // Selection span.
204 {value: {startIndex: 0, endIndex: 0}, start: 1, end: 1}, 205 {value: {startIndex: 0, endIndex: 0}, start: 1, end: 1},
205 206
206 {value: 'value', start: 1, end: 1} 207 {value: 'value', start: 1, end: 1}
207 ]}; 208 ]};
208 209
209 var expectedValues = [ 210 var expectedValues = [
210 '||Edit text', 211 '||Edit text',
211 '||Edit text, email entry', 212 '||Edit text, email entry',
212 '||Password edit text', 213 '||Password edit text',
213 '||Edit text, number entry', 214 '||Edit text, number entry',
214 {string_: '||Spin button', spans_: [{value: 'name', start: 0, end: 0}, 215 {string_: '||Spin button', spans_: [{value: 'name', start: 0, end: 0},
215 {value: {}, start: 0, end: 0}, 216 {value: {}, start: 0, end: 0},
216 {value: {startIndex: 0, endIndex: 0}, start: 1, end: 1}, 217 {value: {startIndex: 0, endIndex: 0}, start: 1, end: 1},
217 {value: 'value', start: 1, end: 1}, 218 {value: 'value', start: 1, end: 1},
218 {value: 'role', start: 2, end: 13}]}, 219 {value: 'role', start: 2, end: 13}]},
219 {string_: '||Time', spans_: [{value: 'name', start: 0, end: 0}, 220 // temporarily disabled to handle time role. crbug.com/480861
220 {value: 'value', start: 1, end: 1}, 221 // {string_: '||Time', spans_: [{value: 'name', start: 0, end: 0},
221 {value: 'role', start: 2, end: 6}]}, 222 // {value: 'value', start: 1, end: 1},
223 // {value: 'role', start: 2, end: 6}]},
222 {string_: '||Date control', spans_: [{value: 'name', start: 0, end: 0}, 224 {string_: '||Date control', spans_: [{value: 'name', start: 0, end: 0},
223 {value: 'value', start: 1, end: 1}, 225 {value: 'value', start: 1, end: 1},
224 {value: 'role', start: 2, end: 14}]} 226 {value: 'role', start: 2, end: 14}]}
225 ]; 227 ];
226 228
227 var el = root.firstChild.firstChild; 229 var el = root.firstChild.firstChild;
228 expectedValues.forEach(function(expectedValue) { 230 expectedValues.forEach(function(expectedValue) {
229 var range = cursors.Range.fromNode(el); 231 var range = cursors.Range.fromNode(el);
230 var o = new Output().withSpeechAndBraille(range, null, 'navigate'); 232 var o = new Output().withSpeechAndBraille(range, null, 'navigate');
231 if (typeof expectedValue == 'object') { 233 if (typeof expectedValue == 'object') {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 365
364 SYNC_TEST_F('OutputE2ETest', 'MessageIdValidity', function() { 366 SYNC_TEST_F('OutputE2ETest', 'MessageIdValidity', function() {
365 for (var key in Output.ROLE_INFO_) { 367 for (var key in Output.ROLE_INFO_) {
366 var value = Output.ROLE_INFO_[key]; 368 var value = Output.ROLE_INFO_[key];
367 cvox.ChromeVox.msgs.getMsg(value.msgId); 369 cvox.ChromeVox.msgs.getMsg(value.msgId);
368 assertFalse(/[A-Z]+/.test(value.msgId)); 370 assertFalse(/[A-Z]+/.test(value.msgId));
369 if (value.earconId) 371 if (value.earconId)
370 assertNotNullNorUndefined(cvox.AbstractEarcons[value.earconId]); 372 assertNotNullNorUndefined(cvox.AbstractEarcons[value.earconId]);
371 } 373 }
372 }); 374 });
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