function testHandlerRegistration() {
  var HandlerName = firebaseui.auth.widget.HandlerName;
  assertEquals(
      firebaseui.auth.widget.handler.handleCallback,
      firebaseui.auth.widget.handlers_[HandlerName.CALLBACK]);
  assertEquals(
      firebaseui.auth.widget.handler.handleFederatedLinking,
      firebaseui.auth.widget.handlers_[HandlerName.FEDERATED_LINKING]);
  assertEquals(
      firebaseui.auth.widget.handler.handleFederatedRedirect,
      firebaseui.auth.widget.handlers_[HandlerName.FEDERATED_REDIRECT]);
  assertEquals(
      firebaseui.auth.widget.handler.handleFederatedSignIn,
      firebaseui.auth.widget.handlers_[HandlerName.FEDERATED_SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePasswordLinking,
      firebaseui.auth.widget.handlers_[HandlerName.PASSWORD_LINKING]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePasswordRecovery,
      firebaseui.auth.widget.handlers_[HandlerName.PASSWORD_RECOVERY]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePasswordSignIn,
      firebaseui.auth.widget.handlers_[HandlerName.PASSWORD_SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePasswordSignUp,
      firebaseui.auth.widget.handlers_[HandlerName.PASSWORD_SIGN_UP]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePhoneSignInFinish,
      firebaseui.auth.widget.handlers_[HandlerName.PHONE_SIGN_IN_FINISH]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePhoneSignInStart,
      firebaseui.auth.widget.handlers_[HandlerName.PHONE_SIGN_IN_START]);
  assertEquals(
      firebaseui.auth.widget.handler.handleSendEmailLinkForSignIn,
      firebaseui.auth.widget.handlers_[
          HandlerName.SEND_EMAIL_LINK_FOR_SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailLinkConfirmation,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_LINK_CONFIRMATION]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailLinkSignInLinking,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_LINK_SIGN_IN_LINKING]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailLinkNewDeviceLinking,
      firebaseui.auth.widget.handlers_[
          HandlerName.EMAIL_LINK_NEW_DEVICE_LINKING]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailLinkSignInSent,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_LINK_SIGN_IN_SENT]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailNotReceived,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_NOT_RECEIVED]);
  assertEquals(
      firebaseui.auth.widget.handler.handleDifferentDeviceError,
      firebaseui.auth.widget.handlers_[HandlerName.DIFFERENT_DEVICE_ERROR]);
  assertEquals(
      firebaseui.auth.widget.handler.handleAnonymousUserMismatch,
      firebaseui.auth.widget.handlers_[HandlerName.ANONYMOUS_USER_MISMATCH]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailChangeRevocation,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_CHANGE_REVOCATION]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailVerification,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_VERIFICATION]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePasswordReset,
      firebaseui.auth.widget.handlers_[HandlerName.PASSWORD_RESET]);
  assertEquals(
      firebaseui.auth.widget.handler.handleSignIn,
      firebaseui.auth.widget.handlers_[HandlerName.SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailMismatch,
      firebaseui.auth.widget.handlers_[HandlerName.EMAIL_MISMATCH]);
  assertEquals(
      firebaseui.auth.widget.handler.handleProviderSignIn,
      firebaseui.auth.widget.handlers_[HandlerName.PROVIDER_SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handlePrefilledEmailSignIn,
      firebaseui.auth.widget.handlers_[HandlerName.PREFILLED_EMAIL_SIGN_IN]);
  assertEquals(
      firebaseui.auth.widget.handler.handleEmailLinkSignInCallback,
      firebaseui.auth.widget.handlers_[
          HandlerName.EMAIL_LINK_SIGN_IN_CALLBACK]);
  assertEquals(
      firebaseui.auth.widget.handler.handleUnauthorizedUser,
      firebaseui.auth.widget.handlers_[HandlerName.UNAUTHORIZED_USER]);
  assertEquals(
      firebaseui.auth.widget.handler.handleUnsupportedProvider,
      firebaseui.auth.widget.handlers_[HandlerName.UNSUPPORTED_PROVIDER]);
  assertEquals(
      firebaseui.auth.widget.handler.handleVerifyAndChangeEmail,
      firebaseui.auth.widget.handlers_[HandlerName.VERIFY_AND_CHANGE_EMAIL]);
  assertEquals(
      firebaseui.auth.widget.handler.handleRevertSecondFactorAddition,
      firebaseui.auth.widget.handlers_[
      HandlerName.REVERT_SECOND_FACTOR_ADDITION]);
}
@fileoverview Tests for handler registration and dispatching.