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

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

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and linkage fix 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 CONSOLE ERROR: line 82: Uncaught Error: This should *NOT* be caught! 1 CONSOLE ERROR: line 1: ConstraintError: Key already exists in the object store.
2 CONSOLE ERROR: line 84: Uncaught Error: This should *NOT* be caught!
3 CONSOLE ERROR: line 1: ConstraintError: Key already exists in the object store.
2 Test IDBTransaction.error cases. 4 Test IDBTransaction.error cases.
3 5
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 7
6 8
7 dbname = "transaction-error.html" 9 dbname = "transaction-error.html"
8 indexedDB.deleteDatabase(dbname) 10 indexedDB.deleteDatabase(dbname)
9 indexedDB.open(dbname) 11 indexedDB.open(dbname)
10 store = db.createObjectStore('storeName') 12 store = db.createObjectStore('storeName')
11 store.add('value', 'key') 13 store.add('value', 'key')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 PASS trans.error.name is 'ConstraintError' 64 PASS trans.error.name is 'ConstraintError'
63 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements. 65 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements.
64 PASS trans.error.message is non-null. 66 PASS trans.error.message is non-null.
65 Note: This fails because of http://wkb.ug/37327 67 Note: This fails because of http://wkb.ug/37327
66 PASS trans.error.message.indexOf(indexName) is not -1 68 PASS trans.error.message.indexOf(indexName) is not -1
67 69
68 PASS successfullyParsed is true 70 PASS successfullyParsed is true
69 71
70 TEST COMPLETE 72 TEST COMPLETE
71 73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698