blob: 565852433cece3d894e52442f647b0b5adea22ad [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test-pre.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();
}