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

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

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Rebase. Created 3 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
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 GEN_INCLUDE(['../../testing/assert_additions.js']); 5 GEN_INCLUDE(['../../testing/assert_additions.js']);
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']); 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']);
7 7
8 /** 8 /**
9 * Gets the braille output and asserts that it matches expected values. 9 * Gets the braille output and asserts that it matches expected values.
10 * Annotations in the output that are primitive strings are ignored. 10 * Annotations in the output that are primitive strings are ignored.
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 checkSpeechOutput('2|Min 1|Max 10|volume|Spin button', 764 checkSpeechOutput('2|Min 1|Max 10|volume|Spin button',
765 [ 765 [
766 {value: 'valueForRange', start: 0, end: 1}, 766 {value: 'valueForRange', start: 0, end: 1},
767 {value: 'name', start: 15,end: 21}, 767 {value: 'name', start: 15,end: 21},
768 {value: new Output.EarconAction('LISTBOX'), start: 15, end: 21}, 768 {value: new Output.EarconAction('LISTBOX'), start: 15, end: 21},
769 {value: 'role', start: 22, end: 33} 769 {value: 'role', start: 22, end: 33}
770 ], 770 ],
771 o); 771 o);
772 }); 772 });
773 }); 773 });
774
775 TEST_F('OutputE2ETest', 'RoleDescription', function() {
776 this.runWithLoadedTree(function(root) {/*!
777 <div aria-label="hi" role="button" aria-roledescription="foo"></div>
778 */}, function(root) {
779 var obj = root.find({role: RoleType.BUTTON});
780 var o = new Output().withSpeech(cursors.Range.fromNode(obj));
781 checkSpeechOutput('hi|foo',
782 [
783 {value: 'name', start: 0, end: 2},
784 {value: new Output.EarconAction('BUTTON'), start: 0, end: 2},
785 {value: 'role', start: 3, end: 6}
786 ],
787 o);
788 });
789 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | chrome/common/extensions/api/automation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698