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

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

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/resources/transaction-event-propagation.js
diff --git a/LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js b/LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js
index 8d9b5fbad6eb643d48e43d8a8510451cbf968b70..80a98dea58bbe712c0e411df7fbb498be684e34c 100644
--- a/LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js
+++ b/LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js
@@ -5,7 +5,7 @@ if (this.importScripts) {
description("Test event propogation on IDBTransaction.");
-indexedDBTest(prepareDatabase, startTest);
+indexedDBTest(prepareDatabase, verifyAbort);
function prepareDatabase()
{
db = event.target.result;
@@ -16,7 +16,7 @@ function prepareDatabase()
request.onerror = unexpectedErrorCallback;
}
-function startTest()
+function verifyAbort()
{
debug("Verifing abort");
trans = evalAndLog("trans = db.transaction(['storeName'], 'readwrite')");
@@ -28,6 +28,7 @@ function startTest()
evalAndLog("db.addEventListener('complete', unexpectedCompleteCallback, false)");
store = evalAndLog("store = trans.objectStore('storeName')");
evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
+ expectError();
dbCaptureFired = false;
abortFired = false;
dbBubbleFired1 = false;
@@ -67,6 +68,7 @@ function dbAbortBubbleCallback()
shouldBe("event.target", "trans");
shouldBe("event.currentTarget", "db");
dbBubbleFired1 = true;
+
debug("");
debug("Verifing success.");
trans = evalAndLog("trans = db.transaction(['storeName'], 'readwrite')");

Powered by Google App Engine
This is Rietveld 408576698