function assertErrorEquals(expected, actual) {
  assertObjectEquals(expected.toPlainObject(), actual.toPlainObject());
}
Asserts that two errors are equivalent. Plain assertObjectEquals cannot be
used as Internet Explorer adds the stack trace as a property of the object.
@param {!firebaseui.auth.AuthUIError} expected
@param {!firebaseui.auth.AuthUIError} actual