summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove QT_{BEGIN,END}_HEADER macro usageSergio Ahumada2013-01-2836-140/+0
| | | | | | | | | The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb and is no longer necessary or used. Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html Change-Id: I74e76ed86361fbbf8957bf7a0540f2bd3350eb0a Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* make qtbase source dependency explicitv5.0.0-rc2Oswald Buddenhagen2012-12-121-2/+3
| | | | | Change-Id: I7682d9b75a41f6084834a08db3f37925d5153afe Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* make use of qt_headersclean.prfOswald Buddenhagen2012-12-112-66/+2
| | | | | Change-Id: If4dc7b40b9222113cb11d31409a39272004c38d1 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* fixing linking against non-installed libsOswald Buddenhagen2012-12-041-0/+1
| | | | | | Task-number: QTBUG-27427 Change-Id: I947d67b242e5a882f08a0672eaad076f818bf29d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Always get the default flags from QAIM.Stephen Kelly2012-11-271-1/+1
| | | | | Change-Id: I89abe8fdbd836804624a669296ae673230149472 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* Doc: Modularized Qt XML Patterns documentation.Jerome Pasion2012-11-231-11/+11
| | | | | | | | | | | | | -moved snippets, images, documentation to src/xmlpatterns -fixed \snippet tag -ported module information from qtdoc repository -enabled "make docs" for the module -set up qdocconf file and .index file -updated tests/auto/patternistexamples to point to the new snippet locations Change-Id: Ifd10733c277c6dbacac42898c8e7bacd00d23f27 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* CMake: Remove obsolete test_modules testv5.0.0-beta2Stephen Kelly2012-11-013-74/+0
| | | | | | | The generated module_includes test is a super-set of this test. Change-Id: Ibd292df016adede59d0fb5d02c0ec387c8039a9b Reviewed-by: Rohan McGovern [inactive] <rohan.mcgovern@nokia.com>
* CMake: Test module includesStephen Kelly2012-10-311-0/+6
| | | | | Change-Id: I87c2686c2ac2c5f7fb93395175c780701551b9d7 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Tests: Use qInstallMessageHandler()Kai Koehne2012-10-162-7/+7
| | | | | | | qInstallMsgHandler got deprecated in Qt 5. Change-Id: I4f2b7cad5f2b6a1d1c617e41a62ee0cbf11bcd47 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix XmlListModel memory leakAri Koivisto2012-10-144-1/+9
| | | | | | | | | | | | This is a forward port of a memory leak fix committed to Qt 4.8 (QTBUG-15191). The fix includes all changes except changes to qitem_p.h which has changed in Qt 5.0. Additionally fix qxmlquery autotest failure introduced in the original Qt 4.8 patch. Task-number: QTBUG-27357 Change-Id: Ia0e916d9d6bccea014d28920cef48d6e47e8f04f Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Build fix after QVariant change.Jędrzej Nowacki2012-10-103-10/+10
| | | | | | | | QVariant(Qt::GlobalColor) was removed in Qt5. Change-Id: I08b89fc6799e3645755dd435cc8b861fafd9fd05 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Remove invalid URIs from testing with QXmlQueryThiago Macieira2012-10-081-4/+1
| | | | | | | | | | | QXmlQuery requires proper URIs/URLs and these two aren't valid. A scheme is never empty and a path cannot contain a colon before the first slash. QUrl has been pointing out that new error condition since 7d62f8ace542e04e3ddf92eec4fdad8d34ac9585 Change-Id: Ic206908345f45b1cce0a3733584a65b02b8c2791 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-24128-3083/+3083
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I34508f293d75832657f79479e2a8c184e873e154 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-112-3/+0
| | | | | Change-Id: Ide097efe50d6d1d4b42ef6980c83f3e9ad7d2ba1 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-0134-0/+34
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: Iab3d9fa844e74b7f8a17dbe1c26f9df6fa8dfadc Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Test that the package configs for QtXmlPatterns work.Stephen Kelly2012-07-205-0/+90
| | | | | Change-Id: I20afce7ea2f8c2d1ee0dcaaae9963e36b9cdf977 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* don't reference $$QT_SOURCE/BUILD_TREE - they're unavailable hereOswald Buddenhagen2012-07-066-20/+18
| | | | | | | Change-Id: I31bed7091294dea96ab06f05aa90267757d23c82 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* make test suite properly shadow build compatibleOswald Buddenhagen2012-06-2812-128/+130
| | | | | Change-Id: I42331f1894c6c09d098d84fc41f96c40f4725907 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-272-2/+2
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - setup of PKGCONFIG* variables (automated now) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments Change-Id: Ie8a638b3c3a1a6a3d37fc410435bbc2b4a068ecf Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* tests: No need to exclude files after the move out of Qt.Holger Hans Peter Freyther2012-06-271-5/+1
| | | | | | | | The test made sense when being located in the monolithic Qt repository but right now the test is not needed. Change-Id: If4212c0a9d16cd210a6b031c95000491e5948515 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Changed tests to work from install directorySergio Ahumada2012-05-313-0/+6
| | | | | | | - Changed tests to use TESTDATA Change-Id: Iee07e4a98d2617e1bce4a3caaf67ea581479f3c7 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* test: Change SRCDIR to use QFINDTESTDATASergio Ahumada2012-05-281-26/+25
| | | | | Change-Id: I92455dbde3326348293c1fb37aba128ebb721acf Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* QtXmlPatterns: Fix compiler warnings.Friedemann Kleint2012-05-252-9/+7
| | | | | | | | | | QString conversions, assigned/unused variables, braces around ambiguous else. Also fixed coding style in the affected lines to make the sanity bot happy. Change-Id: I85e440861ec9e8177a6cf9a017dc981a25212f54 Reviewed-by: Mark Brand <mabrand@mabrand.nl>
* Fix for exceptions being turned off by default.Toby Tomkins2012-05-211-0/+2
| | | | | | | | | | The qtbase change 2b21dd69d6a4e47f0ec3d3958ab1def0983ce76c has turned off exceptions by default. This change enables them for one test that relies on them. Change-Id: Idbbfe27595f4dc8cd7118aac66203fb7c228003c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* qxmlquery: Update incorrect test data for incorrect test.Toby Tomkins2012-05-101-2/+2
| | | | | | | | | | | | The test is converting bytearray data to a string value, this is correct when compared against the test data, but not when compared against the comments in the code. This started to fail due to the default QString codec changing from latin1 to utf8. Task-number: QTBUG-25711 Change-Id: Ied540bdadb395de388de7baadc99217ff4acf734 Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
* Change remaining uses of {to,from}Ascii to {to,from}Latin1 [other]Thiago Macieira2012-05-031-4/+4
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Ib84e307f486cb3049f0b61a667caa40799394f86 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* QAbstractItemModel::reset is deprecated.Thiago Macieira2012-05-031-1/+6
| | | | | | | | Remember to properly notify that the model is resetting *before* we start to reset it. Change-Id: I88931c60ff5800b53f23a63c3766d7c705845cca Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Don't use the QRegExp methods that modify the objectThiago Macieira2012-04-242-2/+2
| | | | | | | | | | | | | | QRegExp matching methods modify the object, which we don't want to. In particular, when we receive a QRegExp from the user or we store in a context that might require thread-safety, make sure we make a copy before using it. QRegularExpression has no such shortcoming. Task-number: QTBUG-25064 Change-Id: I2c4d5f4b60d6b3569568103cd7107cd2adaa3ae8 Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Update XmlPatterns test suite scriptHonglei Zhang2012-04-234-31/+83
| | | | | | | | Remove obsolete code related with p4. Update the test suite download script. wget is preferred than cvs. Change-Id: Ic8b2ae43862371b792f95f0afc3032ee9d04b394 Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
* Use a QMap instead of a QHash for the regexp flagsThiago Macieira2012-04-201-1/+1
| | | | | | | | | | This is unit-tested, so we need a predictable order. Therefore, we can't use QHash anymore. Besides, this is just for 4 elements, so there shouldn't be a perceptible overhead. Change-Id: I878f77982e8070f3bc30bd2458e26e61b22f313d Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Update QtXmlPatterns module name in documentationqt-v5.0.0-alpha1Honglei Zhang2012-03-222-2/+2
| | | | | | | | | | According to new module name convention, QtXmlPatterns is replaced with Qt XML Patterns in all documentation. Task-number: QTBUG-24775 Change-Id: I3bb3fffc29836dc1cd0e798dca48bfd9e2089821 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Fix line endins on xmlpatterns test case data filesMiikka Heikkinen2012-02-231-0/+1
| | | | | | | | Added required files to .gitattributes Task-number: QTBUG-24450 Change-Id: Ib924221f7110f166952589c164d4b45fdeb472ee Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Windows: Fix local file URLs in two autotestsMiikka Heikkinen2012-02-232-2/+10
| | | | | | | | | | | QUrl has been made more stricter when it comes to local files, so just giving an absolute path with drive letter as URL is not going to work anymore, as the drive letter will be interpreted as scheme. Fixed two failing cases related to this issue to use proper URLs. Task-number: QTBUG-24446 Change-Id: I63afd6b5fd8531bc347316b5dbfc19e4ad7f8115 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fixed failure of tst_xmlpatterns due to Qt plugin loading changesRohan McGovern2012-02-221-6/+28
| | | | | | | | | | | | The test tries to verify that the xmlpatterns command outputs nothing on standard error. Qt makes this difficult by warning about some plugins (unrelated to xmlpatterns) using the old plugin API. Those plugins should be updated, but the warnings are irrelevant to xmlpatterns, so ignore them. Change-Id: I3c8cb0145a326a82eed3db547c5ae68315ec3cf1 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix QUrl handling after QUrl changes.David Faure2012-02-021-4/+0
| | | | | | | | | toString() is fine for most usages but here the result is made part of XML bits, so toEncoded() is necessary so that '<' and '>' are percent-encoded. Change-Id: I41832cefe3ae12cab13531f17095d0804a2e86d9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Mark expected failures in tst_qxmlqueryRohan McGovern2012-01-311-0/+4
| | | | | | | | | | Recent changes to QUrl in qtbase (e650dd3 and 27d9fef) have caused a regression in this test. Task-number: QTBUG-23953 Change-Id: Ibccad0c4f8d8a3aa9dcb05fef34d2c05a5d578c3 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Purge the Symbian support from this moduleHolger Hans Peter Freyther2012-01-3112-40/+14
| | | | | | | | | | This continues were 70e6c71f7e8e4c12672075e7477f4f1d99f320e6 stopped and removes Symbian support from the .pro files and the examples. Change-Id: I760645d6e19cccb50d505340c3a08bacc7190105 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-31126-126/+126
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie14feff161cca83c53750e22a6204d34c3cba52c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix build on Mac OS XTor Arne Vestbø2012-01-234-4/+4
| | | | | | | | | We depended on the SDK library without also setting the libary include path (only the framework include path). Change-Id: Ia1d61bfb54f040c55bac49baa8496a88a9136880 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-23126-126/+126
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I4a78fc4951be48d46135f4a5e0072bd1a8061ea9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-09126-126/+126
| | | | | | Change-Id: Iba74aff1aba680f7b56314f3acae3478be9d3e56 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QtXmlPatterns-test: Use QFINDTESTDATA to locate test data.Friedemann Kleint2011-12-224-4/+38
| | | | | | | | | | Introduce QFINDTESTDATA and set the current directory of the process to the test directory such that it works indepently of the working directory of executable location. Change-Id: I8105ba0fa7d9da7ff920d10f3a083433e2590e9f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
* Fix sanity check of network test serverJason McDonald2011-11-304-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of Qt's autotests depend on access to a test server. For each test that used the test server, tests/auto/network-settings.h created a global object to verify at startup that host lookups to the test server will succeed (and abort the test otherwise). There are two problems with that approach: First, the sanity check happens before main(), and thus before the test framework has started logging test results. This means that if the sanity check aborts the test, the failure message will not be visible in the test output if logging to a file or will cause the output to be malformed if logging to the console in XML format. Second, since Qt 4.7, the host lookup uses a class that connects to the QCoreApplication instance, which doesn't exist before main(), and this caused all tests that included network-settings.h to output an error message from QObject::connect() at the beginning of the test. Both of these problems are solved by removing the global object from network-settings.h and instead performing the sanity check in the initTestCase() function of each test. Task-number: QTBUG-22876 Change-Id: I1ae004cf7a10a02d34d7ec517ef5515eb722aecf Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove needless include from xmlpatternsvalidator test.Jason McDonald2011-11-301-1/+0
| | | | | | | | Nothing from network-settings.h is used in this test. Change-Id: I78454610cf1289658ec370234ee3eefa5720ae82 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Make private headers usable, and use them in the tests.Rohan McGovern2011-11-1120-109/+93
| | | | | | | | | | | | | The xmlpatterns private headers were not including each other correctly, making them unusable unless the source directory was available and in INCLUDEPATH. Fix it so that the private headers include each other by <private/...>, allowing them to work for an installed Qt. Change-Id: I9c7cbad219ed141c356d9ea097e67e0fb2fa550c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Temporary skip xmlquery test on MacHonglei Zhang2011-11-111-0/+2
| | | | | | | | | | | xquerySupport generates lots of "select: Invalid argument" on Mac environment. This should be checked. The test case should pass on Mac later when there is more resource on xmlpatterns. Bug report QTBUG-22556 is created to get it fixed. Change-Id: Iad37d21b84e7539e104a2b4595531b8ad9a58b07 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix test compilation on Windows.Friedemann Kleint2011-10-211-1/+1
| | | | | Change-Id: Iad81e6c7908ba1f931c8634cb1c16649999a864c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Remove SkipMode parameter from QSKIP.Jason McDonald2011-10-215-17/+15
| | | | | | | | | The SkipMode parameter has been removed from the API in qtbase, so it must be in all calls to QSKIP. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: I8f5d6488637acd5e38d3c8dd418ff3776b2f3778 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: explicitly put the path to xmlpatterns toolsRohan McGovern2011-10-142-8/+17
| | | | | | | | | | | Previously, these tests used whatever version of the xmlpatterns tools happened to be first in PATH, which was quite error-prone. QLibraryInfo can tell us exactly where the binaries are supposed to be located, so use that instead. Change-Id: I556ffe1819560afbe6a8bfa5272fcf2a760a14f7 Reviewed-on: http://codereview.qt-project.org/2799 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Remove dead code from autotests.Jason McDonald2011-10-1233-151/+5
| | | | | | | | | | | tests/auto/xmlpatterns.pri ensured that QTEST_XMLPATTERNS was always defined, so the preprocessor directives using this define were redundant. Change-Id: Id21d8b5cc4586ce0e92c1ee4a22c582eb3f76245 Reviewed-on: http://codereview.qt-project.org/6493 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>