diff options
Diffstat (limited to 'ext/wasm/demo-worker1.js')
-rw-r--r-- | ext/wasm/demo-worker1.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/wasm/demo-worker1.js b/ext/wasm/demo-worker1.js index ac4e9f423..cc63f3a7c 100644 --- a/ext/wasm/demo-worker1.js +++ b/ext/wasm/demo-worker1.js @@ -229,16 +229,14 @@ T.assert(1===ev.resultRows.length) .assert(2===ev.resultRows[0][0]); }); - if(0){ - // export requires reimpl. for portability reasons. - runOneTest('export',{}, function(ev){ - ev = ev.result; - T.assert('string' === typeof ev.filename) - .assert(ev.buffer instanceof Uint8Array) - .assert(ev.buffer.length > 1024) - .assert('application/x-sqlite3' === ev.mimetype); - }); - } + runOneTest('export',{}, function(ev){ + ev = ev.result; + log("export result:",ev); + T.assert('string' === typeof ev.filename) + .assert(ev.byteArray instanceof Uint8Array) + .assert(ev.byteArray.length > 1024) + .assert('application/x-sqlite3' === ev.mimetype); + }); /***** close() tests must come last. *****/ runOneTest('close',{unlink:true},function(ev){ ev = ev.result; @@ -342,4 +340,6 @@ } }; log("Init complete, but async init bits may still be running."); + log("Installing Worker into global scope SW for dev purposes."); + self.SW = SW; })(); |