| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
|
| index 7b75b2220a671e741881bcad12e4cb1f8e608a7d..a871e29056877b9c79bf61f397aea85edf6b26aa 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
|
| @@ -609,3 +609,21 @@ TEST_F('OutputE2ETest', 'ToggleButton', function() {
|
| ]}, o.speechOutputForTest);
|
| });
|
| });
|
| +
|
| +TEST_F('OutputE2ETest', 'JoinDescendants', function() {
|
| + this.runWithLoadedTree(function() {/*!
|
| + <p>This</p>
|
| + <p>fragment</p>
|
| + <p>Should be separated</p>
|
| + <p>with spaces</p>
|
| + */},
|
| + function(root) {
|
| + var unjoined = new Output().format('$descendants', root);
|
| + assertEquals('This|fragment|Should be separated|with spaces'
|
| + , unjoined.speechOutputForTest.string_);
|
| +
|
| + var joined = new Output().format('$joinedDescendants', root);
|
| + assertEquals('This fragment Should be separated with spaces'
|
| + , joined.speechOutputForTest.string_);
|
| + });
|
| +});
|
|
|