diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-23 00:36:58 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-23 00:36:58 (GMT) |
commit | 3a46e59a71487c375b303cd982707dc0743f6f93 (patch) | |
tree | 1978f27292e6dd02c20813864e1a11201b8d9491 /tests/auto/declarative/sql/data/reopen2.js | |
parent | 3bfdd96b99aa346d055d97c648f8f553d557f998 (diff) | |
parent | 5f0a3cd6dbae87b5944c3cb31fdc294fc0ac1163 (diff) | |
download | Qt-3a46e59a71487c375b303cd982707dc0743f6f93.zip Qt-3a46e59a71487c375b303cd982707dc0743f6f93.tar.gz Qt-3a46e59a71487c375b303cd982707dc0743f6f93.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative/sql/data/reopen2.js')
-rw-r--r-- | tests/auto/declarative/sql/data/reopen2.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/sql/data/reopen2.js b/tests/auto/declarative/sql/data/reopen2.js new file mode 100644 index 0000000..4f7248f --- /dev/null +++ b/tests/auto/declarative/sql/data/reopen2.js @@ -0,0 +1,16 @@ +function test() { + var r="transaction_not_finished"; + var db = openDatabaseSync("QmlTestDB-reopen", "1.0", "Test database from Qt autotests", 1000000); + + db.transaction( + function(tx) { + var rs = tx.executeSql('SELECT * FROM Greeting'); + if (rs.rows.item(0).salutation == 'hello') + r = "passed"; + else + r = "FAILED"; + } + ); + + return r; +} |