summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Expect tst_QWizard::setPixmap() failure on Mac OS XBradley T. Hughes2012-01-231-4/+10
| | | | | | | Task-number: QTBUG-23701 Change-Id: Iba5b926e57c1565856d17bbfbff4d1da75645ad4 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QFileDilaog:clearLineEdit() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | Task-number: QTBUG-23703 Change-Id: I981de80d6946d3637c493bede0adb1b90a539261 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Do not expect tst_QFileDialog::selectFiles() failure on Mac OS XBradley T. Hughes2012-01-231-2/+2
| | | | | | | | | | This test no longer fails: XPASS : tst_QFiledialog::selectFiles() '!listView->selectionModel()- Loc: [tst_qfiledialog.cpp(915)] Change-Id: Ib790c0f81b3d383117cceceaacbf0c3d6a673404 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Do not mark tst_QGraphicsWidget as insignificant anymoreBradley T. Hughes2012-01-231-1/+0
| | | | | | | Allow new failures in this test to block CI. Change-Id: I1c7e797740be2f77f82d00943f6f2018b686481f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QGraphicsWidget::updateFocusChain...() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | | | tst_QGraphicsWidget::updateFocusChainWhenChildDie() currently fails due to what appears to be window activation. Task-number: QTBUG-23699 Change-Id: I404f90d32dba64d558598d97cf805b6c025e6456 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix XPASS in tst_QGraphicsWidget on Mac OS XBradley T. Hughes2012-01-231-1/+3
| | | | | | | | | | | | Don't expect failure from these 2 tests anymore: XPASS : tst_QGraphicsWidget::initStyleOption(all) COMPARE() Loc: [tst_qgraphicswidget.cpp(1162)] XPASS : tst_QGraphicsWidget::initialShow2() COMPARE() Loc: [tst_qgraphicswidget.cpp(3196)] Change-Id: Ibd1178f8cab480fa9fad9c829083a4862749c60b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix XPASS in tst_QGraphicsView on Mac OS XBradley T. Hughes2012-01-231-3/+2
| | | | | | | | These tests now fail with XPASS on Mac OS X, so remove/skip the QEXPECTED_FAIL(). Unfortunately we don't know which commit fixed this. Change-Id: Id919a2c9d56fd7c4dee8ccb8aa3293efdce603b2 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QGraphicsProxyWidget::updateAndDelete() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | Task-number: QTBUG-23700 Change-Id: Ic472cea966761afc1e6e17479588b8b53ec4786c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Replace Q_WS_MAC with Q_OS_MAC in tests/auto/widgetsBradley T. Hughes2012-01-2342-211/+195
| | | | | | | | tst_qwidget.cpp will not build/link without tst_qwidget_mac_helpers.mm, so re-add it to the build as well. Change-Id: I55130f62c215c4b82683d90456e31fdb09f833a8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Update contact information in license headers.Jason McDonald2012-01-231057-1057/+1057
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I431bbbf76d7c27d8b502f87947675c116994c415 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Mark tst_qhostinfo as insignificant on Linux.Rohan McGovern2012-01-231-0/+2
| | | | | | | | | | This test sometimes gives different results on consecutive runs, and is therefore insignificant for the purpose of regression detection. Task-number: QTBUG-23837 Change-Id: I8747972c5cb7952089c54cbd22e1660db551e2f5 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Remove dependency of QtDBus onto QtXmlHarald Fernengel2012-01-222-105/+35
| | | | | | | | | Replace the QDom based code in qdbusxmlparser with code using QXmlStreamReader. Task-number: QTBUG-20856 Change-Id: I294e3ebd6faa813c20806be3ae225ac00befb622 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Obsolete QInputDialog::getInteger() 'officially'.Robin Burchell2012-01-221-13/+13
| | | | | | | | | It has long since been obsolete in code and removed from the documentation, but was never marked QT_DEPRECATED. Do so, and inline the implementation. Change-Id: Ic7bfdaf76269b7f9addeba83e64bc9525c581dda Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Introduce a qalgorithms benchmark.Robin Burchell2012-01-214-1/+147
| | | | | | | | Based on the unit test for data production. Change-Id: I88a411c0079b251d3682c3fbf9fe7ed1b5457a7e Reviewed-by: Anselmo L. S. Melo <anselmo.melo@openbossa.org> Reviewed-by: Richard J. Moore <rich@kde.org>
* Minor style fixups.Robin Burchell2012-01-211-17/+12
| | | | | | | Add spaces where necessary, and pull braces back to the same line. Change-Id: If543686c9727a110f8a91f1a88e08d5d2ac12284 Reviewed-by: Richard J. Moore <rich@kde.org>
* QFileInfo autotest - don't fail on default configured windows systemsShane Kearns2012-01-201-0/+13
| | | | | | | | | NTFS file access times are disabled by default since windows 6 for performance reasons. The test now checks the registry setting and reports XFAIL if access times are disabled. Change-Id: Ia84ed0c8736e6c7d5817425006f6115d9f3e70a4 Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* make tst_QProcess::softExitInSlots pass in under 120 secondsJoerg Bornemann2012-01-201-3/+24
| | | | | | | | | | Due to unconditional waits this test always needed 120 seconds to pass. Now we're using QTRY_VERIFY and make sure that we write the data before the process got killed even in the cases 3 and 4. On my machine this test now takes 8 seconds. Change-Id: I606a8b43ba4c97704be5202a6c5d8d1c75337f9c Reviewed-by: Bill King <bill.king@nokia.com>
* Remove QBool and use bool instead.David Faure2012-01-202-61/+3
| | | | | | | | | | | | QBool was introduced with Qt-4.0, to detect Qt3-like code like if (c.contains(d) == 2) and break compilation on such constructs. This isn't necessary anymore, given that such code couldn't possibly compile in Qt4 times. And QBool was confusing developers, and creating compile errors (e.g. QVariant doesn't have support for it), so better remove it for Qt 5. Change-Id: I6642f43f5e12b872f98abb56600186179f072b09 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add a string hash implementation similar to the one in Java.Robin Burchell2012-01-203-0/+41
| | | | | | | | | | | | | | | | | | | | | This uses a similar runtime to the approach of sampling part of the string, with the benefit that it doesn't reduce the sampling to subsections of the string. Ironically, Java used to only sample parts of the string as well, but found that it produced too many collisions with certain string types, so they moved to use this method. RESULT : tst_QHash::qhash_qt4(): 0.0537 msecs per iteration (total: 110, iterations: 2048) PASS : tst_QHash::qhash_qt4() RESULT : tst_QHash::qhash_faster(): 0.015 msecs per iteration (total: 62, iterations: 4096) PASS : tst_QHash::qhash_faster() RESULT : tst_QHash::javaString(): 0.016 msecs per iteration (total: 66, iterations: 4096) Change-Id: Icb5da341ab6445163f4217650a0bdb3903e50210 Reviewed-by: hjk <qthjk@ovi.com>
* Expect tst_QTreeView::editTriggers() failure on Mac OS XBradley T. Hughes2012-01-201-0/+3
| | | | | | | | | EditKeyPressed 4 test data fails, all other test data for the function pass. Task-number: QTBUG-23696 Change-Id: Ied56bd0b653ad4dcc2b6451b486aae7cad134211 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QColumnView::moveCursor() failure on Mac OS XBradley T. Hughes2012-01-201-0/+3
| | | | | | | | Both test data fail. Task-number: QTBUG-23697 Change-Id: Iee4b08a88db33c72c584e326e928863af61c8dd4 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tooltip related test failures on Mac OS XBradley T. Hughes2012-01-203-0/+15
| | | | | | | | Mark test failures related to tool tips with QEXPECT_FAIL(). See QTBUG-23707 for description of the failures. Change-Id: I753256d1db748cef41cf1898620647c4cbacc472 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore failures from tst_QWidget_window on Mac OS XBradley T. Hughes2012-01-201-0/+7
| | | | | | | | | The tst_windowFilePathAndwindowTitle test currently fails, so mark the failures as expected failures for now. Task-number: QTBUG-23682 Change-Id: If64a82c919b218b5c1c38ce5228081bb46fe70ac Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Removing QHttpHeader and QHttpResponseHeader.Jonas M. Gastal2012-01-191-1/+1
| | | | | | | | | QAuthenticator used it for the convinience of QHttpSocketEngine only. QHttpSocketEngine has now been ported to use QHttpNetworkReply to parse HTTP responses. Change-Id: Idf6e70aa76613aad6e3d789d81ca1b4fd73575c2 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
* Add "nswindow" resource to the Cocoa native interface implementationBradley T. Hughes2012-01-191-6/+11
| | | | | | | | | This will return the NSWindow* for the given QWindow*. Port the QWidget autotest helper to use the native interface and the "nswindow" resource. Change-Id: I754b7e9288690ac3c99c3ec65c5526d5fe121234 Reviewed-by: João Abecasis <joao.abecasis@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Remove the tst_QWidget::retainHIView() testBradley T. Hughes2012-01-193-118/+0
| | | | | | | | | Qt is Cocoa only now, and does not use HIView anymore, making this test is meaningless. The testAndRelease() and createAndRetain() helper functions are also no longer needed. Change-Id: I26180a4670c8e7445741d3aab510c4da7b65388c Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* remove NTFS junction and mount point detectionJoerg Bornemann2012-01-191-5/+7
| | | | | | | | Qt now treats neither NTFS junctions nor mount points as symlinks. Task-number: QTBUG-20431 Change-Id: I93f67d7438d441ceb53308d4a1f29335beedd547 Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* Revert "fix NTFS mount points"Joerg Bornemann2012-01-191-1/+1
| | | | | | | | | | We agreed on treating neither junctions nor mount points as symlinks. This will be handled in another commit. This reverts commit 1656c4780cc6c1d96f47522046f3f53b1eebb95a. Change-Id: I41a87b6df9f7fba333df4c967ee9f0c1f3940952 Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* Disable 'make check' for tst_QWidget on Mac OS XBradley T. Hughes2012-01-191-0/+2
| | | | | | | | | This test crashes, which can destabilize the CI system, so don't run the test for now. It is still compiled as part of the build process, though. Task-number: QTBUG-23695 Change-Id: I841fab7c56b8dba33e8d1b074f118b65790f34ef Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Replace Q_WS_MAC with Q_OS_MAC in tests/auto/otherBradley T. Hughes2012-01-193-8/+8
| | | | | | Change-Id: If805ea762047d07872a278956fc7637e5bafc6db Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix hang in tst_qwidgetaction on Windows.Friedemann Kleint2012-01-191-1/+1
| | | | | | | Increase timer interval. Change-Id: I2cf40415d356c29ebd753a0e78f43aee474123ca Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Changed xml unittests to work from installation directoryKurt Korbatits2012-01-196-46/+53
| | | | | | | | | - Changed to use QFINDTESTDATA and TESTDATA Change-Id: Ib738adfb6d0553e4c995ccaa51e34335f00f50f0 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove all references to QAccessible::(Covers|Covered)Jan-Arve Saether2012-01-191-107/+0
| | | | | | | | These were not used in any bridges, and none of the bridges (MSAA, Cocoa, AT-SPI/IA2) can hardly make use of this information. Change-Id: If3cad6b6c1928535dd932f46c9ec6883a4a19c76 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Remove QInputContext usage from QWidget testPekka Vuorela2012-01-191-21/+11
| | | | | Change-Id: Ifcd600f5efd5bd079dd2f8d66803e34ffa6df37f Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* QWidget editors to return correct value for Qt::ImEnabledPekka Vuorela2012-01-192-1/+19
| | | | | | | | | | Qt::ImEnabled input method query was added for Qt5. Enhancing source compatibility with Qt4 by setting query value in QWidget if widget does not return any valid value. Change-Id: I274c1f6c47a5cb08ecf550b25e5b358622e21d90 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove QNetworkConfiguration::bearerName().Xizhi Zhu2012-01-181-8/+8
| | | | | | | | | It was added only to maintain source compatibility with Qt Mobility. Change-Id: Iea8d40e401bd1f8d5115268e09b256eacca69ea0 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
* Replace Q_WS_MAC with Q_OS_MAC in tests/auto/guiBradley T. Hughes2012-01-189-34/+34
| | | | | | Change-Id: I6d69ac96597f27575dd40e4c80c982f06fa88f51 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* fix NTFS mount pointsJoerg Bornemann2012-01-171-1/+1
| | | | | | | | | | | | NTFS mount points are not treated as symlinks, because they might not have a link target. This is the case when a volume is mounted as a single mount point without a drive letter. This patch fixes building Qt in an NTFS mount point. Task-number: QTBUG-20431 Change-Id: Ie2e15212e1a7ca7fa0067b7ca8857e243e42c21a Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* Fix isolated Thai SARA AM handlingJiang Jiang2012-01-171-0/+24
| | | | | | | | | | | | | | Since 5e07a3ac58f93bd5e09715d43b58c20950c2befa Thai text layout is handled by libthai to special case of the SARA AM. It didn't handle isolated SARA AM. This patch fixed it and added detailed explaination on the special case. The dotted circle should be shown rather than hidden. Add an test case to verify that with Waree. Change-Id: I4967715627cbe15f5a3e9ab3e3844420ab541aed Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Delete src/widgets/platforms/macMorten Johan Sorvig2012-01-171-1/+1
| | | | | | | | This looks like the mac port but isn't any more, remove it to prevent confusion. Change-Id: I498f536d77d1a3c53e687f696ca6992539a1a90b Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Make tst_QGraphicsAnchorLayout1 pass on Mac OS XBradley T. Hughes2012-01-171-8/+6
| | | | | | | | | | On Mac OS X, tests are build with QT_DEBUG defined, but run against libraries built with QT_NO_DEBUG, so the expected warning output is not seen. Use a run-time check instead to know whether or not to expect the warning output. Change-Id: Ifb772b764d4135cc8f896827727939fd8cff5388 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Mark tst_QFileDialog2 failure as expected on Mac OS XBradley T. Hughes2012-01-171-0/+3
| | | | | Change-Id: I678e1c714ac9c376484b4a3a5d9bfd2bd100e685 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Join user state of removed text blocksLeandro Melo2012-01-171-0/+18
| | | | | | | | | Note: Indentation of surrounding code was fixed. Done-with: mae (cherry picked from commit 8d3d3381c127f0f4dd9fc507c3069acddbf40535) Change-Id: I8d3d3381c127f0f4dd9fc507c3069acddbf40535 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Changed qicon unittest to work from installation directoryKurt Korbatits2012-01-172-35/+5
| | | | | | | | | - Changed to use QFINDTESTDATA and TESTDATA Change-Id: Ic9fedac82d32f8484a9d915d9d91fdaabedc85e2 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Added check to qtemporaryfile unittest if run as root userKurt Korbatits2012-01-171-0/+3
| | | | | | | | | | - nonWritableCurrentDir() function not valid test if run as root so added skip. Change-Id: I772e8356e6f798f5acdf7688c55f3241ad012a43 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Added check to qtemporarydir unittest to check and skip if rootKurt Korbatits2012-01-171-0/+3
| | | | | | | | | | - nonWritableCurrentDir() function not valid test when run as root on unix platform so add skip. Change-Id: I0c5ee685d3bdeaf3d5d2e0bb93ba7d7796fd1028 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Changed qpixmap unittest to work from installation directoryKurt Korbatits2012-01-172-23/+7
| | | | | | | | | - Changed to use QFINDTESTDATA and TESTDATA Change-Id: I962fb8093db5bd83208ebd59ec0cf82005add590 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Changed qpainter unittest to work from installation directoryKurt Korbatits2012-01-172-10/+4
| | | | | | | | | - Changed to use QFINDTESTDATA and TESTDATA Change-Id: If75ae2b8e39f6388f4e84ed4aa2681b5a5917e81 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Changed qicoimageformat unittest to work from installation directoryKurt Korbatits2012-01-172-9/+5
| | | | | | | | | - Changed to use QFINDTESTDATA and TESTDATA Change-Id: Icbc823d87cdf6fd36a8ef10ade8e4bca7d9b1c3b Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changed qclipboard unittest to work from installation directory.Kurt Korbatits2012-01-172-9/+8
| | | | | | | | | | - made test depend on copier and paster to make sure they are built first. - Changed to use installTestHelperApp() to deploy helper apps. Change-Id: I39e4f2ddcc3c735e17256db5638bf8a3495362f6 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>