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

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

Issue 604423002: Use an enum for ChromeVox queue mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/testing/spoken_list_builder.js
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/spoken_list_builder.js b/chrome/browser/resources/chromeos/chromevox/testing/spoken_list_builder.js
index 56a7ec0b842f103e92ff1f812f751c80a12642e2..64bc467882e83790790cf47bd26c53dc13134979 100644
--- a/chrome/browser/resources/chromeos/chromevox/testing/spoken_list_builder.js
+++ b/chrome/browser/resources/chromeos/chromevox/testing/spoken_list_builder.js
@@ -7,7 +7,7 @@
*/
goog.provide('cvox.SpokenListBuilder');
-
+goog.require('cvox.QueueMode');
/**
@@ -25,7 +25,7 @@ cvox.SpokenListBuilder = function() {
* @return {cvox.SpokenListBuilder} this.
*/
cvox.SpokenListBuilder.prototype.flush = function(expectedText) {
- this.list_.push([expectedText, cvox.AbstractTts.QUEUE_MODE_FLUSH]);
+ this.list_.push([expectedText, cvox.QueueMode.FLUSH]);
return this; // for chaining
};
@@ -36,7 +36,7 @@ cvox.SpokenListBuilder.prototype.flush = function(expectedText) {
* @return {cvox.SpokenListBuilder} this.
*/
cvox.SpokenListBuilder.prototype.queue = function(expectedText) {
- this.list_.push([expectedText, cvox.AbstractTts.QUEUE_MODE_QUEUE]);
+ this.list_.push([expectedText, cvox.QueueMode.QUEUE]);
return this; // for chaining
};
@@ -47,7 +47,7 @@ cvox.SpokenListBuilder.prototype.queue = function(expectedText) {
* @return {cvox.SpokenListBuilder} this.
*/
cvox.SpokenListBuilder.prototype.categoryFlush = function(expectedText) {
- this.list_.push([expectedText, cvox.AbstractTts.QUEUE_MODE_CATEGORY_FLUSH]);
+ this.list_.push([expectedText, cvox.QueueMode.CATEGORY_FLUSH]);
return this; // for chaining
};

Powered by Google App Engine
This is Rietveld 408576698