summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve QDirModel autotestJason McDonald2011-11-031-5/+25
| | | | | | | | | | The unreadable() test function has been disabled since before the tests were imported into the Qt repository. The idea of the test seems valid (though the original implementation failed to correctly create an unreadable file), so it should be re-enabled. Change-Id: I94634bc5785dfbfbb42ca975badaead7fe812b29 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enabled passing tests in tst_qgraphicsitemJo Asplin2011-11-022-3/+1
| | | | | | | | | | | To increase the effective test coverage, this patch re-enables the tst_qgraphicsitem test case as such, and instead disables only the test functions that are currently failing in CI. Task-number: QTBUG-22453 Change-Id: If311bc61801d2a279c274928ae7f0faeb595eeb3 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Re-enabled passing tests in tst_qgraphicsviewJo Asplin2011-11-022-3/+2
| | | | | | | | | | | To increase the effective test coverage, this patch re-enables the tst_qgraphicsview test case as such, and instead disables only the test functions that are currently failing in CI. Task-number: QTBUG-22453 Change-Id: I6b8eb09000ece789b990a2dd697cdb8b47cc8e1c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Re-enabled passing tests in tst_qgraphicssceneJo Asplin2011-11-022-3/+1
| | | | | | | | | | | To increase the effective test coverage, this patch re-enables the tst_qgraphicsscene test case as such, and instead disables only the test functions that are currently failing in CI. Task-number: QTBUG-22453 Change-Id: Idd229532787ce8138d8e1c86daf1f91b90e87e38 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Reinstate disabled part of qsortfilterproxymodel testJason McDonald2011-11-021-3/+1
| | | | | | | | | This test function has been disabled since before the tests were imported into the Qt repository in 2006, but seems to pass today, at least on Linux. Change-Id: I8ff90a11a0fbb260d66b20ae735b5f21c450a5af Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove stale test data from qsortfilterproxymodel testJason McDonald2011-11-021-43/+0
| | | | | | | | | The removed test data has been disabled since before the tests were added to the Qt repository in June 2006, and was incomplete (the "pattern" field was missing). Change-Id: I974d03a4dcca76ba1a20f740372702612c8ce02b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code from QWidget autotest.Jason McDonald2011-11-021-11/+0
| | | | | | | | The removed code was already disabled when first committed in January 2009. Change-Id: I00a82f2e673fee76869cc76d756c36d081da2d2a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code from qgridlayout autotestJason McDonald2011-11-021-10/+0
| | | | | | | | The removed code was already disabled when it was first added in June 2006, and is based on assumptions that no longer hold true. Change-Id: Id7941d46e2a993aac422554dcc5540eb64eac492 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove redundant code from qsortfilterproxymodel testJason McDonald2011-11-021-4/+1
| | | | | | | | | Remove a couple of "#if 1" directives (but not their contents), which have been present since before the tests were imported into the Qt repository in 2006. Change-Id: Id43aff37843e7a44ed96973f809de3838ba0e5b9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve QWidget autotest.Jason McDonald2011-11-021-5/+0
| | | | | | | Remove some "#if 1" directives and a line of debug code. Change-Id: Ib34f5b65470a24ee499799525ffe0645ccc117fe Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debugging code from qgraphicsitem autotest.Jason McDonald2011-11-021-6/+0
| | | | | Change-Id: Ia2ff65b5e980b42c5c64b957143860e94395d54f Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove disabled code in QItemView test.Jason McDonald2011-11-021-56/+0
| | | | | | | | | | The removed code was disabled in January 2007. The commit history does not make clear what the code was supposed to achieve and the code doesn't do what the comment at the top says (that looks like a TODO). Best to delete it and start again. Change-Id: I42b6b1d865c96518d74dc189a4a41d0d2776e5bc Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove remains of qpa in tests.Friedemann Kleint2011-11-013-3/+3
| | | | | | | Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Change-Id: I41aed5290df5aebeb30ebf5d2796aca6c65980d1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Re-enabled passing tests in tst_qgraphicswidgetJo Asplin2011-11-012-1/+2
| | | | | | | | | | | To increase the effective test coverage, this patch re-enables the tst_qgraphicswidget test case as such, and instead disables only the test functions that are currently failing in CI. Task-number: QTBUG-22453 Change-Id: Ic484fde3492f077453f47a959dd6dc862288dcaf Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove debug code from qsortfilterproxymodel testJason McDonald2011-11-011-12/+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: I80691b274d9d2abda72bca894ace9de545410ed8 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve QWidget autotestJason McDonald2011-11-011-6/+6
| | | | | | | | | There are two cases where a QCOMPARE may fail on some platforms. Rather than disabling the QCOMPAREs with "#if 0", use QEXPECT_FAIL so that we can look in the CI logs to see which platforms fail. Change-Id: Ife93c8032e01a04e8068bf213e2040778c12f711 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debug code from QLayout autotest.Jason McDonald2011-11-011-4/+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: Id4efb74a2d3646f3554b643762beefba113c3602 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove debug code from QGridLayout autotestJason McDonald2011-11-011-4/+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: Ifd2bbd17677e16ddb0f1846287d722cdae76d984 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove obsolete test.Jason McDonald2011-11-011-8/+0
| | | | | | | | | The commit that disabled this test a few days after it was originally comitted (bda80c4b in the grafted history) makes it clear that this test was never valid. Change-Id: Ib0090fc35d0b9251d7b7367de2c71a66a332c567 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve QMenu autotest.Jason McDonald2011-11-011-20/+24
| | | | | | | | | | | Originally this commit was just going to reinstate the disabled line of test data (after correcting it to use keyboard modifiers instead of invalid bitwise-or of key-codes, which would trigger an assert in qtestlib). Unfortunately, this revealed a minor bug in QMenu, as reported in QTBUG-22449, so a QEXPECT_FAIL has also been added. Change-Id: I29699fcbfa353c037a83379a6140f0e3da5be027 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve QMenu autotestJason McDonald2011-11-011-2/+5
| | | | | | | | | The test for keyboard navigation was only checking correct highlighting when a menu item was not activated by the latest key-click. It should also check that no item is highlighted after an item is activated. Change-Id: I443e154be5cdc2def4f12d3f0abab2cc1bc6e4a8 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* 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>
* 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/+1
| | | | | | | | | | | 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>
* 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>
* Tests: Remove Q_WS_QPA, qpa-sections from .profiles.Friedemann Kleint2011-10-2714-40/+39
| | | | | | | | | | | | 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>
* Doc: Fixing typoSergio Ahumada2011-10-265-5/+5
| | | | | | | 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-266-11/+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>
* 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>
* widgets: eliminated usage of qttest_p4.prfRohan McGovern2011-10-25127-255/+369
| | | | | | | | | 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: I3c1d993d5682db913aadc267d98a638061f393d6 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove QSKIPs from qgraphicslinearlayout testJason McDonald2011-10-251-4/+3
| | | | | | | | | | If the test decides not to do some extra testing for certain styles, but doesn't find any failures in what it has done so far, it should pass rather than skipping. Removing the QSKIPs also corrects the leakage of the memory pointed to by "widget". Change-Id: Ibd0f3f0605660c92e9bab2a3d1d9f31b52192575 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove QSKIPs from qgraphicsgridlayout testJason McDonald2011-10-251-6/+6
| | | | | | | | | | If the test decides not to do some extra testing for certain styles, but doesn't find any failures in what it has done so far, it should pass rather than skipping. Removing the QSKIPs also corrects the leakage of the memory pointed to by "widget". Change-Id: Id4cf7e8dc48f836d2c6dcde57dde87797a2fe036 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't call QSKIP/QVERIFY outside of test functions.Jason McDonald2011-10-251-19/+24
| | | | | | | | | | | These macros should only be called inside a test function, otherwise they cannot abort the test function correctly. Solve this by making the helper function return a boolean result (and output a warning on failure to help with debugging) and verify the return value in each test function that calls the helper. Change-Id: I599673fda49051baf80a8c94b5d85a4d8c2cb406 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update bug number in autotests.Jason McDonald2011-10-252-2/+2
| | | | | Change-Id: I4b17736d86f8dc571090820a545107bb89cb493d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix qcolumnview test for shadow builds.Jason McDonald2011-10-241-2/+2
| | | | | Change-Id: I4a81d7c8504400d7fb4bb42fb93508ac28cfb990 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix qsidebar test for shadow builds.Jason McDonald2011-10-241-2/+2
| | | | | Change-Id: I3b58a1c81881401edb2a768b2a9995b1e833e90c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix qfilesystemmodel test for shadow builds.Jason McDonald2011-10-241-1/+1
| | | | | Change-Id: Ic9d174670f7411561bdfc0881b426a7ff1ab546d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix QFileDialog test for shadow builds.Jason McDonald2011-10-241-3/+3
| | | | | | | Using relative paths in #include is best avoided. Change-Id: Iacaab7b4c402dfc96f944f21c634afa6e4a2a32a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Multiline editors not to limit anchor position inputMethodQueryPekka Vuorela2011-10-241-0/+13
| | | | | | | | | | | | The queries were limited to current block, because that is the available surrounding text. Input method side, however, cannot then distinguish between anchor being really at start or end of the surrounding text, or beyond it. Without the limitation there at least is a way to know anchor is at unknown territory. Change-Id: I388d33566388344ec816ea7d86662b7e36a3d7d0 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove SkipMode parameter from QSKIP calls.Jason McDonald2011-10-2146-142/+129
| | | | | | | | | The previous commit removed SkipMode from the testlib APi. This commit removes the parameter from all calls to QSKIP. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: I21c0ee6731c1bc6ac6d962590d9b31d7459dfbc5 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Moved tests into integrationtests/ and widgets/Jo Asplin2011-10-20582-0/+172546
Task-number: QTBUG-19013 Change-Id: Ibb776f5967c0645ce6d22ef7afdc40657c575461 Reviewed-by: Holger Ihrig <holger.ihrig@nokia.com>