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

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

Issue 2294363002: Output group nodes as containers (Closed)
Patch Set: Fix tests: add rule for date, inputTime, and clear leave rule for group. Created 4 years, 3 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 .expectSpeech('Combo box') 802 .expectSpeech('Combo box')
803 .call(previousEditText) 803 .call(previousEditText)
804 .expectSpeech('Edit text') 804 .expectSpeech('Edit text')
805 .replay(); 805 .replay();
806 }); 806 });
807 }); 807 });
808 808
809 TEST_F('BackgroundTest', 'BackwardForwardSync', function() { 809 TEST_F('BackgroundTest', 'BackwardForwardSync', function() {
810 var mockFeedback = this.createMockFeedback(); 810 var mockFeedback = this.createMockFeedback();
811 this.runWithLoadedTree(function() {/*! 811 this.runWithLoadedTree(function() {/*!
812 <div role="group" tabindex=0><input type="text"></input></div> 812 <div aria-label="Group" role="group" tabindex=0>
813 <input type="text"></input>
814 </div>
813 <ul> 815 <ul>
814 <li tabindex=0> 816 <li tabindex=0>
815 <button>ok</button> 817 <button>ok</button>
816 </li> 818 </li>
817 </ul> 819 </ul>
818 */}, function(root) { 820 */}, function(root) {
819 var listItem = root.find({role: RoleType.listItem}); 821 var listItem = root.find({role: RoleType.listItem});
820 822
821 mockFeedback.call(listItem.focus.bind(listItem)) 823 mockFeedback.call(listItem.focus.bind(listItem))
822 .expectSpeech('List item') 824 .expectSpeech('List item')
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 <input type="text"></input> 1164 <input type="text"></input>
1163 */}, function(root) { 1165 */}, function(root) {
1164 this.listenOnce(root, 'focus', function(e) { 1166 this.listenOnce(root, 'focus', function(e) {
1165 var focus = ChromeVoxState.instance.currentRange.start.node; 1167 var focus = ChromeVoxState.instance.currentRange.start.node;
1166 assertEquals(RoleType.textField, focus.role); 1168 assertEquals(RoleType.textField, focus.role);
1167 assertTrue(focus.state.focused); 1169 assertTrue(focus.state.focused);
1168 }); 1170 });
1169 doCmd('nextEditText')(); 1171 doCmd('nextEditText')();
1170 }); 1172 });
1171 }); 1173 });
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