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

Unified Diff: LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js

Issue 291243003: IndexedDB: Test updates for store/index deletion race (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Enable tests 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
« no previous file with comments | « LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js
diff --git a/LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js b/LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js
index 2704f19e47f00516fe411117cb72eb518a5a5a1c..887d02428be329eed91c3990fe736613bdc45bd5 100644
--- a/LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js
+++ b/LayoutTests/storage/indexeddb/resources/createIndex-after-failure.js
@@ -30,17 +30,16 @@ function createIndex() {
evalAndExpectException("objectStore.deleteIndex('index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
debug("Now requesting object2");
var req3 = objectStore.get("object2");
- req3.onsuccess = deleteIndexAfterGet;
- req3.onerror = unexpectedErrorCallback;
+ req3.onsuccess = unexpectedSuccessCallback;
+ req3.onerror = deleteIndexAfterGetError;
debug("now we wait.");
}
-function deleteIndexAfterGet() {
- // so we will delete it next, but it should already be gone... right?
- debug("deleteIndexAfterGet()");
+function deleteIndexAfterGetError() {
+ debug("deleteIndexAfterGetError()");
// the index should still be gone, and this should not crash.
- evalAndExpectException("objectStore.deleteIndex('index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
- evalAndExpectException("objectStore.deleteIndex('index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
+ evalAndExpectException("objectStore.deleteIndex('index')", "0", "'TransactionInactiveError'");
cmumford 2014/05/23 19:57:20 Just curious: why two calls to deleteIndex?
jsbell 2014/05/23 20:09:10 I believe this test started life as a regression t
+ evalAndExpectException("objectStore.deleteIndex('index')", "0", "'TransactionInactiveError'");
finishJSTest();
-}
+}
« no previous file with comments | « LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698