1 Test IndexedDB ordering of pending open calls.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "open-ordering.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname, 2)
11 connection = event.target.result
13 First a delete request, which will defer subsequent opens. The delete itself will be blocked by the open connection.
14 deleteRequest = indexedDB.deleteDatabase(dbname)
16 Now three open requests:
18 request1 = indexedDB.open(dbname, 2)
19 request2 = indexedDB.open(dbname)
20 request3 = indexedDB.open(dbname, 2)
22 Close the connection to unblock the delete
37 PASS JSON.stringify(order) is "[1,2,3]"
38 PASS successfullyParsed is true