diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-15 19:07:01 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-15 19:07:01 (GMT) |
commit | 6ef372759b94a36cdcd3b31bef5cb94a43372dab (patch) | |
tree | ab3d3188b27cf1ddbc6e882bf392c8038c4acfe1 /tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js | |
parent | 07f724cd5abd0548fb32ed3469bde113daf028c4 (diff) | |
parent | 80fd32f23ef7bc2b7d1c1980b07b8c66520cd7f7 (diff) | |
download | Qt-6ef372759b94a36cdcd3b31bef5cb94a43372dab.zip Qt-6ef372759b94a36cdcd3b31bef5cb94a43372dab.tar.gz Qt-6ef372759b94a36cdcd3b31bef5cb94a43372dab.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (29 commits)
Small calculator fix.
Improve declarative calculator example.
Update examples autotest to use the runtime directly
Support valuetypes as method return values
Compile without Qt3 support.
Doc
Simplify dynamic resource loading to avoid cluttering Text API.
Add Component.onDestruction attached property
Use qmlInfo for image loading errors, not qWarning().
Visual test updates.
Rename section so that it's not linked to by references to "JavaScript"
Doc improvements
Comments
Remove unused parameter
Correctly resolve, and load, IMG tags in Text element.
Rename "sql" test so autotester doesn't get confused.
Should work now, don't skip.
ignore autotester logs
Rename the ridiculous QDeclarativeDeclarativeData -> QDeclarativeData
Rename QDeclarativeData -> QAbstractDeclarativeData
...
Diffstat (limited to 'tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js')
-rw-r--r-- | tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js b/tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js new file mode 100644 index 0000000..0ab2a35 --- /dev/null +++ b/tests/auto/declarative/qdeclarativesqldatabase/data/error-creation.js @@ -0,0 +1,14 @@ +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.code != SQLException.VERSION_ERR) + r = "WRONG ERROR CODE="+err.code; + else if (err.message != "SQL: database version mismatch") + r = "WRONG ERROR="+err.message; + else + r = "passed"; + } + return r; +} |