forked from ethereum/mist
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner.html
More file actions
executable file
·35 lines (33 loc) · 1.03 KB
/
runner.html
File metadata and controls
executable file
·35 lines (33 loc) · 1.03 KB
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
<html>
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="lib/browser/mocha.css" />
<script src="./lib/browser/jquery-1.10.1.min.js"></script>
<script src="./lib/mocha.js"></script>
<script src="./lib/chai.js"></script>
<script>mocha.setup('bdd')</script>
<script>
function assert(expr, msg) {
if (!expr) throw new Error(msg || 'failed');
}
</script>
<script src="./spec/ipc-spec.js"></script>
<script src="./spec/permissions-spec.js"></script>
<script>
onload = function(){
// delay so we make sure the permissions object arrived first through ipc
setTimeout(function(){
var runner = mocha.run();
// runner.globals(['foo', 'bar', 'baz']);
// runner.on('test end', function(test){
// console.log(test.fullTitle());
// });
}, 1000);
};
</script>
</head>
<body>
<div id="mocha"></div>
</body>
</html>