chromium/third_party/blink/web_tests/storage/indexeddb/intversion-encoding-expected.txt

Test that integer versions are encoded/decoded consistently.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

dbname = "intversion-encoding.html"
indexedDB.deleteDatabase(dbname)


openFirstTime():
version = 1
upgradeNeededFired = false
request = indexedDB.open(dbname, version)
upgradeNeededFired = true
db = request.result
PASS db.version is version
PASS upgradeNeededFired is true
db = request.result
PASS db.version is version
db.close()


openSecondTime():
request = indexedDB.open(dbname)
db = request.result
PASS db.version is version
db.close()


openFirstTime():
version = 127
upgradeNeededFired = false
request = indexedDB.open(dbname, version)
upgradeNeededFired = true
db = request.result
PASS db.version is version
PASS upgradeNeededFired is true
db = request.result
PASS db.version is version
db.close()


openSecondTime():
request = indexedDB.open(dbname)
db = request.result
PASS db.version is version
db.close()


openFirstTime():
version = 128
upgradeNeededFired = false
request = indexedDB.open(dbname, version)
upgradeNeededFired = true
db = request.result
PASS db.version is version
PASS upgradeNeededFired is true
db = request.result
PASS db.version is version
db.close()


openSecondTime():
request = indexedDB.open(dbname)
db = request.result
PASS db.version is version
db.close()


openFirstTime():
version = 2147483648
upgradeNeededFired = false
request = indexedDB.open(dbname, version)
upgradeNeededFired = true
db = request.result
PASS db.version is version
PASS upgradeNeededFired is true
db = request.result
PASS db.version is version
db.close()


openSecondTime():
request = indexedDB.open(dbname)
db = request.result
PASS db.version is version
db.close()


openFirstTime():
version = 9007199254740991
upgradeNeededFired = false
request = indexedDB.open(dbname, version)
upgradeNeededFired = true
db = request.result
PASS db.version is version
PASS upgradeNeededFired is true
db = request.result
PASS db.version is version
db.close()


openSecondTime():
request = indexedDB.open(dbname)
db = request.result
PASS db.version is version
db.close()


openFirstTime():
PASS successfullyParsed is true

TEST COMPLETE