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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/testing/tts.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/host/testing/tts.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/testing/tts.js b/chrome/browser/resources/chromeos/chromevox/host/testing/tts.js
index 168769bde6cff9a665f766804f344c3420c09fad..466653d29d320f1b7b1421e2d22caed41062b78e 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/testing/tts.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/testing/tts.js
@@ -37,15 +37,13 @@ cvox.TestTts.prototype.sentinelText_ = '@@@STOP@@@';
* @override
*/
cvox.TestTts.prototype.speak = function(text, queueMode, opt_properties) {
- this.utterances_.push({text: text,
- queueMode: queueMode,
- properties: opt_properties});
+ this.utterances_.push(
+ {text: text, queueMode: queueMode, properties: opt_properties});
if (opt_properties && opt_properties['endCallback'] != undefined) {
var len = this.utterances_.length;
// 'After' is a sentinel value in the tests that tells TTS to stop and
// ends callbacks being called.
- if (this.utterances_[len - 1].text !=
- this.sentinelText_) {
+ if (this.utterances_[len - 1].text != this.sentinelText_) {
opt_properties['endCallback']();
}
}
@@ -105,15 +103,17 @@ cvox.TestTts.prototype.getSpeechQueueOutput = function() {
case cvox.AbstractTts.QUEUE_MODE_CATEGORY_FLUSH:
queue = queue.filter(function(u) {
return (utterance.properties && utterance.properties.category) &&
- (!u.properties ||
- u.properties.category != utterance.properties.category);
+ (!u.properties ||
+ u.properties.category != utterance.properties.category);
});
break;
}
queue.push(utterance);
}
- return queue.map(function(u) { return u.text; });
+ return queue.map(function(u) {
+ return u.text;
+ });
};
/**

Powered by Google App Engine
This is Rietveld 408576698