diff options
Diffstat (limited to 'packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts')
-rw-r--r-- | packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts b/packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts index b8151f465..1d895c712 100644 --- a/packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts +++ b/packages/idb-bridge/src/idb-wpt-ported/event-dispatch-active-flag.test.ts @@ -1,13 +1,15 @@ import test from "ava"; -import { BridgeIDBRequest } from ".."; +import { BridgeIDBRequest } from "../bridge-idb.js"; import { - createdb, indexeddb_test, + initTestIndexedDB, is_transaction_active, keep_alive, -} from "./wptsupport"; +} from "./wptsupport.js"; -test("WPT test abort-in-initial-upgradeneeded.htm (subtest 1)", async (t) => { +test.before("test DB initialization", initTestIndexedDB); + +test("WPT test event-dispatch-active-flag.html (subtest 1)", async (t) => { // Transactions are active during success handlers await indexeddb_test( t, @@ -55,7 +57,7 @@ test("WPT test abort-in-initial-upgradeneeded.htm (subtest 1)", async (t) => { ); }); -test("WPT test abort-in-initial-upgradeneeded.htm (subtest 2)", async (t) => { +test("WPT test event-dispatch-active-flag.html (subtest 2)", async (t) => { // Transactions are active during success listeners await indexeddb_test( t, @@ -101,7 +103,7 @@ test("WPT test abort-in-initial-upgradeneeded.htm (subtest 2)", async (t) => { ); }); -test("WPT test abort-in-initial-upgradeneeded.htm (subtest 3)", async (t) => { +test("WPT test event-dispatch-active-flag.html (subtest 3)", async (t) => { // Transactions are active during error handlers await indexeddb_test( t, @@ -150,7 +152,7 @@ test("WPT test abort-in-initial-upgradeneeded.htm (subtest 3)", async (t) => { ); }); -test("WPT test abort-in-initial-upgradeneeded.htm (subtest 4)", async (t) => { +test("WPT test event-dispatch-active-flag.html (subtest 4)", async (t) => { // Transactions are active during error listeners await indexeddb_test( t, |