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

Unified Diff: chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js

Issue 927313002: Fix and reenable liblouis chromevox tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_api
Patch Set: Fix BrailleTranslatorManager tests that broke when fetchTables was moved into the event handler. Created 5 years, 10 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 | « no previous file | chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js
diff --git a/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js b/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js
index 500c5b3f09fac4001c2e7bbb6bcd3484455bca54..2a152b228372ae2e03701b77057e5dd1556c14f2 100644
--- a/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js
+++ b/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js
@@ -61,9 +61,11 @@ cvox.BrailleTranslatorManager = function(opt_liblouisForTest) {
*/
this.uncontractedTableId_ = null;
- this.fetchTables_();
- document.addEventListener('DOMContentLoaded', this.loadLiblouis_.bind(this),
- false);
+ if (!opt_liblouisForTest) {
+ document.addEventListener('DOMContentLoaded',
+ this.loadLiblouis_.bind(this),
+ false);
+ }
};
cvox.BrailleTranslatorManager.prototype = {
@@ -211,6 +213,7 @@ cvox.BrailleTranslatorManager.prototype = {
// have a body.
this.liblouis_.attachToElement(
/** @type {!HTMLBodyElement} */ (document.body));
+ this.fetchTables_();
},
/**
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698