Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / transaction-crash-on-abort.js
bloba4ba4db0206096b0070b13252d403029b7a3280f
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 description("Test IndexedDB transaction does not crash on abort.");
8 indexedDBTest(prepareDatabase, setVersionComplete);
9 function prepareDatabase()
11     db = event.target.result;
12     event.target.transaction.onabort = unexpectedAbortCallback;
13     evalAndLog("db.createObjectStore('foo')");
16 function setVersionComplete()
18     evalAndLog("db.transaction('foo')");
19     evalAndLog("self.gc()");
20     finishJSTest();