diff options
author | stephan <stephan@noemail.net> | 2024-10-18 23:54:23 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-10-18 23:54:23 +0000 |
commit | a525d635a9bf25ea889e3d8537d4a20a2034340a (patch) | |
tree | 6baa71425af2dfc762e6916fd48140c2cb077f74 /ext/wasm/SQLTester/SQLTester.mjs | |
parent | 23caead6cbee369c7c7bccf9cb4e90c3487634ae (diff) | |
download | sqlite-a525d635a9bf25ea889e3d8537d4a20a2034340a.tar.gz sqlite-a525d635a9bf25ea889e3d8537d4a20a2034340a.zip |
Minor doc cleanups in SQLTester.mjs and confirm that the tests pass with both OPFS VFSes.
FossilOrigin-Name: ac747d57c2a26b47644bca2a9b191b09f5180f6872dce9c3261c370a18c848a2
Diffstat (limited to 'ext/wasm/SQLTester/SQLTester.mjs')
-rw-r--r-- | ext/wasm/SQLTester/SQLTester.mjs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/wasm/SQLTester/SQLTester.mjs b/ext/wasm/SQLTester/SQLTester.mjs index f16d5a3a1..e76019694 100644 --- a/ext/wasm/SQLTester/SQLTester.mjs +++ b/ext/wasm/SQLTester/SQLTester.mjs @@ -13,8 +13,8 @@ ** implementation of the SQLTester framework. ** ** This version is not well-documented because it's a direct port of -** the Java immplementation, which is documented: in the main SQLite3 -** source tree, see ext/jni/src/org/sqlite/jni/tester/SQLite3Tester.java. +** the Java implementation, which is documented: in the main SQLite3 +** source tree, see ext/jni/src/org/sqlite/jni/capi/SQLTester.java. */ import sqlite3ApiInit from '/jswasm/sqlite3.mjs'; @@ -28,7 +28,7 @@ const log = (...args)=>{ /** Try to install vfsName as the new default VFS. Once this succeeds (returns true) then it becomes a no-op on future calls. Throws if - vfs registration as the default VFS fails but has no side effects + VFS registration as the default VFS fails but has no side effects if vfsName is not currently registered. */ const tryInstallVfs = function f(vfsName){ @@ -48,11 +48,10 @@ tryInstallVfs.vfsName = undefined; if( 0 && globalThis.WorkerGlobalScope ){ // Try OPFS storage, if available... - if( 0 && sqlite3.oo1.OpfsDb ){ + if( 1 && sqlite3.oo1.OpfsDb ){ /* Really slow with these tests */ tryInstallVfs("opfs"); - } - if( sqlite3.installOpfsSAHPoolVfs ){ + }else if( sqlite3.installOpfsSAHPoolVfs ){ await sqlite3.installOpfsSAHPoolVfs({ clearOnInit: true, initialCapacity: 15, @@ -207,6 +206,9 @@ const Util = newObj({ ['string','string']) })/*Util*/; +/** + Output logger utility. +*/ class Outer { #lnBuf = []; #verbosity = 0; |