summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Fix compilation of patternistexamples autotest.Jason McDonald2011-10-111-10/+10
| | | | | | | | | | This test had a number of incorrect relative paths for including snippets. Change-Id: I85061fb119faf6aff19225316d15a917746cd761 Reviewed-on: http://codereview.qt-project.org/6371 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-0732-52/+94
| | | | | | | | | | | 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: I7e6c67674ec669ad1ba7286648c7b4a501f4201c Reviewed-on: http://codereview.qt-project.org/6185 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove Symbian-specific code from tests.Jason McDonald2011-09-303-260/+0
| | | | | | | | | | Symbian is not a supported platform for Qt5, so this code is no longer required. Change-Id: I273c8bffdeec2bb026936d93c00ef3c79b7a1ad9 Reviewed-on: http://codereview.qt-project.org/5775 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fixed compile of tests using libQtXmlPatternsSDKRohan McGovern2011-08-121-2/+2
| | | | | | | | | Using $$QT_BUILD_TREE is not allowed. Use the correct values. Change-Id: I061c2d02d2d3a1cca114e464aa2a665f1dfa7e01 Reviewed-on: http://codereview.qt.nokia.com/2898 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Fixed compile of qtxmlpatterns against latest qtbase (`qs' macro)Rohan McGovern2011-07-081-5/+3
| | | | | | | | | | ee85e9cc10bc6874c892b09fa54b5dbd79854069 adds a macro qs(str), which breaks some code already using `qs' as a variable name. Change-Id: I92ee0f77499a5c815a940f719febee9d01b843cb Reviewed-on: http://codereview.qt.nokia.com/1331 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Reflect the move of the undo example.Casper van Donderen2011-07-011-1/+1
|
* Fixed failure of tst_qxmlquery::evaluateToReceiverRohan McGovern2011-05-271-1/+1
| | | | | | | | | | | Commit 8f95a19d330480bd86650c3d2e4e147d3bca5789 fixed the "missing Z" of QDateTime::toString for Qt::ISODate (see QTBUG-9698). The testdata for this test should have been updated at the same time, but it was forgotten. Reviewed-by: Jason McDonald Change-Id: I9b03519805533665afac15e0c970ac1c9e5d9ab4 (cherry picked from commit 237c620f6355fc81e85e65b9fd61249b0f77df5a)
* Update licenseheader text in source files for qtxmlpatterns Qt moduleJyri Tahtela2011-05-24126-2154/+2154
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Reduce usage of Q_ASSERT in autotests.Jason McDonald2011-05-181-1/+1
| | | | | | | | | | Using Q_ASSERT does nothing in release-mode builds, and in debug builds it causes tests to terminate prematurely. It is much better to use QVERIFY or QCOMPARE. Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551)
* Remove Q_ASSERT's from qabstractxmlnodemodel testJason McDonald2011-05-181-8/+7
| | | | | | | | | Report fatal errors rather than ignoring the errors in non-debug builds. Change-Id: I5d2f20113cbca11e272cf8fc2591e38b94d6853b Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 6f5751c45868a6dde51647462a331d49f848f2f0)