static async restoreJSON(name, savedDatabaseJson, wipeDatabase) {
    const savedDatabase =
      /** @type {shaka.test.CannedIDB.SavedDatabase} */(JSON.parse(
          savedDatabaseJson, this.reviver_));
    await this.restore(name, savedDatabase, wipeDatabase);
  }
@param {string} name The name of the database to restore.
@param {string} savedDatabaseJson A JSON string containing the database
  definition and the data to populate it with.
@param {boolean=} wipeDatabase If true, wipe the database before loading
  the saved data.  If false, add stores and data, but keep any existing
  stores and data.  Defaults to true.
@return {!Promise} Resolved when the operation is complete.