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

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

Issue 1801363003: Add a $joinedDescendants output specifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 9 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
+ });
+});
« 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