summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix compile warning in tests.Friedemann Kleint2011-05-201-1/+1
|
* Reduce usage of Q_ASSERT in autotests.Jason McDonald2011-05-181-2/+2
| | | | | | | | | | 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 from qscriptvaluegenerated testJason McDonald2011-05-181-6/+7
| | | | | | | | | | | Report a fatal error if an unknown type of comparison is requested rather than failing silently in non-debug builds. Also fixes the misspelled parameter name. Change-Id: I84bd018aa99e99a98d97c43343032b38ca9cbccb Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit fe170938cf963e0a0a20b19f97ee6e18b6808a90)
* Remove Q_ASSERT from qscriptvaluegenerated testJason McDonald2011-05-181-1/+2
| | | | | | | | | | Report a fatal error if an empty test is generated rather than failing silently in non-debug builds. Change-Id: I79aa7a9eb09e387cef1960816a4bcce7b1af282d Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit a4f105070799d4b4362b80b77c5960b364f77000)
* Remove Q_ASSERT's from qscriptvaluegenerated testJason McDonald2011-05-181-4/+21
| | | | | | | | | | Report a fatal error if there are problems reading from the input data stream rather than failing silently in non-debug builds. Change-Id: I7a913bf47dccb37bab09e1cd79e5022b04e42c27 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 385107ebc71a74dae031b713ea5a9c54635eeff8)
* Remove Q_ASSERT's from V8 autotestJason McDonald2011-05-181-2/+4
| | | | | | | | | | | Report a fatal error when the realFail() function is missing or misbehaving rather than silently ignoring the failure in non-debug builds. Change-Id: I8b27aeb1c9dab5752a5dbedafc4d420bb4121d2b Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 20512cdab97b530ee8ec767254e553d80164b3c6)
* Remove Q_ASSERT from qscriptengine autotestJason McDonald2011-05-181-1/+4
| | | | | | | | | | | | Rather than aborting in debug builds and failing silently in release builds, output a meaningful warning message and return a null QScriptValue which will cause the "isQObject" check in the testfunction to fail. Change-Id: I69fd9c15a69924d0abfde6710ea6ae4bf7e013fa Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 3b7f3757efb038fe523a00d474d1b92920f9abe8)
* Fix compile error.Jason McDonald2011-05-181-2/+6
| | | | | | | | | | The previous change to tst_qscriptv8testsuite.cpp introduced a compile error due to insufficient parameters to QTest::qVerify(). Change-Id: I9ea9462d830b9d796676947a3598e3c066b29180 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 5b044c36d0d7671c8ff9776822cf0f1ad7eeec79)
* Remove Q_ASSERT's from QScriptable autotestJason McDonald2011-05-181-6/+21
| | | | | | | | | | | | | | The helper class expects a valid script engine to be available and attempted to verify this with Q_ASSERT (which does nothing in release mode) and QVERIFY (which should only be used directly in test functions). This commit makes the helper class avoid using an invalid engine and catches the problem later by verifying that the last script engine used by the scriptable class was valid. Change-Id: I849df32b141b7801b9b5a92f44ff325397e32f2d Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit a7acd7e0a09d89647abb9ff91b1bcb55d1a7a849)
* Remove Q_ASSERT from V8 autotestJason McDonald2011-05-181-1/+1
| | | | | | | | | | Replace Q_ASSERT with QTest::qVerify, in line with the rest of this test function. Change-Id: Ia39e62efb9945f72a6a93fddddf36488cd456965 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 3ba55189d9aa7d9d7c2087071dcb4d338c0feab8)
* Remove Q_ASSERT's from qscriptclass autotestJason McDonald2011-05-181-4/+2
| | | | | | | | | | Allow the extension() function to return a null QVariant, which will cause the test to fail gracefully. Change-Id: Ide9ef69c48f4bdd5a000f525fe9f395c27854da9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 8b95b4b5c09bf31f813fe39a3eec611c9daddb98)
* Remove dead code from qscriptenginedebugger testJason McDonald2011-05-181-14/+0
| | | | | | | | Remove code made obsolete by 2d1839e850ac632a13ff0ac3096d8419bff5082d. Change-Id: Ic889c81f0507eb91028fa6b6c4cbf6ae71a728b0 Reviewed-by: Rohan McGovern (cherry picked from commit 4b5a7eeacee997f0129354c9669b8e0d66ca4efa)
* tests: fixed private header inclusion problem in tst_qscriptengineRohan McGovern2011-05-121-1/+1
| | | | | | | This test uses private headers, so it must do QT+=script-private Reviewed-by: Jason McDonald Change-Id: I689ea3b6e90b2e695c4bce3fee2d6ce8a1e98cdf
* tests: mark qscriptcontext as a private-testRohan McGovern2011-05-121-0/+3
| | | | | | | This test uses private symbols. Reviewed-by: Jason McDonald Change-Id: I76a07e8366bcfc0bfb3d782311799921f85893fa
* Fixed a trailing backslash error in a profile.axis2011-04-271-0/+1
|
* Add tst_headersclean for each moduleLiang Qi2011-04-274-1/+74
|
* Modularized tst_compilerwarningsLiang Qi2011-04-271-0/+56
|
* Modularized tst_bic and add some helper functions for global testLiang Qi2011-04-271-0/+6
|
* Adapted guiapplauncher test to modularized Qt.axis2011-04-272-0/+4
| | | | | Now it reads the test cases from text files in each repository instead.
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271413-0/+335522
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