1 | <!DOCTYPE html>
|
2 | <html>
|
3 | <head>
|
4 | <title>OL Spec Runner</title>
|
5 | <meta charset="utf-8">
|
6 | <link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
|
7 | </head>
|
8 |
|
9 | <body>
|
10 | <div id="mocha"></div>
|
11 |
|
12 | <script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
|
13 | <script type="text/javascript" src="../node_modules/expect.js/index.js"></script>
|
14 | <script type="text/javascript" src="../node_modules/sinon/pkg/sinon.js"></script>
|
15 | <script type="text/javascript" src="../node_modules/mocha/mocha.js"></script>
|
16 | <script type="text/javascript" src="../node_modules/proj4/dist/proj4.js"></script>
|
17 | <script type="text/javascript" src="test-extensions.js"></script>
|
18 | |
19 |
|
20 | <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL|always|gated"></script>
|
21 | <script>
|
22 | if (typeof initMochaPhantomJS === 'function') {
|
23 | initMochaPhantomJS()
|
24 | }
|
25 | mocha.setup({
|
26 | ui: 'bdd',
|
27 | bail: false
|
28 | });
|
29 | </script>
|
30 |
|
31 |
|
32 | <script type="text/javascript" src="loader.js"></script>
|
33 |
|
34 | <script type="text/javascript">
|
35 |
|
36 | var runner = mocha.run();
|
37 | if (window.console && console.log) {
|
38 |
|
39 | runner.on('fail', function(test, err) {
|
40 | if (test.duration > test._timeout) {
|
41 | var titles = [];
|
42 | for (var p = test; p; p = p.parent) {
|
43 | if (p.title) {
|
44 | titles.unshift(p.title);
|
45 | }
|
46 | }
|
47 | console.log('Test timed out:', titles.join(' > '));
|
48 | }
|
49 | console.error(test.err.stack);
|
50 | });
|
51 | }
|
52 | </script>
|
53 | |
54 |
|
55 |
|
56 |
|
57 | </body>
|
58 | </html>
|