mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-13 12:35:09 -05:00
Check returned text data in test
This commit is contained in:
parent
5657b83420
commit
f1a4a0cc62
@ -59,11 +59,12 @@
|
||||
equal(res.rows.item(0).cnt, 1, "select count");
|
||||
});
|
||||
|
||||
tx.executeSql("SELECT data_num from test_table;", [], function(tx, res) {
|
||||
tx.executeSql("SELECT * from test_table;", [], function(tx, res) {
|
||||
start(1);
|
||||
|
||||
equal(res.rows.length, 1, "SELECT res rows length");
|
||||
equal(res.rows.item(0).data_num, 100, "SELECT data_num");
|
||||
equal(res.rows.item(0).data_num, 100, "SELECT res data_num");
|
||||
equal(res.rows.item(0).data, "test", "SELECT res data");
|
||||
});
|
||||
|
||||
tx.executeSql("UPDATE test_table SET data_num = ? WHERE data_num = 100", [101], function(tx, res) {
|
||||
|
Loading…
Reference in New Issue
Block a user