summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery
Commit message (Collapse)AuthorAgeFilesLines
* Updated license headersAntti Kokko2016-01-218-136/+96
| | | | | | | | | | | From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) Change-Id: I1ddbce303f8c450d5bf1b553ab53843a83046bb5 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-10-142-1/+6
|\ | | | | | | | | | | | | Conflicts: tests/auto/xmlpatterns/tst_xmlpatterns.cpp Change-Id: Ib93b62f45d796dd3ed2d5d03f602699295f62705
| * Add baseline file for literalsequence.xq autotest.Jan Arve Saether2015-10-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | d17eba9d34f412e592c3b049c6c14fd9ccada87b added literalsequence.xq, but forgot to add the baseline file. This probably passed in 5.5 because the test was run twice (because of flakyness): 1. The first pass it would fail (but generate the baseline). 2. The second pass it would succeed because the baseline was already there Change-Id: If40ee6c57e97cb4cffc959e0f6bb768e610a76d4 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
| * Iterate Over the Items (Not the Operands) of a Literal SequenceDavid E. Narvaez2015-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | The current code iterates over the (empty) list of operands of a Literal Sequence, ignoring any items in it, so Literal Sequences are always ignored in the ExpressionSequence. Task-number: QTBUG-35897 Change-Id: I60341ac21c8e3b77bf6d8dfeebdbafe010844406 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* | Tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases.Friedemann Kleint2015-08-312-4/+3
|/ | | | | | | Fix usage of API that is marked deprecated. Change-Id: If9622110d9ab2b1796602144ff484cdc3ac1f014 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-178-56/+56
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I1dc468d4e08c2dfdc4643410220f18bc8ec450b9 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-248-152/+88
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: If9208b9c90bcea35bbfe6b9c10db7803e97767e0 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Fix typov5.3.0-rc1v5.3.0release5.3.0Sergio Ahumada2014-04-011-1/+1
| | | | | Change-Id: I4754f1bc1f9fb3e099fc7c7135ca0a933d9b7475 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* test: Don't fail *all* tests if the network test server is not set upold/5.2Sergio Ahumada2014-02-111-1/+17
| | | | | | | | | Since not all tests for tst_qxmlquery and tst_xmlpatterns depend on the network test server being set up, now we just fail those which really depend on it allowing the rest to be normally run. Change-Id: I0588cf986ffddea117cee680e07e1a8cc4d68436 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
* Update QXmlQuery test result after default date format change.Jędrzej Nowacki2013-09-231-1/+1
| | | | | | | | | QTime is not showing milliseconds by default anymore, when converted to QString. Change-Id: Iba745919ee1f034aebc75628a96efad5546f03c1 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fix tst_QXmlQuery::evaluateToReceiver failure.Mitch Curtis2013-06-051-1/+1
| | | | | | | | | | This patch fixes a test failure introduced by 15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c. Change the date format in allAtomics.ref file to include milliseconds. Change-Id: I8786e04976872da87cbc322d322c394cb0c62a67 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-108-8/+8
| | | | | | Change-Id: I5b7d4c1de139bebfff1b67d216c579835431e5d6 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fix XmlListModel memory leakAri Koivisto2012-10-141-1/+1
| | | | | | | | | | | | 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>
* 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-248-192/+192
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I34508f293d75832657f79479e2a8c184e873e154 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-011-0/+1
| | | | | | | | | | 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>
* make test suite properly shadow build compatibleOswald Buddenhagen2012-06-282-9/+3
| | | | | Change-Id: I42331f1894c6c09d098d84fc41f96c40f4725907 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changed tests to work from install directorySergio Ahumada2012-05-311-0/+2
| | | | | | | - 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>
* 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>
* Don't use the QRegExp methods that modify the objectThiago Macieira2012-04-241-1/+1
| | | | | | | | | | | | | | 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>
* Windows: Fix local file URLs in two autotestsMiikka Heikkinen2012-02-231-1/+9
| | | | | | | | | | | 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>
* 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-312-13/+3
| | | | | | | | | | 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-318-8/+8
| | | | | | | | | | | 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>
* Update obsolete contact address.Jason McDonald2012-01-238-8/+8
| | | | | | | | 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-098-8/+8
| | | | | | Change-Id: Iba74aff1aba680f7b56314f3acae3478be9d3e56 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix sanity check of network test serverJason McDonald2011-11-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 SkipMode parameter from QSKIP.Jason McDonald2011-10-211-2/+2
| | | | | | | | | 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>
* Remove dead code from autotests.Jason McDonald2011-10-122-8/+0
| | | | | | | | | | | 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>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-071-2/+3
| | | | | | | | | | | 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-301-1/+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 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>
* 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-248-136/+136
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Remove Q_ASSERT from qxmlquery autotestJason McDonald2011-05-181-3/+2
| | | | | | | | | Report fatal error in all builds not just debug builds. Change-Id: I6c64435d0382a160ac3602e5243fad9d9585f057 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit cb84f3d1a1499485d4c5314b6e94745c6def6888)
* Remove Q_ASSERT's from qxmlquery autotestJason McDonald2011-05-182-4/+11
| | | | | | | | | | Make url validity check part of the regular test logic rather than aborting in debug builds and ignoring the error in release builds. Change-Id: Ic00610c04ee596f519b9d461748b401719cf41c0 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 1acca025082bad566e5fe7078aa41f73316cd40b)
* Remove Q_ASSERT from qxmlquery autotestJason McDonald2011-05-182-1/+8
| | | | | | | | | | Make stream validity check part of the regular test logic rather than aborting in debug builds and ignoring the error in release builds. Change-Id: I07dcba079eecd88bf16672c6019a8d6f5a829fee Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit b841d30f25a87f8aafc4624fe09a3503ddc6ccda)
* Initial import from the monolithic Qt.Qt by Nokia2011-04-2723-0/+4369
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12