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

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

Issue 2085433003: Ignore listMarker nodes and sync from left to right after a jump command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m 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 | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | 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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 <li tabindex=0> 804 <li tabindex=0>
805 <button>ok</button> 805 <button>ok</button>
806 </li> 806 </li>
807 </ul> 807 </ul>
808 */}, function(root) { 808 */}, function(root) {
809 var listItem = root.find({role: RoleType.listItem}); 809 var listItem = root.find({role: RoleType.listItem});
810 810
811 mockFeedback.call(listItem.focus.bind(listItem)) 811 mockFeedback.call(listItem.focus.bind(listItem))
812 .expectSpeech('List item') 812 .expectSpeech('List item')
813 .call(this.doCmd('nextObject')) 813 .call(this.doCmd('nextObject'))
814 .expectSpeech('') 814 .expectSpeech('Button')
815 .call(this.doCmd('previousObject'))
816 .expectSpeech('List item')
817 .call(this.doCmd('nextObject'))
818 .expectSpeech('•')
819 .call(this.doCmd('previousObject')) 815 .call(this.doCmd('previousObject'))
820 .expectSpeech('List item') 816 .expectSpeech('List item')
821 .call(this.doCmd('previousObject')) 817 .call(this.doCmd('previousObject'))
822 .expectSpeech('Edit text') 818 .expectSpeech('Edit text')
823 .call(this.doCmd('previousObject')) 819 .call(this.doCmd('previousObject'))
824 .expectSpeech('Group') 820 .expectSpeech('Group')
825 .replay(); 821 .replay();
826 }); 822 });
827 }); 823 });
828 824
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 .expectSpeech('Fruits') 895 .expectSpeech('Fruits')
900 .expectSpeech('with 2 items') 896 .expectSpeech('with 2 items')
901 .expectSpeech('apple') 897 .expectSpeech('apple')
902 .expectSpeech(' 1 of 2 ') 898 .expectSpeech(' 1 of 2 ')
903 .call(doCmd('nextObject')) 899 .call(doCmd('nextObject'))
904 .expectSpeech('banana') 900 .expectSpeech('banana')
905 .expectSpeech(' 2 of 2 ') 901 .expectSpeech(' 2 of 2 ')
906 .replay(); 902 .replay();
907 }); 903 });
908 }); 904 });
905
906 TEST_F('BackgroundTest', 'ListMarkerIsIgnored', function() {
907 var mockFeedback = this.createMockFeedback();
908 this.runWithLoadedTree(function(root) {/*!
909 <ul><li>apple</ul>
910 */}, function(root) {
911 mockFeedback.call(doCmd('nextObject'))
912 .expectNextSpeechUtteranceIsNot('listMarker')
913 .expectSpeech('apple')
914 .replay();
915 });
916 });
917
918 TEST_F('BackgroundTest', 'SymetricComplexHeading', function() {
919 var mockFeedback = this.createMockFeedback();
920 this.runWithLoadedTree(function(root) {/*!
921 <h4><p>NW</p><p>NE</p></h4>
922 <h4><p>SW</p><p>SE</p></h4>
923 */}, function(root) {
924 mockFeedback.call(doCmd('nextHeading'))
925 .expectNextSpeechUtteranceIsNot('NE')
926 .expectSpeech('NW')
927 .call(doCmd('previousHeading'))
928 .expectNextSpeechUtteranceIsNot('NE')
929 .expectSpeech('NW')
930 .replay();
931 });
932 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698