test.mock.html
1.8 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<title>Test: Mock</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./bower_components/mocha/mocha.css" rel="stylesheet">
<style type="text/css">
li.test h2 {
font-family: monospace;
/*white-space: pre;*/
padding-left: 20px;
}
</style>
</head>
<body>
<div id="mocha"></div>
<!-- Include local Mocha. -->
<script src="./bower_components/mocha/mocha.js"></script>
<script src="./bower_components/chai/chai.js"></script>
<script>mocha.setup('bdd')</script>
<!-- Include RequireJS -->
<script src="./bower_components/requirejs/require.js"></script>
<script type="text/javascript">
require.config({
paths: {
'mock': '../dist/mock',
jquery: 'bower_components/jquery/dist/jquery',
underscore: 'bower_components/underscore/underscore'
}
})
</script>
<hr>
<div id="container" style="margin: 60px 50px;"></div>
<pre id="tpl" class="container"></pre>
<pre id="data" class="container"></pre>
<!-- Include the actual tests. -->
<script src="./test.mock.spec.dtd.js"></script>
<script src="./test.mock.spec.dpd.js"></script>
<script src="./test.mock.random.js"></script>
<script src="./test.mock.mock.js"></script>
<script src="./test.mock.request.js"></script>
<script src="./test.mock.schema.js"></script>
<script src="./test.mock.valid.js"></script>
<!-- PhantomJS -->
<script type="text/javascript">
if (window.mochaPhantomJS) {
mochaPhantomJS.run()
} else {
mocha.run()
}
</script>
</body>
</html>