| 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;
|
|
|