mirror of
https://github.com/localForage/localForage.git
synced 2026-01-18 14:31:57 +00:00
48 lines
1.1 KiB
HTML
48 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>localForage Tests!</title>
|
|
|
|
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
|
|
|
|
<script src="/bower_components/assert/assert.js"></script>
|
|
<script src="/bower_components/mocha/mocha.js"></script>
|
|
|
|
<script src="/bower_components/expect/index.js"></script>
|
|
|
|
<script>
|
|
// Virtually remove support for the drivers.
|
|
// This has to be done before localforage
|
|
// and Modernizr execute.
|
|
|
|
try {
|
|
window.indexedDB.open = null;
|
|
} catch (error) { }
|
|
|
|
try {
|
|
window.localStorage.setItem = null;
|
|
} catch (error) { }
|
|
|
|
try {
|
|
window.openDatabase = null;
|
|
} catch (error) { }
|
|
</script>
|
|
|
|
<!-- Modernizr -->
|
|
<script src="/bower_components/modernizr/modernizr.js"></script>
|
|
|
|
<!-- Test runner -->
|
|
<script src="/test/runner.js"></script>
|
|
|
|
<!-- localForage -->
|
|
<script src="/dist/localforage.js"></script>
|
|
|
|
<!-- specs -->
|
|
<script src="/test/test.nodriver.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
</body>
|
|
</html>
|