Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: LayoutTests/storage/indexeddb/version-change-exclusive-expected.txt

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Ensure pending open waits for version change transaction to complete. 1 Ensure pending open waits for version change transaction to complete.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "version-change-exclusive.html" 8 dbname = "version-change-exclusive.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 calling open() - callback should wait until VERSION_CHANGE transaction is comple te 11 calling open() - callback should wait until VERSION_CHANGE transaction is comple te
12 indexedDB.open(dbname) 12 indexedDB.open(dbname)
13 setVersion() callback 13 setVersion() callback
14 starting work in VERSION_CHANGE transaction 14 starting work in VERSION_CHANGE transaction
15 self.state = 'VERSION_CHANGE started' 15 self.state = 'VERSION_CHANGE started'
16 store = db.createObjectStore('test-store') 16 store = db.createObjectStore('test-store')
17 Expecting exception from db.transaction('test-store') 17 Expecting exception from db.transaction('test-store')
18 PASS Exception was thrown. 18 PASS Exception was thrown.
19 PASS code is DOMException.INVALID_STATE_ERR 19 PASS code is DOMException.INVALID_STATE_ERR
20 PASS ename is 'InvalidStateError' 20 PASS ename is 'InvalidStateError'
21 Exception message: A version change transaction is running. 21 Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version c hange transaction is running.
22 store.put(0, 0) 22 store.put(0, 0)
23 in put's onsuccess 23 in put's onsuccess
24 store.put(1, 1) 24 store.put(1, 1)
25 in put's onsuccess 25 in put's onsuccess
26 store.put(2, 2) 26 store.put(2, 2)
27 in put's onsuccess 27 in put's onsuccess
28 store.put(3, 3) 28 store.put(3, 3)
29 in put's onsuccess 29 in put's onsuccess
30 store.put(4, 4) 30 store.put(4, 4)
31 in put's onsuccess 31 in put's onsuccess
32 store.put(5, 5) 32 store.put(5, 5)
33 in put's onsuccess 33 in put's onsuccess
34 store.put(6, 6) 34 store.put(6, 6)
35 in put's onsuccess 35 in put's onsuccess
36 store.put(7, 7) 36 store.put(7, 7)
37 in put's onsuccess 37 in put's onsuccess
38 store.put(8, 8) 38 store.put(8, 8)
39 in put's onsuccess 39 in put's onsuccess
40 store.put(9, 9) 40 store.put(9, 9)
41 in put's onsuccess 41 in put's onsuccess
42 ending work in VERSION_CHANGE transaction 42 ending work in VERSION_CHANGE transaction
43 self.state = 'VERSION_CHANGE finished' 43 self.state = 'VERSION_CHANGE finished'
44 open() callback - this should appear after VERSION_CHANGE transaction ends 44 open() callback - this should appear after VERSION_CHANGE transaction ends
45 PASS self.state is "VERSION_CHANGE finished" 45 PASS self.state is "VERSION_CHANGE finished"
46 PASS successfullyParsed is true 46 PASS successfullyParsed is true
47 47
48 TEST COMPLETE 48 TEST COMPLETE
49 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698