Bug 1149815 - Part 5: Fix IndexedDB tests to expect InvalidStateError rather than TransactionInactiveError when touching a deleted IDBObjectStore or IDBIndex object
authorJames Graham <james@hoppipolla.co.uk>
Wed, 17 Jun 2015 10:46:22 +0100
changeset 326824 6e4509a7a36b1dca2d272f044fe6e3d978d4d1f0
parent 326823 983652ea25803da1f68f2edcca038d477cb28a49
child 326825 86eb780afb2aefba0c880755e8019f9fe30f4f9a
push id10169
push userdminor@mozilla.com
push dateThu, 28 Jan 2016 13:10:48 +0000
bugs1149815
milestone41.0a1
Bug 1149815 - Part 5: Fix IndexedDB tests to expect InvalidStateError rather than TransactionInactiveError when touching a deleted IDBObjectStore or IDBIndex object
testing/web-platform/tests/IndexedDB/idbindex_get7.htm
testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm
testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm
testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm
--- a/testing/web-platform/tests/IndexedDB/idbindex_get7.htm
+++ b/testing/web-platform/tests/IndexedDB/idbindex_get7.htm
@@ -15,15 +15,15 @@
     open_rq.onupgradeneeded = function(e) {
         db = e.target.result;
         var store = db.createObjectStore("store", { keyPath: "key" });
         var index = store.createIndex("index", "indexedProperty");
         store.add({ key: 1, indexedProperty: "data" });
 
         e.target.transaction.abort();
 
-        assert_throws("TransactionInactiveError", function(){
+        assert_throws("InvalidStateError", function(){
             index.get("data");
         });
         t.done();
     }
 </script>
 
--- a/testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm
+++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm
@@ -15,15 +15,15 @@
     open_rq.onupgradeneeded = function(e) {
         db = e.target.result;
         var store = db.createObjectStore("store", { keyPath: "key" });
         var index = store.createIndex("index", "indexedProperty");
         store.add({ key: 1, indexedProperty: "data" });
 
         e.target.transaction.abort();
 
-        assert_throws("TransactionInactiveError", function(){
+        assert_throws("InvalidStateError", function(){
             index.getKey("data");
         });
         t.done();
     }
 </script>
 
--- a/testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm
+++ b/testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm
@@ -15,15 +15,15 @@
     open_rq.onupgradeneeded = function(e) {
         db = e.target.result;
         var store = db.createObjectStore("store", { keyPath: "key" });
         var index = store.createIndex("index", "indexedProperty");
         store.add({ key: 1, indexedProperty: "data" });
 
         e.target.transaction.abort();
 
-        assert_throws("TransactionInactiveError", function(){
+        assert_throws("InvalidStateError", function(){
             index.openCursor();
         });
         t.done();
     }
 </script>
 
--- a/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm
+++ b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm
@@ -15,15 +15,15 @@
     open_rq.onupgradeneeded = function(e) {
         db = e.target.result;
         var store = db.createObjectStore("store", { keyPath: "key" });
         var index = store.createIndex("index", "indexedProperty");
         store.add({ key: 1, indexedProperty: "data" });
 
         e.target.transaction.abort();
 
-        assert_throws("TransactionInactiveError", function(){
+        assert_throws("InvalidStateError", function(){
             index.openKeyCursor();
         });
         t.done();
     }
 </script>