xref: /sqlite-3.40.0/ext/wasm/index.html (revision dae7518a)
144a87f08Sstephan<!doctype html>
244a87f08Sstephan<html lang="en-us">
344a87f08Sstephan  <head>
444a87f08Sstephan    <meta charset="utf-8">
544a87f08Sstephan    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
644a87f08Sstephan    <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
744a87f08Sstephan    <link rel="stylesheet" href="common/testing.css"/>
844a87f08Sstephan    <title>sqlite3 WASM Testing Page Index</title>
944a87f08Sstephan  </head>
1044a87f08Sstephan  <body>
1144a87f08Sstephan    <header id='titlebar'><span>sqlite3 WASM test pages</span></header>
1244a87f08Sstephan    <hr>
1344a87f08Sstephan    <div>Below is the list of test pages for the sqlite3 WASM
1444a87f08Sstephan      builds. All of them require that this directory have been
1544a87f08Sstephan      "make"d first. The intent is that <em>this</em> page be run
1644a87f08Sstephan      using:</div>
1744a87f08Sstephan    <blockquote><pre>althttpd -page index.html</pre></blockquote>
1844a87f08Sstephan    <div>and the individual tests be started in their own tab.</div>
1944a87f08Sstephan    <div>Warnings and Caveats:
2044a87f08Sstephan      <ul class='warning'>
2144a87f08Sstephan        <li>Some of these pages require that
2244a87f08Sstephan          the web server emit the so-called COOP and COEP headers. The
2344a87f08Sstephan          default build of althttpd <em>does not</em>.
2444a87f08Sstephan        </li>
2544a87f08Sstephan        <li>Whether or not WASMFS/OPFS support is enabled on any given
2644a87f08Sstephan          page may depend on build-time options which are <em>off by
2744a87f08Sstephan          default</em> because they currently (as of 2022-09-08) break
2844a87f08Sstephan          with Worker-based pages.
2944a87f08Sstephan        </li>
3044a87f08Sstephan      </ul>
3144a87f08Sstephan    </div>
3244a87f08Sstephan    <div>The tests...
3344a87f08Sstephan      <ul id='test-list'>
3444a87f08Sstephan        <li><a href='testing1.html'>testing1</a>: sanity tests of the core APIs and surrounding utility code.</li>
3544a87f08Sstephan        <li><a href='testing2.html'>testing2</a>: Worker-based test of OO API #1.</li>
3644a87f08Sstephan        <li><a href='testing-worker1-promiser.html'>testing-worker1-promiser</a>:
3744a87f08Sstephan          tests for the Promise-based wrapper of the Worker-based API.</li>
380b769f5bSstephan        <li><a href='demo-oo1.html'>demo-oo1</a>: demonstration of the OO API #1.</li>
3944a87f08Sstephan        <li><a href='batch-runner.html'>batch-runner</a>: runs batches of SQL exported from speedtest1.</li>
4044a87f08Sstephan        <li><a href='speedtest1.html'>speedtest1</a>: a main-thread WASM build of speedtest1.</li>
4144a87f08Sstephan        <li><a href='speedtest1-worker.html'>speedtest1-worker</a>: an interactive Worker-thread variant of speedtest1.</li>
420b769f5bSstephan        <li><a href='speedtest1-kvvfs.html'>speedtest1-kvvfs</a>: a variant of speedtest1 built solely for the kv-vfs feature.</li>
435360f5fcSstephan        <li><a href='kvvfs1.html'>kvvfs1</a>: very basic demo of using the key-value vfs for storing
445360f5fcSstephan          a persistent db in JS localStorage or sessionStorage.</li>
450117693fSstephan        <li><a href='scratchpad-wasmfs-main.html'>scratchpad-wasmfs-main</a>:
460117693fSstephan          experimenting with WASMFS/OPFS-based persistence. Maintenance
470117693fSstephan          reminder: we cannot currently (2022-09-15) load WASMFS in a
480117693fSstephan          worker due to an Emscripten limitation.</li>
49*dae7518aSstephan        <li><a href='scratchpad-opfs-worker.html'>scratchpad-opfs-worker</a>:
50*dae7518aSstephan          experimenting with OPFS from a Worker thread (without WASMFS).
5144a87f08Sstephan        <!--li><a href='x.html'></a></li-->
5244a87f08Sstephan      </ul>
5344a87f08Sstephan    </div>
5444a87f08Sstephan    <style>
5544a87f08Sstephan      #test-list { font-size: 120%; }
5644a87f08Sstephan    </style>
5744a87f08Sstephan    <script>//Assign a distinct target tab name for each test page...
5844a87f08Sstephan      document.querySelectorAll('a').forEach(function(e){
5944a87f08Sstephan          e.target = e.href;
6044a87f08Sstephan      });
6144a87f08Sstephan    </script>
6244a87f08Sstephan  </body>
6344a87f08Sstephan</html>
64