summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed compile of tests using libQtXmlPatternsSDKRohan McGovern2011-08-121-2/+2
| | | | | | | | | Using $$QT_BUILD_TREE is not allowed. Use the correct values. Change-Id: I061c2d02d2d3a1cca114e464aa2a665f1dfa7e01 Reviewed-on: http://codereview.qt.nokia.com/2898 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Fixed compile of qtxmlpatterns against latest qtbase (`qs' macro)Rohan McGovern2011-07-081-5/+3
| | | | | | | | | | ee85e9cc10bc6874c892b09fa54b5dbd79854069 adds a macro qs(str), which breaks some code already using `qs' as a variable name. Change-Id: I92ee0f77499a5c815a940f719febee9d01b843cb Reviewed-on: http://codereview.qt.nokia.com/1331 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Reflect the move of the undo example.Casper van Donderen2011-07-011-1/+1
|
* Fixed failure of tst_qxmlquery::evaluateToReceiverRohan McGovern2011-05-271-1/+1
| | | | | | | | | | | Commit 8f95a19d330480bd86650c3d2e4e147d3bca5789 fixed the "missing Z" of QDateTime::toString for Qt::ISODate (see QTBUG-9698). The testdata for this test should have been updated at the same time, but it was forgotten. Reviewed-by: Jason McDonald Change-Id: I9b03519805533665afac15e0c970ac1c9e5d9ab4 (cherry picked from commit 237c620f6355fc81e85e65b9fd61249b0f77df5a)
* Update licenseheader text in source files for qtxmlpatterns Qt moduleJyri Tahtela2011-05-24126-2154/+2154
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Reduce usage of Q_ASSERT in autotests.Jason McDonald2011-05-181-1/+1
| | | | | | | | | | Using Q_ASSERT does nothing in release-mode builds, and in debug builds it causes tests to terminate prematurely. It is much better to use QVERIFY or QCOMPARE. Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551)
* 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 qxmlquery autotestJason McDonald2011-05-181-3/+2
| | | | | | | | | Report fatal error in all builds not just debug builds. Change-Id: I6c64435d0382a160ac3602e5243fad9d9585f057 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit cb84f3d1a1499485d4c5314b6e94745c6def6888)
* Remove Q_ASSERT's from qxmlquery autotestJason McDonald2011-05-182-4/+11
| | | | | | | | | | Make url validity check part of the regular test logic rather than aborting in debug builds and ignoring the error in release builds. Change-Id: Ic00610c04ee596f519b9d461748b401719cf41c0 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 1acca025082bad566e5fe7078aa41f73316cd40b)
* Remove Q_ASSERT from qxmlquery autotestJason McDonald2011-05-182-1/+8
| | | | | | | | | | Make stream validity check part of the regular test logic rather than aborting in debug builds and ignoring the error in release builds. Change-Id: I07dcba079eecd88bf16672c6019a8d6f5a829fee Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit b841d30f25a87f8aafc4624fe09a3503ddc6ccda)
* 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)
* Remove Q_ASSERT's from xmlpatterns autotestJason McDonald2011-05-181-4/+4
| | | | | | | | | | Verify initial state in initTestCase() rather than asserting in the test class's constructor. Change-Id: Ic7612a5368e35b2abda96828d2a95690baeaf6a9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit edd9d3f64f1532e39a80a2c7a97a2501391b2316)
* tests: fix private header inclusion problems in qtxmlpatterns testsRohan McGovern2011-05-121-14/+15
| | | | | | | | | | | Most xmlpatterns tests use private QtCore and QtXmlPatterns headers, so `QT += core-private xmlpatterns-private' is required. In Qt5, $$QT_SOURCE_TREE refers to the source tree of `qtbase'. Change it to `$$QT.xmlpatterns.sources'. Reviewed-by: Jason McDonald Change-Id: I711585819d2ce5a8b151e76ed79fa13be1f29379
* tests: remove contains(QT_CONFIG,xmlpatterns) conditionalRohan McGovern2011-05-126-17/+5
| | | | | | | | Tests which live within xmlpatterns should not test if xmlpatterns is enabled. It's confusing and unnecessary. Reviewed-by: Jason McDonald Change-Id: Icd459841f7480118502cf5d2cb57cca2d4e600fe
* tests: mark xmlpatternsschemats as a private-testRohan McGovern2011-05-121-0/+1
| | | | | | | This test depends on xmlpatternssdk, which uses private symbols. Reviewed-by: Jason McDonald Change-Id: If1a24512b0dd2fd4a966605c6adef3be83be19b6
* Add tst_headersclean for each moduleLiang Qi2011-04-274-0/+72
|
* Modularized tst_compilerwarningsLiang Qi2011-04-271-0/+52
|
* Modularized tst_bic and add some helper functions for global testLiang Qi2011-04-271-0/+5
|
* Make auto test buildLiang Qi2011-04-273-5/+8
|
* Initial import from the monolithic Qt.Qt by Nokia2011-04-27487-0/+50810
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