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

Unified Diff: LayoutTests/storage/indexeddb/resources/transaction-abort.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-abort.js
diff --git a/LayoutTests/storage/indexeddb/resources/transaction-abort.js b/LayoutTests/storage/indexeddb/resources/transaction-abort.js
index 3cd2a825ca2dd8ca075db43971649a7919c29eb6..c832778b1447e06287f40a3570a9e5d26988d6bc 100644
--- a/LayoutTests/storage/indexeddb/resources/transaction-abort.js
+++ b/LayoutTests/storage/indexeddb/resources/transaction-abort.js
@@ -33,8 +33,10 @@ function startTest()
abortFired = false;
}
-function firstAdd()
+function firstAdd(evt)
{
+ evt.preventDefault();
+
shouldBe("event.target.error.name", "'AbortError'");
shouldBeNull("trans.error");
shouldBeFalse("firstError");
@@ -45,8 +47,10 @@ function firstAdd()
evalAndExpectException("store.add({x: 'value4', y: 'zzz4'}, 'key4')", "0", "'TransactionInactiveError'");
}
-function secondAdd()
+function secondAdd(evt)
{
+ evt.preventDefault();
+
shouldBe("event.target.error.name", "'AbortError'");
shouldBeNull("trans.error");
shouldBeTrue("firstError");

Powered by Google App Engine
This is Rietveld 408576698