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"); |
}; |