summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/sql/data/error-creation.js
blob: 92245fd7b40f2feca4622053801a81f06b376ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function test() {
    var r="transaction_not_finished";
    try {
        var db = openDatabaseSync("QmlTestDB-creation", "2.0", "Test database from Qt autotests", 1000000);
    } catch (err) {
        if (err.message == "SQL: database version mismatch")
            r = "passed";
        else
            r = "WRONG ERROR="+err.message;
    }
    return r;
}