UNPKG

1.18 kBHTMLView Raw
1<!doctype html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <title>localForage callWhenReady Tests!</title>
6
7 <link rel="stylesheet" href="/bower_components/mocha/mocha.css">
8
9 <script src="/bower_components/assert/assert.js"></script>
10 <script src="/bower_components/mocha/mocha.js"></script>
11
12 <script src="/bower_components/expect/index.js"></script>
13
14 <!-- require.js -->
15 <script src="/bower_components/requirejs/require.js"></script>
16
17 <!-- Modernizr -->
18 <script src="/bower_components/modernizr/modernizr.js"></script>
19
20 <!-- Apply "root" level beforeEach hook to run test suite against
21 callWhenReady API method stubs -->
22 <script src="/test/test.callwhenready.js"></script>
23
24 <!-- Test runner -->
25 <script>
26 // Skip irrelevant config tests by mapping them to API tests so that
27 // they will not be called.
28 requirejs.config({
29 map: {
30 '*': {
31 '/test/test.config.js': '/test/test.api.js'
32 }
33 }
34 });
35 </script>
36 <script src="/test/runner.js"></script>
37 </head>
38 <body>
39 <div id="mocha"></div>
40 </body>
41</html>