blob: d4984a80ed6cfe67c2916f25b31ceb0354890e7c [file] [log] [blame]
description("Makes sure that when an in-memory object store is deleted, any in-memory indexes it has are also deleted. If the test does not crash, it passes.");
indexedDBTest(prepareDatabase, versionChangeDone);
function prepareDatabase()
{
evalAndLog("connection = event.target.result;");
for (var i = 0; i < 50; ++i) {
evalAndLog("store = connection.createObjectStore('name');");
evalAndLog("index = store.createIndex('name', 'foo');");
deleteAllObjectStores(connection);
}
}
function versionChangeDone()
{
finishJSTest();
}