OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |