Lines Matching refs:function
0 function finishTest()
9 function transactionErrorCallback(error, expectedErrorCodeName)
21 function transactionSuccessCallback()
27 function testTransaction(db, transactionCallback, expectedErrorCodeName)
30 function(error) {
35 function testTransactionThrowsException(db)
37 testTransaction(db, function(tx) { throw "Exception thrown in transaction callback."; }, "UNKNOWN_ERR");
40 function testTransactionFailureBecauseOfStatementFailure(db)
43 function(tx) {
44 tx.executeSql("BAD STATEMENT", [], null, function(tx, error) { return true; });
48 function testInvalidStatement(db)
50 testTransaction(db, function(tx) { tx.executeSql("BAD STATEMENT"); }, "SYNTAX_ERR");
53 function testIncorrectNumberOfBindParameters(db)
56 function(tx) {
62 function testBindParameterOfWrongType(db)
65 badString.toString = function() { throw "Cannot call toString() on this object." };
67 testTransaction(db, function(tx) {
73 function testQuotaExceeded(db)
76 function(tx) {
82 function testVersionMismatch(db)
86 db.transaction(function(tx) {
88 db2.changeVersion("1.0", "2.0", function(tx) { },
89 function(error) {
92 }, function() { });
96 function(tx) {
101 function runTest()