aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/SQLTester/SQLTester.run.mjs
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-10-18 23:54:23 +0000
committerstephan <stephan@noemail.net>2024-10-18 23:54:23 +0000
commita525d635a9bf25ea889e3d8537d4a20a2034340a (patch)
tree6baa71425af2dfc762e6916fd48140c2cb077f74 /ext/wasm/SQLTester/SQLTester.run.mjs
parent23caead6cbee369c7c7bccf9cb4e90c3487634ae (diff)
downloadsqlite-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.run.mjs')
-rw-r--r--ext/wasm/SQLTester/SQLTester.run.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/SQLTester/SQLTester.run.mjs b/ext/wasm/SQLTester/SQLTester.run.mjs
index bba1437e5..bf20c2cee 100644
--- a/ext/wasm/SQLTester/SQLTester.run.mjs
+++ b/ext/wasm/SQLTester/SQLTester.run.mjs
@@ -9,7 +9,8 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file contains a test application for SQLTester.js.
+** This file contains a test application for SQLTester.mjs. It loads
+** test scripts and runs them through the SQLTester class.
*/
import {default as ns} from './SQLTester.mjs';
import {default as allTests} from './test-list.mjs';
@@ -33,7 +34,7 @@ const affirm = function(expr, msg){
}
}
-let ts = new ns.TestScript('/foo.test',`
+let ts = new ns.TestScript('SQLTester-sanity-check.test',`
/*
** This is a comment. There are many like it but this one is mine.
**
@@ -93,6 +94,7 @@ SELECT json_array(1,2,3)
select 1 as 'a', 2 as 'b';
--result 1 2
--close
+--testcase the-end
--print Until next time
`);
@@ -112,8 +114,6 @@ const runTests = function(){
ts.run(sqt);
affirm( 'zilch' === sqt.nullValue() );
sqt.addTestScript(ts);
- }else if(0){
- sqt.addTestScript(ts);
}else{
for(const t of allTests){
sqt.addTestScript( new ns.TestScript(t) );