static install() {
    if (window.Promise !== mr.MockPromise.origPromise_) {
      throw Error('Error installing mr.MockPromise');
    }
    if (mr.MockPromise.pendingHandlers_.length) {
      throw Error('Expected no pending handlers.');
    }
    window.Promise = mr.MockPromise;
    mr.MockPromise.ignoreUnhandledRejections = false;
  }
/**
   * Replaces the native Promise class with this class.
   */
Replaces the native Promise class with this class.
Replaces the native Promise class with this class .
static install() {
    if (window.Promise !== mr.MockPromise.origPromise_) {
      throw Error('Error installing mr.MockPromise');
    }
    if (mr.MockPromise.pendingHandlers_.length) {
      throw Error('Expected no pending handlers.');
    }
    window.Promise = mr.MockPromise;
    mr.MockPromise.ignoreUnhandledRejections = false;
  }
static install ( ) { if ( window . Promise !== mr . MockPromise . origPromise_ ) { throw Error ( 'Error installing mr.MockPromise' ) ; } if ( mr . MockPromise . pendingHandlers_ . length ) { throw Error ( 'Expected no pending handlers.' ) ; } window . Promise = mr . MockPromise ; mr . MockPromise . ignoreUnhandledRejections = false ; }
Replaces the native Promise class with this class.
Replaces the native Promise class with this class .