xref: /sqlite-3.40.0/ext/wasm/batch-runner.html (revision 2f06bf25)
12cae138fSstephan<!doctype html>
22cae138fSstephan<html lang="en-us">
32cae138fSstephan  <head>
42cae138fSstephan    <meta charset="utf-8">
52cae138fSstephan    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
62cae138fSstephan    <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
72cae138fSstephan    <link rel="stylesheet" href="common/emscripten.css"/>
82cae138fSstephan    <link rel="stylesheet" href="common/testing.css"/>
92cae138fSstephan    <title>sqlite3-api batch SQL runner</title>
102cae138fSstephan  </head>
112cae138fSstephan  <body>
122cae138fSstephan    <header id='titlebar'><span>sqlite3-api batch SQL runner</span></header>
132cae138fSstephan    <!-- emscripten bits -->
142cae138fSstephan    <figure id="module-spinner">
152cae138fSstephan      <div class="spinner"></div>
162cae138fSstephan      <div class='center'><strong>Initializing app...</strong></div>
172cae138fSstephan      <div class='center'>
182cae138fSstephan        On a slow internet connection this may take a moment.  If this
192cae138fSstephan        message displays for "a long time", intialization may have
202cae138fSstephan        failed and the JavaScript console may contain clues as to why.
212cae138fSstephan      </div>
222cae138fSstephan    </figure>
232cae138fSstephan    <div class="emscripten" id="module-status">Downloading...</div>
242cae138fSstephan    <div class="emscripten">
252cae138fSstephan      <progress value="0" max="100" id="module-progress" hidden='1'></progress>
262cae138fSstephan    </div><!-- /emscripten bits -->
27*2f06bf25Sstephan    <p>
28*2f06bf25Sstephan      This page is for running extracts from the output of <tt>speedtest --script</tt>.
29*2f06bf25Sstephan    </p>
30*2f06bf25Sstephan    <p id='warn-list' class='warning'>ACHTUNG: this file requires a generated input list
312cae138fSstephan      file. Run "make batch" from this directory to generate it.
322cae138fSstephan    </p>
33*2f06bf25Sstephan    <p id='warn-opfs' class='warning'>WARNING: if the WASMFS/OPFS layer crashes, this page may
342cae138fSstephan      become completely unresponsive and need to be closed and
352cae138fSstephan      reloaded to recover.
362cae138fSstephan    </p>
372cae138fSstephan    <hr>
382cae138fSstephan    <div>
39*2f06bf25Sstephan      <select class='disable-during-eval' id='sql-select'>
402cae138fSstephan        <option disabled selected>Populated via script code</option>
412cae138fSstephan      </select>
42*2f06bf25Sstephan      <button class='disable-during-eval' id='sql-run'>Run selected SQL</button>
43*2f06bf25Sstephan      <button class='disable-during-eval' id='sql-run-next'>Run next...</button>
44*2f06bf25Sstephan      <button class='disable-during-eval' id='sql-run-remaining'>Run all remaining...</button>
45*2f06bf25Sstephan      <button class='disable-during-eval' id='db-reset'>Reset db</button>
462cae138fSstephan      <button id='output-clear'>Clear output</button>
472cae138fSstephan    </div>
482cae138fSstephan    <hr>
49*2f06bf25Sstephan    <div>(Log output is in reverse order, newest first!)</div>
502cae138fSstephan    <div id='test-output'></div>
512cae138fSstephan
522cae138fSstephan    <script src="sqlite3.js"></script>
532cae138fSstephan    <script src="common/SqliteTestUtil.js"></script>
542cae138fSstephan    <script src="batch-runner.js"></script>
552cae138fSstephan    <style>
56*2f06bf25Sstephan      body {
57*2f06bf25Sstephan          display: flex;
58*2f06bf25Sstephan          flex-direction: column;
59*2f06bf25Sstephan          flex-wrap: wrap;
60*2f06bf25Sstephan      }
612cae138fSstephan      .warning { color: firebrick; }
622cae138fSstephan      #test-output {
632cae138fSstephan          border: 1px inset;
642cae138fSstephan          padding: 0.25em;
65*2f06bf25Sstephan          /*max-height: 30em;*/
662cae138fSstephan          overflow: auto;
672cae138fSstephan          white-space: break-spaces;
68*2f06bf25Sstephan          display: flex; flex-direction: column-reverse;
692cae138fSstephan      }
702cae138fSstephan    </style>
712cae138fSstephan  </body>
722cae138fSstephan</html>
73