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

Unified Diff: LayoutTests/storage/indexeddb/resources/transaction-error.js

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/indexeddb/resources/transaction-error.js
diff --git a/LayoutTests/storage/indexeddb/resources/transaction-error.js b/LayoutTests/storage/indexeddb/resources/transaction-error.js
index f0c839ff40c10ccfe5b954976db285178808705c..a5fd68dab1f3050366675c8766d6eb0f563525b0 100644
--- a/LayoutTests/storage/indexeddb/resources/transaction-error.js
+++ b/LayoutTests/storage/indexeddb/resources/transaction-error.js
@@ -46,6 +46,7 @@ function testErrorFromRequest()
evalAndLog("request = trans.objectStore('storeName').add('value2', 'key')");
request.onsuccess = unexpectedSuccessCallback;
request.onerror = function() {
+ expectError();
shouldBe("request.error.name", "'ConstraintError'");
evalAndLog("request_error = request.error");
};

Powered by Google App Engine
This is Rietveld 408576698