Skip to content

Commit

Permalink
Fix IndexedDB tests to expect InvalidStateError rather than Transacti…
Browse files Browse the repository at this point in the history
…onInactiveError when touching a deleted IDBObjectStore or IDBIndex object, r=janv.

Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1149815
  • Loading branch information
benturner authored and jgraham committed Jun 29, 2015
1 parent 1347ee9 commit 0a5be2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IndexedDB/idbindex_get7.htm
Expand Up @@ -20,7 +20,7 @@

e.target.transaction.abort();

assert_throws("TransactionInactiveError", function(){
assert_throws("InvalidStateError", function(){
index.get("data");
});
t.done();
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/idbindex_getKey7.htm
Expand Up @@ -20,7 +20,7 @@

e.target.transaction.abort();

assert_throws("TransactionInactiveError", function(){
assert_throws("InvalidStateError", function(){
index.getKey("data");
});
t.done();
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/idbindex_openCursor2.htm
Expand Up @@ -20,7 +20,7 @@

e.target.transaction.abort();

assert_throws("TransactionInactiveError", function(){
assert_throws("InvalidStateError", function(){
index.openCursor();
});
t.done();
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/idbindex_openKeyCursor3.htm
Expand Up @@ -20,7 +20,7 @@

e.target.transaction.abort();

assert_throws("TransactionInactiveError", function(){
assert_throws("InvalidStateError", function(){
index.openKeyCursor();
});
t.done();
Expand Down

0 comments on commit 0a5be2d

Please sign in to comment.