Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / intversion-abort-in-initial-upgradeneeded-expected.txt
blob349787b45548d2f275de59d3eda7e48710e16930
1 Test that an abort in the initial upgradeneeded sets version back to 0
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "intversion-abort-in-initial-upgradeneeded.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname, 2)
9 request.onupgradeneeded = upgradeNeeded
10 request.onerror = onError
12 upgradeNeeded():
13 PASS db.version is 2
14 transaction.abort()
16 onAbort():
17 PASS event.target.db.version is 0
18 PASS request.transaction is non-null.
20 onError():
21 PASS request is event.target
22 PASS event.target.result is undefined.
23 PASS event.target.error is non-null.
24 PASS event.target.error.name is "AbortError"
25 PASS request.transaction is null
26 PASS successfullyParsed is true
28 TEST COMPLETE