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

Unified Diff: chrome/test/data/chromeos/liblouis_nacl/test.js

Issue 589133002: Make undefined Unicode characters show up in a nicer way in braille. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moretables
Patch Set: Fix typo. 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/test/data/chromeos/liblouis_nacl/test.js
diff --git a/chrome/test/data/chromeos/liblouis_nacl/test.js b/chrome/test/data/chromeos/liblouis_nacl/test.js
index 275f29e3d06df41eb1aadfec1cd35103297488f2..142773b416e9acf884783652afc64ef4d007c603 100644
--- a/chrome/test/data/chromeos/liblouis_nacl/test.js
+++ b/chrome/test/data/chromeos/liblouis_nacl/test.js
@@ -66,12 +66,12 @@ function expectSuccessReply(callback) {
loadLibrary(function() {
chrome.test.runTests([
function testGetTranslator() {
- rpc('CheckTable', { 'table_name': TABLE_NAME},
+ rpc('CheckTable', { 'table_names': TABLE_NAME},
pass(expectSuccessReply()));
},
function testTranslateString() {
- rpc('Translate', { 'table_name': TABLE_NAME, 'text': TEXT},
+ rpc('Translate', { 'table_names': TABLE_NAME, 'text': TEXT},
pass(expectSuccessReply(function(reply) {
chrome.test.assertEq(CELLS, reply['cells']);
})));
@@ -82,14 +82,14 @@ loadLibrary(function() {
// letter 'T' should be translated to 3 cells in US English grade 2
// braille (dots 56, 6, 2345).
function testTranslateGrade2SingleCapital() {
- rpc('Translate', { 'table_name': CONTRACTED_TABLE_NAME, 'text': 'T'},
+ rpc('Translate', { 'table_names': CONTRACTED_TABLE_NAME, 'text': 'T'},
pass(expectSuccessReply(function(reply) {
chrome.test.assertEq('30201e', reply['cells']);
})));
},
function testBackTranslateString() {
- rpc('BackTranslate', { 'table_name': TABLE_NAME, 'cells': CELLS},
+ rpc('BackTranslate', { 'table_names': TABLE_NAME, 'cells': CELLS},
pass(expectSuccessReply(function(reply) {
chrome.test.assertEq(TEXT, reply['text']);
})));
@@ -98,7 +98,7 @@ loadLibrary(function() {
// Backtranslate a one-letter contraction that expands to a much larger
// string (k->knowledge).
function testBackTranslateContracted() {
- rpc('BackTranslate', { 'table_name': CONTRACTED_TABLE_NAME,
+ rpc('BackTranslate', { 'table_names': CONTRACTED_TABLE_NAME,
'cells': '05'}, // dots 1 and 3
pass(expectSuccessReply(function(reply) {
chrome.test.assertEq('knowledge', reply['text']);
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/liblouis_nacl/liblouis_test.extjs ('k') | third_party/liblouis/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698