B2G/gecko/services/sync/tests/unit/test_errorhandler.js
// Wait for the automatic next sync.
Wait for the automatic next sync.
Wait for the automatic next sync .
function onLoginError() {
      _("Got weave:service:login:error in second sync.");
      Svc.Obs.remove("weave:service:login:error", onLoginError);
      do_check_eq(Status.login, LOGIN_FAILED_LOGIN_REJECTED);
      do_check_false(Service.isLoggedIn);
      Utils.nextTick(function () {
        Service.startOver();
        server.stop(run_next_test);
      });
    }
function onLoginError ( ) { _ ( "Got weave:service:login:error in second sync." ) ; Svc . Obs . remove ( "weave:service:login:error" , onLoginError ) ; do_check_eq ( Status . login , LOGIN_FAILED_LOGIN_REJECTED ) ; do_check_false ( Service . isLoggedIn ) ; Utils . nextTick ( function ( ) { Service . startOver ( ) ; server . stop ( run_next_test ) ; } ) ; }
Wait for the automatic next sync.
Wait for the automatic next sync .
// Clean up.