mirror of
https://github.com/localForage/localForage.git
synced 2026-01-25 14:44:26 +00:00
42 lines
1.1 KiB
HTML
42 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>localForage Component Tests!</title>
|
|
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
|
|
<!-- test harness -->
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
<script src="../node_modules/expect.js/index.js"></script>
|
|
<script src="../node_modules/ym-modernizr/dist/modernizr-build.js"></script>
|
|
|
|
<!-- localForage -->
|
|
<script src="./component.js"></script>
|
|
<script>
|
|
/* jshint unused: false */
|
|
var localforage = require('localforage');
|
|
</script>
|
|
|
|
<!-- specs -->
|
|
<script>mocha.setup('bdd')</script>
|
|
<script src="./test.api.js"></script>
|
|
<script src="./test.config.js"></script>
|
|
<script src="./test.datatypes.js"></script>
|
|
<script src="./test.drivers.js"></script>
|
|
<script src="./test.iframes.js"></script>
|
|
<script src="./test.webworkers.js"></script>
|
|
|
|
<!-- run test -->
|
|
<script>
|
|
if (window.mochaPhantomJS) {
|
|
mochaPhantomJS.run();
|
|
} else {
|
|
mocha.run();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|