Index: LayoutTests/storage/indexeddb/resources/transaction-error.js |
diff --git a/LayoutTests/storage/indexeddb/resources/transaction-error.js b/LayoutTests/storage/indexeddb/resources/transaction-error.js |
index 558e23e3314ab65ac3f47d74dbaa59854d45b367..ac9b42167f9a1358108beb4818acc717c7d5bedf 100644 |
--- a/LayoutTests/storage/indexeddb/resources/transaction-error.js |
+++ b/LayoutTests/storage/indexeddb/resources/transaction-error.js |
@@ -14,6 +14,7 @@ function prepareDatabase() |
request.onerror = unexpectedErrorCallback; |
} |
+var nonConvertibleToString = {toString: function() { throw "Exception in toString()"; }}; |
function startTest() |
{ |
debug(""); |
@@ -24,6 +25,10 @@ function startTest() |
shouldBeNull("trans.error"); |
debug(""); |
+ debug("transaction() should throw if one of the DOMStringList items cannot be converted to a String:"); |
+ shouldThrow("db.transaction(['storeName', nonConvertibleToString])", "'Exception in toString()'"); |
+ |
+ debug(""); |
debug("If IDBTransaction.abort() is explicitly called, IDBTransaction.error should be null:"); |
evalAndLog("trans.abort()"); |
trans.oncomplete = unexpectedCompleteCallback; |