Lines Matching refs:db
27 function testTransaction(db, transactionCallback, expectedErrorCodeName) argument
29 db.transaction(transactionCallback,
35 function testTransactionThrowsException(db) argument
37 …testTransaction(db, function(tx) { throw "Exception thrown in transaction callback."; }, "UNKNOWN_…
40 function testTransactionFailureBecauseOfStatementFailure(db) argument
42 testTransaction(db,
48 function testInvalidStatement(db) argument
50 testTransaction(db, function(tx) { tx.executeSql("BAD STATEMENT"); }, "SYNTAX_ERR");
53 function testIncorrectNumberOfBindParameters(db) argument
55 testTransaction(db,
62 function testBindParameterOfWrongType(db) argument
67 testTransaction(db, function(tx) {
73 function testQuotaExceeded(db) argument
75 testTransaction(db,
82 function testVersionMismatch(db) argument
86 db.transaction(function(tx) {
95 testTransaction(db,
106 var db = openDatabaseWithSuffix("SQLErrorCodesTest", "1.0", "Tests the error codes.", 1);
107 testTransactionThrowsException(db);
108 testTransactionFailureBecauseOfStatementFailure(db);
109 testInvalidStatement(db);
110 testIncorrectNumberOfBindParameters(db);
111 testBindParameterOfWrongType(db);
112 testQuotaExceeded(db);
113 testVersionMismatch(db);