3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
7
8 dbname = dbname + Date.now()
9
10 openFirstTime():
11 indexedDB.open(dbname, 1)
12 db = request.result
13 upgradeNeededFired = true
14 PASS db.version is 1
15 PASS db.objectStoreNames.length is 0
16 db.createObjectStore('store')
17 PASS upgradeNeededFired is true
18 db = request.result
19 PASS db.version is 1
20 PASS db.objectStoreNames.length is 1
21 db.close()
22
23 openSecondTime():
24 indexedDB.open(dbname, 1)
25 db = request.result
26 PASS db.version is 1
27 PASS db.objectStoreNames.length is 1
28 db.close()
29
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33