From 0a5be2de9ea51afc9df3802679972d41619ee619 Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Mon, 29 Jun 2015 21:11:50 +0100 Subject: [PATCH] Fix IndexedDB tests to expect InvalidStateError rather than TransactionInactiveError when touching a deleted IDBObjectStore or IDBIndex object, r=janv. Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1149815 --- IndexedDB/idbindex_get7.htm | 2 +- IndexedDB/idbindex_getKey7.htm | 2 +- IndexedDB/idbindex_openCursor2.htm | 2 +- IndexedDB/idbindex_openKeyCursor3.htm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IndexedDB/idbindex_get7.htm b/IndexedDB/idbindex_get7.htm index a49b0efc6ff3b5..daf0f574968895 100644 --- a/IndexedDB/idbindex_get7.htm +++ b/IndexedDB/idbindex_get7.htm @@ -20,7 +20,7 @@ e.target.transaction.abort(); - assert_throws("TransactionInactiveError", function(){ + assert_throws("InvalidStateError", function(){ index.get("data"); }); t.done(); diff --git a/IndexedDB/idbindex_getKey7.htm b/IndexedDB/idbindex_getKey7.htm index 5a35ebb5c91ace..f41f7635211a84 100644 --- a/IndexedDB/idbindex_getKey7.htm +++ b/IndexedDB/idbindex_getKey7.htm @@ -20,7 +20,7 @@ e.target.transaction.abort(); - assert_throws("TransactionInactiveError", function(){ + assert_throws("InvalidStateError", function(){ index.getKey("data"); }); t.done(); diff --git a/IndexedDB/idbindex_openCursor2.htm b/IndexedDB/idbindex_openCursor2.htm index d39254055f1903..c056abded3ece7 100644 --- a/IndexedDB/idbindex_openCursor2.htm +++ b/IndexedDB/idbindex_openCursor2.htm @@ -20,7 +20,7 @@ e.target.transaction.abort(); - assert_throws("TransactionInactiveError", function(){ + assert_throws("InvalidStateError", function(){ index.openCursor(); }); t.done(); diff --git a/IndexedDB/idbindex_openKeyCursor3.htm b/IndexedDB/idbindex_openKeyCursor3.htm index b4af31724171cd..1f5fd015590ab7 100644 --- a/IndexedDB/idbindex_openKeyCursor3.htm +++ b/IndexedDB/idbindex_openKeyCursor3.htm @@ -20,7 +20,7 @@ e.target.transaction.abort(); - assert_throws("TransactionInactiveError", function(){ + assert_throws("InvalidStateError", function(){ index.openKeyCursor(); }); t.done();