diff options
author | Florian Dold <florian@dold.me> | 2021-02-23 19:28:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-23 19:28:37 +0100 |
commit | 648b0be7dd0e65f9001c1f869e710337ecd7c4e2 (patch) | |
tree | be7e2c74adde3d48246a3fbc702c1c5defd5e5eb /packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts | |
parent | 9b9df089cfddb2f01b17ac0eaccd2192a6982fb9 (diff) | |
download | wallet-core-648b0be7dd0e65f9001c1f869e710337ecd7c4e2.tar.xz |
idb: more tests and fixes
Diffstat (limited to 'packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts')
-rw-r--r-- | packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts b/packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts index 0d1f24c4b..bba9c6e54 100644 --- a/packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts +++ b/packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts @@ -8,7 +8,7 @@ test("WPT idbfactory-open.htm", async (t) => { await new Promise<void>((resolve, reject) => { var open_rq = createdb(t, undefined, 9); - open_rq.onupgradeneeded = function (e) {}; + open_rq.onupgradeneeded = function (e: any) {}; open_rq.onsuccess = function (e: any) { t.deepEqual(e.target.source, null, "source"); resolve(); @@ -23,7 +23,7 @@ test("WPT idbfactory-open2.htm", async (t) => { var database_name = t.title + "-database_name"; var open_rq = createdb(t, database_name, 13); - open_rq.onupgradeneeded = function (e) {}; + open_rq.onupgradeneeded = function (e: any) {}; open_rq.onsuccess = function (e: any) { var db = e.target.result; t.deepEqual(db.name, database_name, "db.name"); @@ -302,7 +302,7 @@ test("WPT idbfactory-open10.htm", async (t) => { st.add({ i: "Joshua" }, 1); st.add({ i: "Jonas" }, 2); }; - open_rq.onsuccess = function (e) { + open_rq.onsuccess = function (e: any) { db.close(); var open_rq2 = indexedDB.open(db.name, 10); open_rq2.onupgradeneeded = function (e: any) { @@ -434,7 +434,7 @@ test("WPT idbfactory-open11.htm", async (t) => { store.add("data2", 2); }; - open_rq.onsuccess = function (e) { + open_rq.onsuccess = function (e: any) { var store = db.transaction("store").objectStore("store"); t.deepEqual(store.name, "store", "store.name"); store.count().onsuccess = function (e: any) { @@ -491,7 +491,7 @@ test("WPT idbfactory-open12.htm", async (t) => { t.deepEqual(db.version, 9, "db.version"); }; - open_rq.onsuccess = function (e) { + open_rq.onsuccess = function (e: any) { t.true(e instanceof FakeEvent, "e instanceof Event"); t.false( e instanceof BridgeIDBVersionChangeEvent, |