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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_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 | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.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 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 function(root) { 614 function(root) {
615 var unjoined = new Output().format('$descendants', root); 615 var unjoined = new Output().format('$descendants', root);
616 assertEquals('This|fragment|Should be separated|with spaces' 616 assertEquals('This|fragment|Should be separated|with spaces'
617 , unjoined.speechOutputForTest.string_); 617 , unjoined.speechOutputForTest.string_);
618 618
619 var joined = new Output().format('$joinedDescendants', root); 619 var joined = new Output().format('$joinedDescendants', root);
620 assertEquals('This fragment Should be separated with spaces' 620 assertEquals('This fragment Should be separated with spaces'
621 , joined.speechOutputForTest.string_); 621 , joined.speechOutputForTest.string_);
622 }); 622 });
623 }); 623 });
624
625 TEST_F('OutputE2ETest', 'ComplexDiv', function() {
626 this.runWithLoadedTree(function() {/*!
627 <div><button>ok</button></div>
628 */},
629 function(root) {
630 var div = root.find({role: 'div'});
631 var o = new Output().withSpeech(cursors.Range.fromNode(div));
632 assertEquals('|ok||Button'
633 , o.speechOutputForTest.string_);
634 });
635 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698