unittests.html

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <title>Unit tests</title>
  <link href="style.css" rel="stylesheet">
  <link href="css/candy.css" rel="stylesheet">
  <script>
  var C64 = { memory: new Uint8Array(0x10000) }
  this.cpu = C64.cpu
  </script>
 </head>
 <body class="candy greasy-green">

  <h1>Commodore 64 emulator - Unit tests</h1>

  <table border="1" class="test-results">
   <caption>Test results for {suitename}</caption>
   <thead>
    <tr>
     <th>Test</th><th class="number">Time</th><th>Result</th></tr>
    <tr>
   </thead>
   <tbody>
   </tbody>
   <tfoot>
    <tr class="total"><td>Total {testcount} tests</td><td class="number">{testduration} ms</td><td>{successcount} / {testcount} success ({successpercentage} %)</td></tr>
   </tfoot>
  </table>

  <details open>
   <summary title="Click to open/close">Log messages</summary>
   <pre class="log"><tt></tt></pre>
  </details>

  <script src="js/log.js"></script>
  <script src="js/cpu.js"></script>
  <script src="js/memory.js"></script>
  <script src="test/jsunit.js"></script>
  <script src="test/testcpu.js"></script>
  <script src="test/testmemory.js"></script>

 </body>
</html>