summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
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>
* 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>