function isEqualArrays(array1, array2) {
  assertEquals(array1.length, array2.length);
  for (var i = 0; i < array1.length; i++) {
    assertEquals(array1[i], array2[i]);
  }
}
Check that two arrays have the same content.
@param {!Array.<string>} array1 The first array.
@param {!Array.<string>} array2 The second array.