-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathbrowser-test.html
More file actions
33 lines (30 loc) · 846 Bytes
/
browser-test.html
File metadata and controls
33 lines (30 loc) · 846 Bytes
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
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Browserify Tests Demo</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>
<body>
<div id="mocha"></div>
<!-- load and configure mocha -->
<script src="./node_modules/mocha/mocha.js"></script>
<script>
'use strict';
mocha.setup('bdd')
mocha.slow(500)
mocha.timeout(3000)
</script>
<!-- load test suite -->
<script src="./test/browser/browserified_tests.js"></script>
<!-- kick of tests -->
<script>
if (window.mochaPhantomJS) {
window.mochaPhantomJS.run()
} else {
mocha.run()
}
</script>
</body>
</html>