| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |