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

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: 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/lazy-index-population.html
diff --git a/LayoutTests/storage/indexeddb/lazy-index-population.html b/LayoutTests/storage/indexeddb/lazy-index-population.html
index aae18ab543b3148e9dd5c2c2bb2506f08400d853..17c6914bfd92f7f2db85534b4b27e1fed73f987c 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");
};
@@ -87,8 +89,10 @@ function verifyCreateThenPut()
};
}
-function verifyPutThenCreate()
+function verifyPutThenCreate(evt)
{
+ evt.preventDefault();
+
debug("");
debug("Verify that uniqueness constraints are enforced when index is created after puts:");
@@ -129,8 +133,10 @@ function verifyPutThenCreate()
};
}
-function verifyPutThenCreateThenPut()
+function verifyPutThenCreateThenPut(evt)
{
+ evt.preventDefault();
+
debug("");
debug("Verify that uniqueness constraints are enforced when index is created between puts:");
@@ -158,6 +164,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