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

Unified Diff: LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.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/error-causes-abort-by-default.js
diff --git a/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js b/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js
index e4126506ae31388a1dfe5fac1651d1c25fbcff99..48d0b5fd7a47c5010a1c736f6f850ee90a734966 100644
--- a/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js
+++ b/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js
@@ -29,7 +29,6 @@ function addData()
function addMore()
{
-
request = evalAndLog("event.target.source.add({x: 'value', y: 'zzz'}, 'key')");
request.onsuccess = unexpectedSuccessCallback;
request.addEventListener("error", preventTheDefault);
@@ -52,6 +51,7 @@ function transactionCompleted()
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
request.onsuccess = unexpectedSuccessCallback;
request.onerror = allowDefault;
+ expectError();
}
function allowDefault()
@@ -70,6 +70,7 @@ function transactionAborted1()
store = evalAndLog("store = trans.objectStore('storeName')");
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
request.onsuccess = unexpectedSuccessCallback;
+ expectError();
debug("Omitting an onerror handler");
}

Powered by Google App Engine
This is Rietveld 408576698