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

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

Issue 1974963002: Output divs using descendant nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 <script> 103 <script>
104 document.getElementById('go').addEventListener('click', function() { 104 document.getElementById('go').addEventListener('click', function() {
105 document.getElementById('c').textContent = 'Charlie'; 105 document.getElementById('c').textContent = 'Charlie';
106 document.getElementById('a').textContent = 'Alpha'; 106 document.getElementById('a').textContent = 'Alpha';
107 }, false); 107 }, false);
108 </script> 108 </script>
109 */}, 109 */},
110 function(rootNode) { 110 function(rootNode) {
111 var go = rootNode.find({ role: RoleType.button }); 111 var go = rootNode.find({ role: RoleType.button });
112 mockFeedback.call(go.doDefault.bind(go)) 112 mockFeedback.call(go.doDefault.bind(go))
113 .expectQueuedSpeech('Alpha Bravo Charlie ') 113 .expectQueuedSpeech('Alpha')
114 .expectQueuedSpeech('Bravo')
115 .expectQueuedSpeech('Charlie');
114 mockFeedback.replay(); 116 mockFeedback.replay();
115 }); 117 });
116 }); 118 });
117 119
118 TEST_F('LiveRegionsTest', 'LiveRegionChangeImageAlt', function() { 120 TEST_F('LiveRegionsTest', 'LiveRegionChangeImageAlt', function() {
119 // Note that there is a live region outputted as a result of page load; the 121 // Note that there is a live region outputted as a result of page load; the
120 // test expects a live region announcement after a click on the button, but 122 // test expects a live region announcement after a click on the button, but
121 // the LiveRegions module has a half second filter for live region 123 // the LiveRegions module has a half second filter for live region
122 // announcements on the same node. Set that timeout to 0 to prevent 124 // announcements on the same node. Set that timeout to 0 to prevent
123 // flakeyness. 125 // flakeyness.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 var focusAfterNodeChange = window.setTimeout.bind(window, function() { 243 var focusAfterNodeChange = window.setTimeout.bind(window, function() {
242 root.firstChild.nextSibling.focus(); 244 root.firstChild.nextSibling.focus();
243 }, 1000); 245 }, 1000);
244 mockFeedback.call(focusAfterNodeChange) 246 mockFeedback.call(focusAfterNodeChange)
245 .expectSpeech('hello!') 247 .expectSpeech('hello!')
246 .expectNextSpeechUtteranceIsNot('hello!') 248 .expectNextSpeechUtteranceIsNot('hello!')
247 .expectNextSpeechUtteranceIsNot('hello!') ; 249 .expectNextSpeechUtteranceIsNot('hello!') ;
248 mockFeedback.replay(); 250 mockFeedback.replay();
249 }); 251 });
250 }); 252 });
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