blob: a4ba4db0206096b0070b13252d403029b7a3280f [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
description("Test IndexedDB transaction does not crash on abort.");
indexedDBTest(prepareDatabase, setVersionComplete);
function prepareDatabase()
{
db = event.target.result;
event.target.transaction.onabort = unexpectedAbortCallback;
evalAndLog("db.createObjectStore('foo')");
}
function setVersionComplete()
{
evalAndLog("db.transaction('foo')");
evalAndLog("self.gc()");
finishJSTest();
}