aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r--ext/wasm/tester1.c-pp.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js
index a21a1c330..f5fff0cfc 100644
--- a/ext/wasm/tester1.c-pp.js
+++ b/ext/wasm/tester1.c-pp.js
@@ -3154,8 +3154,14 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
db.close();
T.assert(1 === u1.getFileCount());
db = new u2.OpfsSAHPoolDb(dbName);
- T.assert(1 === u1.getFileCount());
+ T.assert(1 === u1.getFileCount())
+ .mustThrow(()=>u2.pauseVfs(), "Cannot pause VFS with opened db.");
db.close();
+ T.assert( u2===u2.pauseVfs() )
+ .assert( u2.isPaused() )
+ .assert( 0===capi.sqlite3_vfs_find(u2.vfsName) )
+ .assert( u2===await u2.unpauseVfs() )
+ .assert( 0!==capi.sqlite3_vfs_find(u2.vfsName) );
const fileNames = u1.getFileNames();
T.assert(1 === fileNames.length)
.assert(dbName === fileNames[0])