Index: gears/test/testcases/database2_tests.js =================================================================== --- gears/test/testcases/database2_tests.js (revision 1639) +++ gears/test/testcases/database2_tests.js (working copy) @@ -136,6 +136,21 @@ // valid arguments tx.executeSql('SELECT * FROM Pages WHERE pageId = ? and version = ?', [ 1972, '1.0.0.0' ]); + // arguments with null + tx.executeSql('SELECT * FROM Pages WHERE pageId = ? and version = ?', + [ 1972, null ]); + // null arguments + tx.executeSql('SELECT * FROM Pages', null); + // invalid arguments: function + assertError(function() { + tx.executeSql('SELECT * FROM Pages WHERE pageId = ? and version = ?', + [ function() {}, '1.0.0.0' ]); + }, null, 'Function arguments are not allowed'); + // invalid arguments: object + assertError(function() { + tx.executeSql('SELECT * FROM Pages WHERE pageId = ? and version = ?', + [ { you: 'is wrong' }, '1.0.0.0' ]); + }, null, 'Function arguments are not allowed'); }); }); }