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

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

Issue 307653004: IndexedDB: Result of failed request should be |undefined| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/transaction-error-expected.txt
diff --git a/LayoutTests/storage/indexeddb/transaction-error-expected.txt b/LayoutTests/storage/indexeddb/transaction-error-expected.txt
index 7eec1cfd71f217bbb4be047d731dc97fef053c8a..d9f0742a08c37f8c46d38f03191342af9d7ff4bc 100644
--- a/LayoutTests/storage/indexeddb/transaction-error-expected.txt
+++ b/LayoutTests/storage/indexeddb/transaction-error-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE ERROR: line 78: Uncaught Error: This should *NOT* be caught!
+CONSOLE ERROR: line 82: Uncaught Error: This should *NOT* be caught!
Test IDBTransaction.error cases.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -27,6 +27,8 @@ PASS trans.error is null
If the transaction is aborted due to a request error that is not prevented, IDBTransaction.error should match:
trans = db.transaction('storeName', 'readwrite')
request = trans.objectStore('storeName').add('value2', 'key')
+PASS request.result is undefined.
+PASS request.error is non-null.
PASS request.error.name is 'ConstraintError'
request_error = request.error
Transaction received abort event.
@@ -38,6 +40,8 @@ PASS trans.error is request_error
If the transaction is aborted due to an exception thrown from event callback, IDBTransaction.error should be AbortError:
trans = db.transaction('storeName', 'readwrite')
request = trans.objectStore('storeName').add('value2', 'key')
+PASS request.result is undefined.
+PASS request.error is non-null.
PASS request.error.name is 'ConstraintError'
Throwing exception...
Transaction received abort event.
« no previous file with comments | « LayoutTests/storage/indexeddb/resources/transaction-error.js ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698