|
1 <!-- |
|
2 Any copyright is dedicated to the Public Domain. |
|
3 http://creativecommons.org/publicdomain/zero/1.0/ |
|
4 --> |
|
5 <html> |
|
6 <head> |
|
7 <title>Indexed Database Test</title> |
|
8 |
|
9 <script type="text/javascript;version=1.7"> |
|
10 function testSteps() |
|
11 { |
|
12 const name = window.location.pathname; |
|
13 |
|
14 let request = indexedDB.open(name, 1); |
|
15 request.onerror = grabEventAndContinueHandler; |
|
16 request.onsuccess = grabEventAndContinueHandler; |
|
17 let event = yield undefined; |
|
18 |
|
19 if (event.type == "success") { |
|
20 testResult = event.target.result; |
|
21 } |
|
22 else { |
|
23 testException = event.target.error.name; |
|
24 } |
|
25 |
|
26 event.preventDefault(); |
|
27 |
|
28 finishTest() |
|
29 yield undefined; |
|
30 } |
|
31 </script> |
|
32 |
|
33 <script type="text/javascript;version=1.7" src="browserHelpers.js"></script> |
|
34 |
|
35 </head> |
|
36 |
|
37 <body onload="runTest();" onunload="finishTestNow();"></body> |
|
38 |
|
39 </html> |