forked from localForage/localForage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.nodriver.html
47 lines (36 loc) · 1.13 KB
/
test.nodriver.html
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
<!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>