-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtests.html
38 lines (34 loc) · 1.14 KB
/
tests.html
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
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Mocha Tests of the Earley Parser</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha">
<h1>Mocha Tests of the Earley Parser</h1>
<h2>1. Do not load this page from a <tt>file:///</tt> URL; it will not
run the tests. Instead, do: <tt>npm run test-server</tt></h2>
<h2>2. Click any test description below to see its code.</h2>
<h2>3. If you make changes to the source, reload this page to re-run the
tests.</h2>
</div>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script class="mocha-init">
mocha.setup( {
ui: 'bdd',
fullTrace: true,
timeout: 5000
} );
window.expect = chai.expect;
mocha.checkLeaks();
</script>
<script type="module" src="earley-tests.js"></script>
<script type="module" class="mocha-exec">
mocha.run();
</script>
</body>
</html>