Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: LayoutTests/storage/indexeddb/resources/transaction-error.js

Issue 23477062: Have toDOMStringList() use the V8TRYCATCH_FOR_V8STRINGRESOURCE() macro (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/transaction-error-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/transaction-error-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698