summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Correctly handle null windows or widgets in keyClick()Lars Knoll2011-10-311-0/+2
| | | | | | | | | | Allow passing of null windows or widgets to keyClick(). In that case route the event through the normal Qt event processing. This allows e.g. shortcuts to catch the key event. Change-Id: Ic9455ea9be5164918b1c0bccbd58dd32eae74ff1 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove disabled code from QMainWindow autotest.Jason McDonald2011-10-311-9/+0
| | | | | | | | The removed code has been disabled since it was first added in October 2006. Change-Id: I10243aa2979fd1615c919ec522d10d77d6527b3b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove unstable test from qgraphicsscene test.Jason McDonald2011-10-311-77/+0
| | | | | | | | | | | | The removed test was disabled in February 2007 because it did not work cross-platform. The comment that was added at the time claims that the functionality is covered thoroughly by other tests, but even if that isn't true we're not losing anything by removing this test as it is not even useful as a starting-point for a new test due to its reliance on random test data. Change-Id: Ica74262082184908d02595702486803d1efff4d2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete test data from qgraphicsitem testJason McDonald2011-10-311-19/+0
| | | | | | | | The removed test data was disabled by commit 83747a82 and should have been removed at that time. Change-Id: Ia2cef0bf4394a5b95fdf37db26369e733c7e86ec Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code from qgraphicssceneindex testJason McDonald2011-10-311-36/+0
| | | | | | | | The removed code used to test API that was removed in the graphicsview refactor that was done for Qt 4.5.1. Change-Id: I3b312b9e51114e24c6ef1191353c35688b229d99 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code from QString autotest.Jason McDonald2011-10-311-49/+0
| | | | | | | | | The removed code was disabled before the tests were imported into the Qt repository in 2006, so its meaning or usefulness is lost in the mists of time. Change-Id: I3108a1a1d86cd135886608f47dcd88bf49f2d3fd Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code from QRegExp testJason McDonald2011-10-311-6/+0
| | | | | | | | | The removed code was disabled before the tests were imported into the Qt repository in 2006, so its meaning or usefulness is lost in the mists of time. Change-Id: Iccdf5638106b054f02ed73790f7acda1b17b045b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove tests for API that never made it into Qt.Jason McDonald2011-10-313-151/+0
| | | | | Change-Id: If78d82abfb4ff3402eb8f36729bacc3c4d343d0c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete code from QChar autotest.Jason McDonald2011-10-311-14/+0
| | | | | | | | | QUnicodeTables::ligature() was removed from the API in 2006. The commit that disabled the test also changed the code to call QChar::ligature(), which has never existed. Change-Id: I056c17c178a527b076538fb007404ff0b735ba02 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete code from qstate autotest.Jason McDonald2011-10-311-145/+0
| | | | | | | | This was originaly the only test function in this test, and should have been deleted when it was replaced by the other test functions. Change-Id: Idc71a5462fd4d19955f9b14389b877be16c62ab5 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve QBuffer autotestJason McDonald2011-10-311-3/+2
| | | | | | | | | | The documentation of QIODevice::pos() states: "For sequential devices or closed devices, where there is no concept of a "current position", 0 is returned". The test had a disabled check for a position of -1 before the device is opened. Make the test agree with the documentation. Change-Id: Ide5729bfc825cdb84caf4851574a57d3ef42ccb2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debugging code from QFileSystemWatcher testJason McDonald2011-10-311-15/+0
| | | | | | | | | Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: I201ba754df26ffc30997bead8b822f97913db2b6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled tests from QUrl test.Jason McDonald2011-10-311-733/+1
| | | | | | | | | | | | Some tests were copied in from KDE's KURL sometime prior to Qt's tests being added to the Qt repository in June 2006. This was presumably done with the intention of making the tests work for QUrl, but that never happened and the copied tests have never been enabled. This commit removes the copied material. Change-Id: Ic35526f0018900bd60d7905646b24c62317b5e47 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete code from qtconcurrentiteratekernel test.Jason McDonald2011-10-311-44/+0
| | | | | | | The removed code refers to WhileIteration, which does not exist. Change-Id: I4c44bc319ac776d16ce9ba7b5c2938ce1642a3f6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete code from qtconcurrentrun test.Jason McDonald2011-10-311-71/+29
| | | | | | | | | The removed code was left over from an unfinished MSVC6 compatibility API (see commit e3e28e7a in the grafted history). That compiler is no longer supported, so this code can be retired. Change-Id: I81bcfa771ae13579f2458eb2d3ebf41c6af8577c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debug code from QLocalSocket autotest.Jason McDonald2011-10-311-7/+1
| | | | | | | | | Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: Ie44b6ea8dd496857ea264f730148d3dc4f5c8324 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debugging code from languagechange testJason McDonald2011-10-311-5/+1
| | | | | Change-Id: Ic3f1ea9ed3dd4ad78fccd66718f53a798cf8103a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove dead code from QTransform autotest.Jason McDonald2011-10-311-18/+0
| | | | | | | | | | Remove the operator_star_qrect() test function. The body of this test function has been inside "#if 0" since the commit that created the test in 2006 and the operator it is trying to test doesn't exist. Seems fair to assume that this function isn't worth keeping. Change-Id: I9748273b28eae4b07c3a25f77cee412ad94ea822 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debugging code from QPainter autotest.Jason McDonald2011-10-311-97/+0
| | | | | | | | | Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: Ic7fb619081e9ff453769f4064431dc726e90b985 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debugging code from QPathClipper autotest.Jason McDonald2011-10-311-21/+0
| | | | | | | | | Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: I36c0624cccf70853a697a2395259b387fa334134 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove dead code from qpixmap autotestJason McDonald2011-10-311-6/+0
| | | | | | | | | The removed code was in #if 0 in the original commit of the test function and appears to be an earlier version that should have been discarded before the initial commit. Change-Id: I91f16aa7adcccb50f4f3a02062fb9d105d85000c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* moc: support c++11 style enumsOlivier Goffart2011-10-293-2/+103
| | | | | | | Task-number: QTBUG-21480 Change-Id: Ic116a5a06dd68036823f27146e49511c68cf2de6 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Re-enabled tst_LargeFileJo Asplin2011-10-292-1/+3
| | | | | | | | | | | tst_LargeFile currently seems to pass in a stable way in CI It does have an issue on 64-bit Linux (see QTBUG-21175), so that test function is still disabled (QEXPECT_FAIL'ed) on that platform. Change-Id: I818046f84f2db5eb2155ae1f51f69581029bfaee Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
* Remove Windows and X11 from src/widgets/platforms.Robin Burchell2011-10-286-148/+3
| | | | | | | | | | This is dead code, unused with QPA in place, so remove it to avoid confusion caused through grepping for class names existing in both old and new places. Mac code is left in place for now, as some of it is still in use. Change-Id: Ia82cd5bbabe71285ca997f79d8fd9c0504e32c28 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Improve QTextBrowser unit test.Jason McDonald2011-10-281-0/+8
| | | | | | | | | The relativeLinks() test function was not performing sufficient verification steps and thus hid a regression. Task-number: QTBUG-22416 Change-Id: I2db4d4035e7a32f3c84630c7a15408d31d85ac9e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Move test data to the right place.Jason McDonald2011-10-281-0/+0
| | | | | | | | | | | This file seems to have been forgotten when the test it belongs to got moved -- probably because the test was poorly written and still passed when the file couldn't be opened. The file is supposed to live one directory up from the qtextbrowser test so that it can be used to test opening url's with relative paths. Change-Id: Id80965b1c73b37de75691ae3a18f909f9c6d799a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove redundant preprocessor directive.Jason McDonald2011-10-281-8/+0
| | | | | | | In Qt5, it's quite safe to assume that QT_VERSION is greater than 4.x. Change-Id: I2b7f491d79e084f3a52ee54c9e97419570b57584 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update QMutex benchmark to match the one in 4.8Bradley T. Hughes2011-10-272-1/+40
| | | | | | | Pull in recent changes in the 4.8 branch for the QMutex benchmark. Change-Id: Ie1e9bff33cecafb36d3d12207100f09f99597f8e Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
* Add QDataStream operators to QMargins, so it can be streamedSteven Ceuppens2011-10-271-0/+26
| | | | | | | | | | * QDataStream format documented * Added Unit test for QDataStream operators * Updated Unit test Change-Id: Idbcfcb0b927e6369e8d31b57693c7aa0d1a154e7 Reviewed-by: Olivier Goffart <ogoffart@kde.org>
* Remove pointless QVERIFY(1) calls in QPainter testJason McDonald2011-10-271-4/+0
| | | | | Change-Id: Iae5fcb9fa7dc64ed2d2bd369dbe689c5136ad283 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Use standard method of excluding a test.Jason McDonald2011-10-271-35/+9
| | | | | | | | | If we find out at run-time that an entire test program is not applicable, the correct way to skip the test is by calling QSKIP from the test's initTestCase() method. Change-Id: Iaf1dbcce38c569ee9513bf37232e9e4ea287d872 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Prefer compile-time checks to QSKIP.Jason McDonald2011-10-271-1/+25
| | | | | | | | | | Qt has compile-time defines for determining the presence of each style in the build. Use these to exclude inapplicable test data instead of including all test data and then being unable to distinguish the absence of a style from regressions in QStyleFactory. Change-Id: Iab1756aec80892a8b587bb635779537c64b1d4dd Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove unnecessary QSKIP.Jason McDonald2011-10-271-3/+2
| | | | | Change-Id: Icaa0687d5d0370ede6076cbee9d97d89e338ca17 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add default actions to QAccessibleWidget.Frederik Gladhorn2011-10-271-21/+60
| | | | | Change-Id: I9f251aad663fd0b8db2ef068c6581241d91c090d Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Tests: Remove Q_WS_QPA, qpa-sections from .profiles.Friedemann Kleint2011-10-2724-80/+59
| | | | | | | | | | | | Compile without -qpa. - Make Q_WS_QPA-#ifdefed sections the default in the code - Replace some Q_WS_ by Q_OS_ - Add ### fixme for places that need checking - Remove qpa conditionals from .pro files. Change-Id: I6ea930afc0c236cc12a7b7e95f1b8a1c24b3a513 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Remove unreachable QSKIP in UIC autotest.Jason McDonald2011-10-271-8/+1
| | | | | | | | | If an autotest's initTestCase() method fails or skips, the remaining test functions are not executed. Thus the QSKIP in the run() test function was unreachable. Change-Id: If1f1b484958367236357f9445491bed50bee2239 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete MSVC workarounds from autotests.Jason McDonald2011-10-275-115/+0
| | | | | | | | Qt5 doesn't support MSVC versions before 2008, so workarounds for earlier versions are no longer required. Change-Id: I429feff99fe61d286637b960d92fd58962f8aefa Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Replace QSKIP with QFAIL in qputenv testJason McDonald2011-10-271-2/+1
| | | | | | | | If qputenv fails, the test should fail rather than skip, particularly as the test is supposed to be testing qputenv. Change-Id: Iabe13d360cabaeffda46fab19f1dd0d4ed8e1eee Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove inappropriate QSKIP in QTextCodec autotest.Jason McDonald2011-10-271-2/+1
| | | | | | | | | | | | There were only two ways the QSKIP could be called: (1) the C++ runtime is broken, or (2) the earlier call to resize the string failed. In both cases there should be a hard test failure. In the former case, a broken C++ runtime calls all of the test results into question. In the latter case, the QByteArray::resize() method has suffered a regression. Change-Id: I5adf942d2eb4d746d2ab31e98571c5d9bdd40890 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete QSKIP call.Jason McDonald2011-10-271-4/+0
| | | | | | | | The bug referenced in the QSKIP has been marked as resolved, so this QSKIP should no longer be needed. Change-Id: I41dd964827a3df8fb5ebb9674cef9db59c03d432 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Doc: Fixing typoSergio Ahumada2011-10-2613-16/+16
| | | | | | | Fix typos I was able to find in `tests/auto' directory. Change-Id: Id0bfcc18301381ac8b1ca8d5af17bd926e5913d4 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Re-enabled testsJo Asplin2011-10-2614-24/+0
| | | | | | | | | | | | This commit re-enables tests that are assumed to be ok by now, since they: - Have been passing in CI for a long time recently (more precisely, not failed once in pulse run range 730-829). - Did not have any known issues associated with them. Note that not all of these tests were disabled as a result of QTBUG-21402. Task-number: QTBUG-21402 Change-Id: I80bbf8b351bd9165aa968e98f4dc17e8be6bc7c3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enabled tst_qstatictextJo Asplin2011-10-261-2/+0
| | | | | | | | tst_qstatictext is fixed by 8b4e40f5354ef81c40d8da35e0e79b2a87278e31 Task-number: QTBUG-20977 Change-Id: I70631951c98ee3033f4d0c7a61fad102d28846d1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enabled tst_qrawfontJo Asplin2011-10-261-2/+0
| | | | | | | | tst_qrawfont is fixed by 8b4e40f5354ef81c40d8da35e0e79b2a87278e31 Task-number: QTBUG-20976 Change-Id: I862674211f581abec8714d1a3da4dc38227c2606 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enabled tst_qhttpnetworkconnectionJo Asplin2011-10-261-2/+0
| | | | | | | | tst_qhttpnetworkconnection is fixed by 13df02ad044cca3c0414f5e34c57fe04b69b414c Task-number: QTBUG-20981 Change-Id: I5666dbafe09113a7ecc3680f7608f874d66e2c19 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enabled tst_qsocketnotifierJo Asplin2011-10-261-2/+0
| | | | | | | | tst_qsocketnotifier is fixed by 0e7cecb861c7be73d3ef46b41ad6d1a5691b5e7d Task-number: QTBUG-20982 Change-Id: I97c0bc0f94a04e57f239de99bf3b64451a492434 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix QDialog test: Q_WS_X11 is no more.Frederik Gladhorn2011-10-251-2/+2
| | | | | Change-Id: Ia4182b22f4a4999a80d7792378e1b9dfa03e7f9c Reviewed-by: Kristoffer Flottorp <kristoffer.flottorp@nokia.com>
* Bring back QDoubleSpinBox test.Frederik Gladhorn2011-10-252-7/+2
| | | | | | | | Returning text "1.00" instead of "1" sounds right to me. Checking the test before the widget is shown/validated sounds pointless. Change-Id: Ifc9e51dc9448a5bb3afbd566fe10524fbabc654f Reviewed-by: Kristoffer Flottorp <kristoffer.flottorp@nokia.com>
* Fix autotest tst_qtextbrowser.cppFrederik Gladhorn2011-10-252-25/+25
| | | | | | | | The qrc tests need further investigation. Bring at least back the basic test. Change-Id: I302a37b6c989af76db67716ffcf10a0960234156 Reviewed-by: Kristoffer Flottorp <kristoffer.flottorp@nokia.com>
* QNetworkReply autotest no longer needs private_testsShane Kearns2011-10-252-4/+1
| | | | | | | | | Due to clearAccessCache being made part of the public API in Qt5, this autotest can be run on normal Qt builds again Task-number: QTBUG-17312 Change-Id: I3b70237a28ed141ffb49762cc40c8a528f9be6a8 Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>