summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/sql-error-codes.js
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/sql-error-codes.js')
-rw-r--r--LayoutTests/storage/sql-error-codes.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/LayoutTests/storage/sql-error-codes.js b/LayoutTests/storage/sql-error-codes.js
index 9d6f6d3..2d2c97c 100644
--- a/LayoutTests/storage/sql-error-codes.js
+++ b/LayoutTests/storage/sql-error-codes.js
@@ -64,17 +64,10 @@ function testBindParameterOfWrongType(db)
var badString = { };
badString.toString = function() { throw "Cannot call toString() on this object." };
- // JSC will throw an exception when calling badString.toString(). V8 will catch it.
- // So we run this transaction using a custom success callback.
- db.transaction(function(tx) {
+ testTransaction(db, function(tx) {
tx.executeSql("CREATE TABLE IF NOT EXISTS BadBindTypeTest (Foo TEXT)");
tx.executeSql("INSERT INTO BadBindTypeTest VALUES (?)", [badString]);
- }, function(error) {
- transactionErrorCallback(error, "UNKNOWN_ERR");
- }, function() {
- log("The transaction in testBindParameterOfWrongType() was successful.");
- testsRun++;
- });
+ }, "UNKNOWN_ERR");
}
function testQuotaExceeded(db)