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

Unified Diff: LayoutTests/storage/indexeddb/lazy-index-population.html

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update testharness-based test to allow onerror Created 6 years, 7 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/lazy-index-population.html
diff --git a/LayoutTests/storage/indexeddb/lazy-index-population.html b/LayoutTests/storage/indexeddb/lazy-index-population.html
index aae18ab543b3148e9dd5c2c2bb2506f08400d853..88d3e20532f6824bef66c69a26437a9cc47d7f05 100644
--- a/LayoutTests/storage/indexeddb/lazy-index-population.html
+++ b/LayoutTests/storage/indexeddb/lazy-index-population.html
@@ -31,6 +31,7 @@ function verifyPreExistingIndex()
request2.onsuccess = unexpectedSuccessCallback;
request2.onerror = function () {
+ expectError();
debug("request2 received error event");
shouldBe("++state", "2");
};
@@ -74,6 +75,7 @@ function verifyCreateThenPut()
request2.onsuccess = unexpectedSuccessCallback;
request2.onerror = function () {
+ expectError();
debug("request2 (index2) received error event");
shouldBe("++state", "2");
};
@@ -94,6 +96,7 @@ function verifyPutThenCreate()
request = evalAndLog("indexedDB.open(dbname, 3)");
request.onerror = verifyPutThenCreateThenPut;
+ expectError();
request.onblocked = unexpectedBlockedCallback;
request.onsuccess = unexpectedSuccessCallback;
request.onupgradeneeded = function() {
@@ -131,6 +134,8 @@ function verifyPutThenCreate()
function verifyPutThenCreateThenPut()
{
+ expectError();
+
debug("");
debug("Verify that uniqueness constraints are enforced when index is created between puts:");
@@ -158,6 +163,7 @@ function verifyPutThenCreateThenPut()
request2.onsuccess = unexpectedSuccessCallback;
request2.onerror = function () {
+ expectError();
debug("request2 received error event");
shouldBe("++state", "2");
};

Powered by Google App Engine
This is Rietveld 408576698