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

Side by Side Diff: LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt

Issue 14146002: Remove all generic expected results for which a generic Chromium expected result exists (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
(Empty)
1 CONSOLE MESSAGE: this exception is expected
2 CONSOLE MESSAGE: this exception is expected
3 Test exceptions in IDBRequest handlers cause aborts.
4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6
7
8 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
9
10 dbname = "exception-in-event-aborts.html"
11 indexedDB.deleteDatabase(dbname)
12 indexedDB.open(dbname)
13 store = db.createObjectStore('storeName', null)
14 store.add({x: 'value', y: 'zzz'}, 'key')
15
16 trans = db.transaction(['storeName'], 'readwrite')
17 trans.onabort = transactionAborted1
18 trans.oncomplete = unexpectedCompleteCallback
19 store = trans.objectStore('storeName')
20 store.add({x: 'value2', y: 'zzz2'}, 'key2')
21
22 event.preventDefault()
23 Throwing
24
25 PASS Got expected error: 'this exception is expected'
26 PASS The transaction was aborted.
27 trans = db.transaction(['storeName'], 'readwrite')
28 trans.onabort = transactionAborted2
29 trans.oncomplete = unexpectedCompleteCallback
30 store = trans.objectStore('storeName')
31 store.add({x: 'value', y: 'zzz'}, 'key')
32
33 event.preventDefault()
34 Throwing
35
36 PASS Got expected error: 'this exception is expected'
37 PASS The transaction was aborted.
38 trans = db.transaction(['storeName'], 'readwrite')
39 trans.onabort = unexpectedAbortCallback
40 trans.oncomplete = transactionCompleted1
41 store = trans.objectStore('storeName')
42 store.add({x: 'value3', y: 'zzz3'}, 'key3')
43
44 event.preventDefault()
45 Throwing within a try block
46
47 PASS The transaction completed.
48 trans = db.transaction(['storeName'], 'readwrite')
49 trans.onabort = unexpectedAbortCallback
50 trans.oncomplete = transactionCompleted2
51 store = trans.objectStore('storeName')
52 store.add({x: 'value4', y: 'zzz4'}, 'key4')
53 PASS key4 added
54
55 PASS The transaction completed.
56
57 PASS successfullyParsed is true
58
59 TEST COMPLETE
60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698