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

Unified Diff: chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js

Issue 2401393003: Add multiline braille support. (Closed)
Patch Set: more tests Created 4 years, 1 month 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 | « chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js
diff --git a/chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js b/chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js
index 7254cf4810c2618a2245f69f30f97736b8a96d89..faf9ddeb58ea31d81af5a65896e31f0f1d90a9df 100644
--- a/chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js
+++ b/chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js
@@ -22,7 +22,7 @@ function waitForDisplay(callback) {
return;
}
chrome.test.assertTrue(state.available, "Display not available");
- chrome.test.assertEq(11, state.textCellCount);
+ chrome.test.assertEq(11, state.textColumnCount);
callback(state);
callbackCompleted();
chrome.brailleDisplayPrivate.onDisplayStateChanged.removeListener(
@@ -45,7 +45,7 @@ function waitForDisplay(callback) {
chrome.test.runTests([
function testWriteEmptyCells() {
waitForDisplay(pass(function() {
- chrome.brailleDisplayPrivate.writeDots(new ArrayBuffer(0));
+ chrome.brailleDisplayPrivate.writeDots(new ArrayBuffer(0), 0, 0);
chrome.brailleDisplayPrivate.getDisplayState(pass());
}));
},
@@ -53,9 +53,9 @@ chrome.test.runTests([
function testWriteOversizedCells() {
waitForDisplay(pass(function(state) {
chrome.brailleDisplayPrivate.writeDots(
- createBuffer(state.textCellCount + 1, 1));
+ createBuffer(state.textColumnCount + 1, 1), state.textColumnCount, 1);
chrome.brailleDisplayPrivate.writeDots(
- createBuffer(1000000, 2));
+ createBuffer(1000000, 2), 1000000, 1);
chrome.brailleDisplayPrivate.getDisplayState(pass());
}));
}
« no previous file with comments | « chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698