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

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

Issue 2507063007: Use aria range values for sliders (Closed)
Patch Set: Rebase Created 3 years, 11 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 | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | 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_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
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 .call(doCmd('nextObject')) 416 .call(doCmd('nextObject'))
417 .expectSpeech('Edit text') 417 .expectSpeech('Edit text')
418 .expectEarcon(cvox.Earcon.EDITABLE_TEXT) 418 .expectEarcon(cvox.Earcon.EDITABLE_TEXT)
419 .call(doCmd('nextObject')) 419 .call(doCmd('nextObject'))
420 .expectSpeech('List box') 420 .expectSpeech('List box')
421 .expectEarcon(cvox.Earcon.LISTBOX) 421 .expectEarcon(cvox.Earcon.LISTBOX)
422 .call(doCmd('nextObject')) 422 .call(doCmd('nextObject'))
423 .expectSpeech('Button', 'has pop up') 423 .expectSpeech('Button', 'has pop up')
424 .expectEarcon(cvox.Earcon.POP_UP_BUTTON) 424 .expectEarcon(cvox.Earcon.POP_UP_BUTTON)
425 .call(doCmd('nextObject')) 425 .call(doCmd('nextObject'))
426 .expectSpeech(/slider/) 426 .expectSpeech(/Slider/)
427 .expectEarcon(cvox.Earcon.SLIDER); 427 .expectEarcon(cvox.Earcon.SLIDER);
428 428
429 mockFeedback.replay(); 429 mockFeedback.replay();
430 }.bind(this)); 430 }.bind(this));
431 }); 431 });
432 432
433 TEST_F('BackgroundTest', 'ToggleChromeVoxVersion', function() { 433 TEST_F('BackgroundTest', 'ToggleChromeVoxVersion', function() {
434 var mockFeedback = this.createMockFeedback(); 434 var mockFeedback = this.createMockFeedback();
435 this.runWithLoadedTree(this.linksAndHeadingsDoc, function() { 435 this.runWithLoadedTree(this.linksAndHeadingsDoc, function() {
436 var gotCmd = CommandHandler.onCommand; 436 var gotCmd = CommandHandler.onCommand;
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 .call(doCmd('nextWord')) 1220 .call(doCmd('nextWord'))
1221 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is 1221 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is
1222 .call(doCmd('previousWord')) 1222 .call(doCmd('previousWord'))
1223 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This 1223 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This
1224 .call(doCmd('nextLine')) 1224 .call(doCmd('nextLine'))
1225 // Ensure nothing is selected when the range covers the entire line. 1225 // Ensure nothing is selected when the range covers the entire line.
1226 .expectBraille('with a second line', {startIndex: -1, endIndex: -1}) 1226 .expectBraille('with a second line', {startIndex: -1, endIndex: -1})
1227 .replay(); 1227 .replay();
1228 }); 1228 });
1229 }); 1229 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698