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

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

Issue 2795083003: Add support for in-page links in ChromeVox. (Closed)
Patch Set: Address nit. Created 3 years, 8 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
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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 .call(doCmd('nextWord')) 1221 .call(doCmd('nextWord'))
1222 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is 1222 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is
1223 .call(doCmd('previousWord')) 1223 .call(doCmd('previousWord'))
1224 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This 1224 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This
1225 .call(doCmd('nextLine')) 1225 .call(doCmd('nextLine'))
1226 // Ensure nothing is selected when the range covers the entire line. 1226 // Ensure nothing is selected when the range covers the entire line.
1227 .expectBraille('with a second line', {startIndex: -1, endIndex: -1}) 1227 .expectBraille('with a second line', {startIndex: -1, endIndex: -1})
1228 .replay(); 1228 .replay();
1229 }); 1229 });
1230 }); 1230 });
1231
1232 TEST_F('BackgroundTest', 'InPageLinks', function() {
1233 var mockFeedback = this.createMockFeedback();
1234 this.runWithLoadedTree(function(root) {/*!
1235 <a href="#there">hi</a>
1236 <button id="there">there</button>
1237 */}, function(root) {
1238 mockFeedback.expectSpeech('hi', 'Internal link')
1239 .call(doCmd('forceClickOnCurrentItem'))
1240 .expectSpeech('there', 'Button')
1241 .replay();
1242 });
1243 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698