| 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;
|
| + });
|
| };
|
|
|
| /**
|
|
|