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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-abort.js

Issue 1362953003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 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: third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-abort.js
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-abort.js b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-abort.js
index 3cd2a825ca2dd8ca075db43971649a7919c29eb6..c832778b1447e06287f40a3570a9e5d26988d6bc 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-abort.js
+++ b/third_party/WebKit/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