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(); |
-} |
+} |