summaryrefslogtreecommitdiff
path: root/tests/auto/qabstractxmlnodemodel
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead code from autotests.Jason McDonald2011-10-122-7/+0
| | | | | | | | | | | tests/auto/xmlpatterns.pri ensured that QTEST_XMLPATTERNS was always defined, so the preprocessor directives using this define were redundant. Change-Id: Id21d8b5cc4586ce0e92c1ee4a22c582eb3f76245 Reviewed-on: http://codereview.qt-project.org/6493 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-071-1/+3
| | | | | | | | | | | qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Change-Id: I7e6c67674ec669ad1ba7286648c7b4a501f4201c Reviewed-on: http://codereview.qt-project.org/6185 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update licenseheader text in source files for qtxmlpatterns Qt moduleJyri Tahtela2011-05-244-68/+68
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Remove Q_ASSERT's from qabstractxmlnodemodel testJason McDonald2011-05-181-8/+7
| | | | | | | | | Report fatal errors rather than ignoring the errors in non-debug builds. Change-Id: I5d2f20113cbca11e272cf8fc2591e38b94d6853b Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 6f5751c45868a6dde51647462a331d49f848f2f0)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-3/+3
| | | | | | | | | | | | If new "axis" enum values are added in the future, the test should report a meaningful warning in the test output rather than aborting with a meaningless message in debug builds and failing silently in release builds. Change-Id: Ifdc7a9492c3ee196d7f0e6958eec34693efd244f Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit f859ab10715a3cb69aa3f03574a046c886d34b44)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-2/+5
| | | | | | | | | | | Instead of aborting in debug builds and failing silently in release builds, print a meaningful warning message into the test output and return a null QVariant. Change-Id: Idcd70f5cb01528b522d84e391f6f8692a189f420 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit a0496d1db09dfaa6a2b31a5c23e154de7b4a2eb7)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-1/+4
| | | | | | | | | | | | Rather than aborting in a debug build and failing silently in a release build, report a warning and return a null model index if the first (root) node of the model is not a document. The null return value will cause initTestCase() to fail gracefully. Change-Id: I15e9456929bbb3f0bd50d30333c49143b6f0aad7 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit a80ecc34565d6efc474bca2322046f4200ad51db)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-2/+4
| | | | | | | | | | | Instead of aborting in a debug build and failing silently in a release build when the internal state of the model is incorrect, report a meaningful fatal error in all builds. Change-Id: I64ca4dde070cb7fbe69684a36092d53e5b84d80a Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 68027b186fe547a5579d07480e097bfb69c79de9)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-2/+2
| | | | | | | | | | | Constructing a model index from a null pointer will cause the test to crash later. Instead of crashing this way in a release build and aborting in a debug build, report the fatal error in all builds. Change-Id: I43ce4c8fa48caa05aaf09ac3c1453d35a2de65bf Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 57fd8c5ac803398238982c4b74bc5ce048671201)
* Remove Q_ASSERT from qabstractxmlnodemodel testJason McDonald2011-05-181-1/+5
| | | | | | | | | | | When no content can be loaded to create the model, return a null model (which will make the test fail gracefully) rather than aborting in a debug build and failing silently in a release build. Change-Id: I28f0bb92c617c8dafd1089d0b3dafcfef0c0da53 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 416d45caa9feefe8337795adc4b93a8148d57a3a)
* Fix compiler warnings in qabstractxmlnodemodel testJason McDonald2011-05-181-3/+2
| | | | | | | | | The first parameter to qWarning() should be a format string to avoid problems caused by the data string containing format specifiers. Change-Id: Ib40c0dcd766203fc41182a50680733fff9035045 Reviewed-by: Rohan McGovern (cherry picked from commit 4e7194ba2fd29dc38adc5580cb85b6eed238ff64)
* Initial import from the monolithic Qt.Qt by Nokia2011-04-277-0/+1035
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12