|
1 <!DOCTYPE HTML> |
|
2 |
|
3 <!-- |
|
4 This is a IndexedDB WebappRT content mochitest. Since its name is prefixed with |
|
5 webapprt_, this file is picked up by the Mochitest harness. It's just a plain |
|
6 mochitest that runs in the app browser within an app window. |
|
7 --> |
|
8 |
|
9 <html> |
|
10 <head> |
|
11 <meta charset="utf-8"> |
|
12 <script src="/tests/SimpleTest/SimpleTest.js"></script> |
|
13 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
14 </head> |
|
15 <body> |
|
16 <p id="display"> |
|
17 This is the IndexedDB WebappRT content mochitest. |
|
18 </p> |
|
19 <div id="content" style="display: none"></div> |
|
20 <pre id="test"> |
|
21 <script> |
|
22 |
|
23 SimpleTest.waitForExplicitFinish(); |
|
24 |
|
25 var request = indexedDB.open('test'); |
|
26 request.onsuccess = function() { |
|
27 ok(true, "onsuccess should be called"); |
|
28 SimpleTest.finish(); |
|
29 } |
|
30 request.onerror = function() { |
|
31 ok(false, "onerror shouldn't be called"); |
|
32 SimpleTest.finish(); |
|
33 } |
|
34 |
|
35 </script> |
|
36 </pre> |
|
37 </body> |
|
38 </html> |