function checkInit_IndexedDB(schema, global)  {
  if (!capability.indexedDb) {
    return goog.Promise.resolve();
  }

  assertTrue(schema.getHoliday().persistentIndex());

  var indexedDb = new lf.backstore.IndexedDB(global, schema);
  return indexedDb.init().then(
      /** @suppress {accessControls} */
      function() {
        var createdTableNames = lf.structs.set.create();
        for (var i = 0; i < indexedDb.db_.objectStoreNames.length; ++i) {
          createdTableNames.add(indexedDb.db_.objectStoreNames.item(i));
        }
        assertUserTables(schema, createdTableNames);
        assertIndexTables(schema, createdTableNames);

      });
}
Initializes a DB with the given schema and performs assertions on the tables
that were created.

@param {!lf.schema.Database} schema
@param {!lf.Global} global
@return {!IThenable}