Bug 1149815 - Fix IndexedDB tests to expect InvalidStateError rather than TransactionInactiveError when touching a deleted IDBObjectStore or IDBIndex object, r=janv.
authorBen Turner <bent.mozilla@gmail.com>
Sat, 20 Jun 2015 09:08:33 -0700
changeset 280662 080de2337bb9dc5684c4e66a4c833c13f2a042c8
parent 280661 a9e5be3e74b2f1a9bc4a2943e5ae45a3ebe5940c
child 280663 81a1630c8660b71a5b22eb04f9619f121ab974ca
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjanv
bugs1149815
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1149815 - Fix IndexedDB tests to expect InvalidStateError rather than TransactionInactiveError when touching a deleted IDBObjectStore or IDBIndex object, r=janv.
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>