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

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

Issue 2067713002: Fix child index and child count to respect role filtering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | 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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 this.runWithLoadedTree(function(root) {/*! 863 this.runWithLoadedTree(function(root) {/*!
864 <input type="submit" aria-label="foo" value="foo"></input> 864 <input type="submit" aria-label="foo" value="foo"></input>
865 */}, function(root) { 865 */}, function(root) {
866 var btn = root.find({role: RoleType.button}); 866 var btn = root.find({role: RoleType.button});
867 mockFeedback.call(btn.focus.bind(btn)) 867 mockFeedback.call(btn.focus.bind(btn))
868 .expectSpeech('foo') 868 .expectSpeech('foo')
869 .expectSpeech('Button') 869 .expectSpeech('Button')
870 .replay(); 870 .replay();
871 }); 871 });
872 }); 872 });
873
874 TEST_F('BackgroundTest', 'OptionChildIndexCount', function() {
875 var mockFeedback = this.createMockFeedback();
876 this.runWithLoadedTree(function(root) {/*!
877 <div role="listbox">
878 <p>Fruits</p>
879 <div role="option">apple</div>
880 <div role="option">banana</div>
881 </div>
882 */}, function(root) {
883 mockFeedback.call(doCmd('nextObject'))
884 .expectSpeech('Fruits')
885 .expectSpeech('with 2 items')
886 .expectSpeech('apple')
887 .expectSpeech(' 1 of 2 ')
888 .call(doCmd('nextObject'))
889 .expectSpeech('banana')
890 .expectSpeech(' 2 of 2 ')
891 .replay();
892 });
893 });
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