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

Unified Diff: LayoutTests/storage/indexeddb/lazy-index-population-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/indexeddb/lazy-index-population-expected.txt
diff --git a/LayoutTests/storage/indexeddb/lazy-index-population-expected.txt b/LayoutTests/storage/indexeddb/lazy-index-population-expected.txt
index e78a4e61684e39abd3279013acb0330172156108..7f795295a7169862a3a33b0d0ae061daf32153c4 100644
--- a/LayoutTests/storage/indexeddb/lazy-index-population-expected.txt
+++ b/LayoutTests/storage/indexeddb/lazy-index-population-expected.txt
@@ -1,3 +1,6 @@
+CONSOLE ERROR: line 1: ConstraintError: Unable to add key to index 'index1': at least one key does not satisfy the uniqueness requirements.
+CONSOLE ERROR: line 1: ConstraintError: Unable to add key to index 'index2': at least one key does not satisfy the uniqueness requirements.
+CONSOLE ERROR: line 1: ConstraintError: Unable to add key to index 'index4': at least one key does not satisfy the uniqueness requirements.
Verify edge cases that lazy index population in an IndexedDB implementation might reveal.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -19,8 +22,10 @@ request1 received success event
PASS ++state is 1
request2 received error event
PASS ++state is 2
-transaction aborted
+PASS Got expected error: 'ConstraintError: Unable to add key to index 'index1': at least one key does not satisfy the uniqueness requirements.'
PASS ++state is 3
+transaction aborted
+PASS ++state is 4
PASS trans.error.name is 'ConstraintError'
Verify that uniqueness constraints are enforced when index is created before puts:
@@ -37,8 +42,10 @@ request1 (index2) received success event
PASS ++state is 1
request2 (index2) received error event
PASS ++state is 2
-transaction aborted
+PASS Got expected error: 'ConstraintError: Unable to add key to index 'index2': at least one key does not satisfy the uniqueness requirements.'
PASS ++state is 3
+transaction aborted
+PASS ++state is 4
PASS trans.error.name is 'ConstraintError'
Verify that uniqueness constraints are enforced when index is created after puts:
@@ -71,8 +78,10 @@ request1 received success event
PASS ++state is 1
request2 received error event
PASS ++state is 2
-transaction aborted
+PASS Got expected error: 'ConstraintError: Unable to add key to index 'index4': at least one key does not satisfy the uniqueness requirements.'
PASS ++state is 3
+transaction aborted
+PASS ++state is 4
PASS trans.error.name is 'ConstraintError'
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698