diff options
author | Florian Dold <florian@dold.me> | 2021-02-16 17:19:51 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-16 17:19:51 +0100 |
commit | 47bddb2a1b5c603f6440d4745a2ac33cdc85d9ac (patch) | |
tree | ab5ab7b3cca97e52126f5674b4fcae08e99b0e04 /packages/idb-bridge/src/idb-wpt-ported/idbfactory-open.test.ts | |
parent | c363458374b1e5f97768c1cafc84a5dcb65921d5 (diff) | |
download | wallet-core-47bddb2a1b5c603f6440d4745a2ac33cdc85d9ac.tar.xz |
fix errors in test case
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 | 18 |
1 files changed, 9 insertions, 9 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 411a6c69a..102b54719 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 @@ -414,30 +414,30 @@ test("WPT idbfactory-open11.htm", async (t) => { db = e.target.result; db.createObjectStore("store"); - assert_true( + t.true( db.objectStoreNames.contains("store"), "objectStoreNames contains store", ); var store = e.target.transaction.objectStore("store"); - assert_equals(store.name, "store", "store.name"); + t.deepEqual(store.name, "store", "store.name"); store.add("data", 1); - store.count().onsuccess = this.step_func(function (e) { - assert_equals(e.target.result, 1, "count()"); + store.count().onsuccess = function (e: any) { + t.deepEqual(e.target.result, 1, "count()"); count_done++; - }); + }; store.add("data2", 2); }; open_rq.onsuccess = function (e) { var store = db.transaction("store").objectStore("store"); - assert_equals(store.name, "store", "store.name"); - store.count().onsuccess = this.step_func(function (e) { - assert_equals(e.target.result, 2, "count()"); + t.deepEqual(store.name, "store", "store.name"); + store.count().onsuccess = function (e: any) { + t.deepEqual(e.target.result, 2, "count()"); count_done++; - }); + }; db.close(); var open_rq2 = indexedDB.open(db.name, 10); |