B2G/gecko/services/sync/tps/extensions/tps/modules/tps.jsm
/**
   * Reset the client and server to an empty/pure state.
   *
   * All data on the server is wiped and replaced with new keys and local
   * client data. The local client is configured such that it is in sync
   * with the server and ready to handle changes.
   *
   * This is typically called at the beginning of every test to set up a clean
   * slate.
   *
   * This executes synchronously and doesn't return until things are in a good
   * state.
   */
Reset the client and server to an empty/pure state.
All data on the server is wiped and replaced with new keys and local
client data. The local client is configured such that it is in sync
with the server and ready to handle changes.

This is typically called at the beginning of every test to set up a clean
slate.

This executes synchronously and doesn't return until things are in a good
state.
Reset the client and server to an empty / pure state . All data on the server is wiped and replaced with new keys and local client data . The local client is configured such that it is in sync with the server and ready to handle changes . This is typically called at the beginning of every test to set up a clean slate . This executes synchronously and doesn ' t return until things are in a good state .
function ResetData() {
    this.Login(true);
    Service.login();
    Service.wipeServer();
    Service.resetClient();
    Service.login();
    this.waitForTracking();
  }
function ResetData ( ) { this . Login ( true ) ; Service . login ( ) ; Service . wipeServer ( ) ; Service . resetClient ( ) ; Service . login ( ) ; this . waitForTracking ( ) ; }
Reset the client and server to an empty/pure state.
Reset the client and server to an empty / pure state .