OLD | NEW |
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 Loading... |
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 |
OLD | NEW |