Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / intversion-encoding-expected.txt
blob7e5b57a96dae0e53e316312a2c41ebd4475ccd63
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)
9 openFirstTime():
10 version = 1
11 upgradeNeededFired = false
12 request = indexedDB.open(dbname, version)
13 upgradeNeededFired = true
14 db = request.result
15 PASS db.version is version
16 PASS upgradeNeededFired is true
17 db = request.result
18 PASS db.version is version
19 db.close()
21 openSecondTime():
22 request = indexedDB.open(dbname)
23 db = request.result
24 PASS db.version is version
25 db.close()
27 openFirstTime():
28 version = 127
29 upgradeNeededFired = false
30 request = indexedDB.open(dbname, version)
31 upgradeNeededFired = true
32 db = request.result
33 PASS db.version is version
34 PASS upgradeNeededFired is true
35 db = request.result
36 PASS db.version is version
37 db.close()
39 openSecondTime():
40 request = indexedDB.open(dbname)
41 db = request.result
42 PASS db.version is version
43 db.close()
45 openFirstTime():
46 version = 128
47 upgradeNeededFired = false
48 request = indexedDB.open(dbname, version)
49 upgradeNeededFired = true
50 db = request.result
51 PASS db.version is version
52 PASS upgradeNeededFired is true
53 db = request.result
54 PASS db.version is version
55 db.close()
57 openSecondTime():
58 request = indexedDB.open(dbname)
59 db = request.result
60 PASS db.version is version
61 db.close()
63 openFirstTime():
64 version = 2147483648
65 upgradeNeededFired = false
66 request = indexedDB.open(dbname, version)
67 upgradeNeededFired = true
68 db = request.result
69 PASS db.version is version
70 PASS upgradeNeededFired is true
71 db = request.result
72 PASS db.version is version
73 db.close()
75 openSecondTime():
76 request = indexedDB.open(dbname)
77 db = request.result
78 PASS db.version is version
79 db.close()
81 openFirstTime():
82 version = 9007199254740991
83 upgradeNeededFired = false
84 request = indexedDB.open(dbname, version)
85 upgradeNeededFired = true
86 db = request.result
87 PASS db.version is version
88 PASS upgradeNeededFired is true
89 db = request.result
90 PASS db.version is version
91 db.close()
93 openSecondTime():
94 request = indexedDB.open(dbname)
95 db = request.result
96 PASS db.version is version
97 db.close()
99 openFirstTime():
100 PASS successfullyParsed is true
102 TEST COMPLETE