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

Side by Side Diff: LayoutTests/storage/indexeddb/transaction-abort-expected.txt

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 Test transaction aborts send the proper onabort messages.. 1 Test transaction aborts send the proper onabort messages..
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;
7
8 dbname = "transaction-abort.html" 6 dbname = "transaction-abort.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 store = db.createObjectStore('storeName', null) 9 store = db.createObjectStore('storeName', null)
12 store.add({x: 'value', y: 'zzz'}, 'key') 10 store.add({x: 'value', y: 'zzz'}, 'key')
13 trans = db.transaction(['storeName'], 'readwrite') 11 trans = db.transaction(['storeName'], 'readwrite')
14 trans.onabort = transactionAborted 12 trans.onabort = transactionAborted
15 trans.oncomplete = unexpectedCompleteCallback 13 trans.oncomplete = unexpectedCompleteCallback
16 store = trans.objectStore('storeName') 14 store = trans.objectStore('storeName')
17 store.add({x: 'value2', y: 'zzz2'}, 'key2') 15 store.add({x: 'value2', y: 'zzz2'}, 'key2')
(...skipping 24 matching lines...) Expand all
42 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction has finished. 40 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction has finished.
43 Expecting exception from trans.abort() 41 Expecting exception from trans.abort()
44 PASS Exception was thrown. 42 PASS Exception was thrown.
45 PASS code is DOMException.INVALID_STATE_ERR 43 PASS code is DOMException.INVALID_STATE_ERR
46 PASS ename is 'InvalidStateError' 44 PASS ename is 'InvalidStateError'
47 Exception message: Failed to execute 'abort' on 'IDBTransaction': The transactio n has finished. 45 Exception message: Failed to execute 'abort' on 'IDBTransaction': The transactio n has finished.
48 PASS successfullyParsed is true 46 PASS successfullyParsed is true
49 47
50 TEST COMPLETE 48 TEST COMPLETE
51 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698