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

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: Don't capture full stack unless devtools is visible Created 6 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 | 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 83: 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 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB; 9 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
8 10
9 dbname = "transaction-error.html" 11 dbname = "transaction-error.html"
10 indexedDB.deleteDatabase(dbname) 12 indexedDB.deleteDatabase(dbname)
11 indexedDB.open(dbname) 13 indexedDB.open(dbname)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 PASS trans.error.name is 'ConstraintError' 66 PASS trans.error.name is 'ConstraintError'
65 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements. 67 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements.
66 PASS trans.error.message is non-null. 68 PASS trans.error.message is non-null.
67 Note: This fails because of http://wkb.ug/37327 69 Note: This fails because of http://wkb.ug/37327
68 PASS trans.error.message.indexOf(indexName) is not -1 70 PASS trans.error.message.indexOf(indexName) is not -1
69 71
70 PASS successfullyParsed is true 72 PASS successfullyParsed is true
71 73
72 TEST COMPLETE 74 TEST COMPLETE
73 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698