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

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: Include error name Created 6 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
1 CONSOLE ERROR: line 78: Uncaught Error: This should *NOT* be caught! 1 CONSOLE ERROR: line 1: Key already exists in the object store.
2 CONSOLE ERROR: line 79: Uncaught Error: This should *NOT* be caught!
3 CONSOLE ERROR: line 1: 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 PASS trans.error.name is 'ConstraintError' 62 PASS trans.error.name is 'ConstraintError'
61 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements. 63 trans.error.message = Unable to add key to index 'Also test utf8: 漢': at least o ne key does not satisfy the uniqueness requirements.
62 PASS trans.error.message is non-null. 64 PASS trans.error.message is non-null.
63 Note: This fails because of http://wkb.ug/37327 65 Note: This fails because of http://wkb.ug/37327
64 PASS trans.error.message.indexOf(indexName) is not -1 66 PASS trans.error.message.indexOf(indexName) is not -1
65 67
66 PASS successfullyParsed is true 68 PASS successfullyParsed is true
67 69
68 TEST COMPLETE 70 TEST COMPLETE
69 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698