OLD | NEW |
1 Test IndexedDB ordering of pending open calls. | 1 Test IndexedDB ordering of pending open calls. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
7 | |
8 dbname = "open-ordering.html" | 6 dbname = "open-ordering.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname, 2) | 8 indexedDB.open(dbname, 2) |
11 | 9 |
12 runTest(): | 10 runTest(): |
13 connection = event.target.result | 11 connection = event.target.result |
14 | 12 |
15 First a delete request, which will defer subsequent opens. The delete itself wil
l be blocked by the open connection. | 13 First a delete request, which will defer subsequent opens. The delete itself wil
l be blocked by the open connection. |
16 deleteRequest = indexedDB.deleteDatabase(dbname) | 14 deleteRequest = indexedDB.deleteDatabase(dbname) |
17 | 15 |
(...skipping 16 matching lines...) Expand all Loading... |
34 | 32 |
35 onRequest3Success(): | 33 onRequest3Success(): |
36 order.push(3) | 34 order.push(3) |
37 | 35 |
38 checkOrder(): | 36 checkOrder(): |
39 PASS JSON.stringify(order) is "[1,2,3]" | 37 PASS JSON.stringify(order) is "[1,2,3]" |
40 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
41 | 39 |
42 TEST COMPLETE | 40 TEST COMPLETE |
43 | 41 |
OLD | NEW |