Revision 6e318890feebcefa9852562e218486cff59d43bf authored by TypeScript Bot on 05 September 2018, 17:04:34 UTC, committed by Nathan Shively-Sanders on 05 September 2018, 17:04:34 UTC
1 parent 4ac8976
Raw File
webTestResults.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Mocha Tests</title>
  <link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
  <link rel="icon" href="./webhost/favicon-32x32.png"/>
  <style>
.btn {
  color: #ffffff;
  background: #3498db;
  border-radius: 30px;
  font-size: 50px;
}
.btn:hover { background: #50c7ff; }
.btn:focus { background: #50c7ff; }
  </style>
</head>
<body>
  <div id='setup'>
    <button id='runTestBtn' onclick='runTests()' type="button" class="btn">Run Tests</button>
  </div>
  <div id="mocha"></div>
  <script src="../node_modules/source-map-support/browser-source-map-support.js"></script>
  <script>sourceMapSupport.install();</script>
  <script src="../node_modules/mocha/mocha.js"></script>
  <script>mocha.setup({ ui: 'bdd', timeout: 0 })</script>
  <script src="../built/local/bundle.js"></script>

  <script>
    // mocha is going to call this on every test result and make the results page unusable for a long
    // time after the tests are already done, doesn't seem necessary
    Mocha.utils.highlightTags = function() {}

    function runTests() {
      mocha.checkLeaks();
      mocha.globals(['jQuery']);
      mocha.run();
    }
  </script>
</body>
</html>
back to top