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

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

Issue 2813743002: Switch to selected 8-dot braille table in email and url text fields (Closed)
Patch Set: Fixes corner cases (liblouis callbacks sometimes drop when called quickly). Created 3 years, 8 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
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 * Gets the braille output and asserts that it matches expected values. 9 * Gets the braille output and asserts that it matches expected values.
10 * Annotations in the output that are primitive strings are ignored. 10 * Annotations in the output that are primitive strings are ignored.
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 {value: 'value', start: 12, end: 26}, 296 {value: 'value', start: 12, end: 26},
297 {value: 'role', start: 27, end: 33}] 297 {value: 'role', start: 27, end: 33}]
298 ], 298 ],
299 '||Edit text, search entry', 299 '||Edit text, search entry',
300 '||Edit text' 300 '||Edit text'
301 ]; 301 ];
302 // TODO(plundblad): Some of these are wrong, there should be an initial 302 // TODO(plundblad): Some of these are wrong, there should be an initial
303 // space for the cursor in edit fields. 303 // space for the cursor in edit fields.
304 var expectedBrailleValues = [ 304 var expectedBrailleValues = [
305 ' ed', 305 ' ed',
306 ' @ed', 306 ' @ed 8dot',
307 ' pwded', 307 ' pwded',
308 ' #ed', 308 ' #ed',
309 {string_: '0 min:0 max:0 spnbtn'}, 309 {string_: '0 min:0 max:0 spnbtn'},
310 {string_: 'time'}, 310 {string_: 'time'},
311 {string_: 'date'}, 311 {string_: 'date'},
312 {string_: 'Choose File No file chosen btn'}, 312 {string_: 'Choose File No file chosen btn'},
313 ' srched', 313 ' srched',
314 ' ed' 314 ' ed'
315 ]; 315 ];
316 assertEquals(expectedSpeechValues.length, expectedBrailleValues.length); 316 assertEquals(expectedSpeechValues.length, expectedBrailleValues.length);
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 checkSpeechOutput('2|Min 1|Max 10|volume|Spin button', 763 checkSpeechOutput('2|Min 1|Max 10|volume|Spin button',
764 [ 764 [
765 {value: 'valueForRange', start: 0, end: 1}, 765 {value: 'valueForRange', start: 0, end: 1},
766 {value: 'name', start: 15,end: 21}, 766 {value: 'name', start: 15,end: 21},
767 {value: new Output.EarconAction('LISTBOX'), start: 15, end: 21}, 767 {value: new Output.EarconAction('LISTBOX'), start: 15, end: 21},
768 {value: 'role', start: 22, end: 33} 768 {value: 'role', start: 22, end: 33}
769 ], 769 ],
770 o); 770 o);
771 }); 771 });
772 }); 772 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698