File: index.html

package info (click to toggle)
node-url-parse 1.5.10%2B~1.4.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: javascript: 1,584; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="https://unpkg.com/mocha@^3/mocha.css" rel="stylesheet">
  </head>
  <body>
    <div id="mocha"></div>
    <script src="https://unpkg.com/mocha@^3/mocha.js"></script>
    <script>
      mocha.setup('bdd');

      window.TESTS_COMPLETE = false;
      window.TESTS_PASSED = 0;
      window.TESTS_FAILED = 0;

      window.onload = function () {
        var runner = mocha.run();

        runner.on('test end', function (test) {
          if (test.state === 'passed') window.TESTS_PASSED++;
          else window.TESTS_FAILED++;
        });

        runner.on('end', function () {
          window.TESTS_COMPLETE = true;
        });
      };
    </script>
    {{scripts}}
  </body>
</html>