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

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

Issue 2496823002: Implement word wrapping and panning in multiline Braille. (Closed)
Patch Set: Addressed David's comments Created 4 years 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/browser/resources/chromeos/chromevox/cvox2/background/panel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js b/chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js
index c51cbc7c6385e984fe92e0c227aa6ba5a26dfb2d..6838dfa38a064308f1a7b4300139bef000acbac7 100644
--- a/chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js
+++ b/chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js
@@ -80,5 +80,25 @@ function assertEqualsJSON(expected, actual, opt_message) {
}
}
+/**
+ * Asserts that two ArrayBuffers have the same content.
+ * @param {ArrayBuffer} arrayBufA The expected ArrayBuffer.
+ * @param {ArrayBuffer} arrayBufB The test ArrayBuffer.
+ */
+function assertArrayBuffersEquals(arrayBufA, arrayBufB) {
+ var view1 = new Uint8Array(arrayBufA);
+ var view2 = new Uint8Array(arrayBufB);
+ assertEquals(JSON.stringify(view1), JSON.stringify(view2));
+}
+
+/**
+ * Asserts that two Arrays have the same content.
+ * @param {ArrayBuffer} arrayA The expected array.
+ * @param {ArrayBuffer} arrayB The test array.
+ */
+function assertArraysEquals(arrayA, arrayB) {
+ assertEquals(JSON.stringify(arrayA), JSON.stringify(arrayB));
+}
+
assertSame = assertEquals;
assertNotSame = assertNotEquals;
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698