-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtestrunner.html
52 lines (43 loc) · 1.35 KB
/
testrunner.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<body>
<div id="mocha"></div>
<!-- Test input form -->
<div style="margin: auto; text-align: center; margin-top: 50px">
<h2>Test input</h2>
<form>
<input type="text" class="form-control">
</form>
</div>
<!-- don't use anything remote here for test speed -->
<link href="../dist/picker-bs3.css" rel="stylesheet">
<script src="../node_modules/source-map-support/browser-source-map-support.js"></script>
<script>sourceMapSupport.install()</script>
<script src="../node_modules/babel-polyfill/dist/polyfill.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/picker.iife.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/chai-jquery/chai-jquery.js"></script>
<script>
var expect = chai.expect
</script>
<script>mocha.setup({
ui: 'bdd',
reporter: 'html'
// reporter: 'spec'
})</script>
<script src="../dist/picker-tests.iife.js"></script>
<script>
mocha.checkLeaks();
mocha.globals(['jQuery']);
mocha.run()
</script>
</body>
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css"/>
</head>
</html>