1 Test that integer versions are encoded/decoded consistently.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "intversion-encoding.html"
7 indexedDB.deleteDatabase(dbname)
11 upgradeNeededFired = false
12 request = indexedDB.open(dbname, version)
13 upgradeNeededFired = true
15 PASS db.version is version
16 PASS upgradeNeededFired is true
18 PASS db.version is version
22 request = indexedDB.open(dbname)
24 PASS db.version is version
29 upgradeNeededFired = false
30 request = indexedDB.open(dbname, version)
31 upgradeNeededFired = true
33 PASS db.version is version
34 PASS upgradeNeededFired is true
36 PASS db.version is version
40 request = indexedDB.open(dbname)
42 PASS db.version is version
47 upgradeNeededFired = false
48 request = indexedDB.open(dbname, version)
49 upgradeNeededFired = true
51 PASS db.version is version
52 PASS upgradeNeededFired is true
54 PASS db.version is version
58 request = indexedDB.open(dbname)
60 PASS db.version is version
65 upgradeNeededFired = false
66 request = indexedDB.open(dbname, version)
67 upgradeNeededFired = true
69 PASS db.version is version
70 PASS upgradeNeededFired is true
72 PASS db.version is version
76 request = indexedDB.open(dbname)
78 PASS db.version is version
82 version = 9007199254740991
83 upgradeNeededFired = false
84 request = indexedDB.open(dbname, version)
85 upgradeNeededFired = true
87 PASS db.version is version
88 PASS upgradeNeededFired is true
90 PASS db.version is version
94 request = indexedDB.open(dbname)
96 PASS db.version is version
100 PASS successfullyParsed is true