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

Unified Diff: LayoutTests/storage/indexeddb/resources/request-event-propagation.js

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't capture full stack unless devtools is visible Created 6 years 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/request-event-propagation.js
diff --git a/LayoutTests/storage/indexeddb/resources/request-event-propagation.js b/LayoutTests/storage/indexeddb/resources/request-event-propagation.js
index 893467cf4266cb94cce270c9423a034f5bc751d7..6d814bf048277c97ba4317d020b33723f8668f7c 100644
--- a/LayoutTests/storage/indexeddb/resources/request-event-propagation.js
+++ b/LayoutTests/storage/indexeddb/resources/request-event-propagation.js
@@ -25,6 +25,7 @@ function startTest()
evalAndLog("trans.onerror = allowDefault");
store = evalAndLog("store = trans.objectStore('storeName')");
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
+ expectError();
request.onsuccess = unexpectedSuccessCallback;
handlerFired = false;
}
@@ -54,6 +55,7 @@ function transactionAborted()
evalAndLog("db.addEventListener('success', unexpectedSuccessCallback, false)");
store = evalAndLog("store = trans.objectStore('storeName')");
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
+ expectError();
request.onsuccess = unexpectedSuccessCallback;
request.onerror = errorFiredCallback;
dbCaptureFired = false;

Powered by Google App Engine
This is Rietveld 408576698