aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/SQLTester/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/SQLTester/index.html')
-rw-r--r--ext/wasm/SQLTester/index.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/wasm/SQLTester/index.html b/ext/wasm/SQLTester/index.html
index ebd828c64..cd1423ac3 100644
--- a/ext/wasm/SQLTester/index.html
+++ b/ext/wasm/SQLTester/index.html
@@ -33,7 +33,7 @@
</span>
<input type='button' id='btn-run-tests' value='Run tests'/>
</fieldset>
- <div id='test-output'></div>
+ <div id='test-output'>Test output will go here.</div>
<!--script src='SQLTester.run.mjs' type='module'></script-->
<script>
(async function(){
@@ -99,9 +99,12 @@
W.onmessage = function({data}){
switch(data.type){
case 'stdout': log2(data.payload.message); break;
- case 'tests-end': btnRun.removeAttribute('disabled'); break;
+ case 'tests-end':
+ btnRun.removeAttribute('disabled');
+ delete data.payload.nTest;
+ log("test results:",data.payload);
+ break;
case 'is-ready':
- log("SQLTester.run.mjs is ready.");
runTests(); break;
default:
log("unhandled onmessage",data);