IndexedDB: IDBTransaction::abort() should throw DOMException
[WebKit-https.git] / LayoutTests / storage / indexeddb / resources / transaction-abort.js
index 6ade025..c688b63 100644 (file)
@@ -90,6 +90,9 @@ function transactionAborted()
     abortFired = true;
 
     evalAndExpectException("store.add({x: 'value5', y: 'zzz5'}, 'key5')", "IDBDatabaseException.TRANSACTION_INACTIVE_ERR", "'TransactionInactiveError'");
+
+    evalAndExpectException("trans.abort()", "DOMException.INVALID_STATE_ERR", "'InvalidStateError'");
     finishJSTest();
 }