summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCoreRobert Hogan2011-05-242-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move Qt's copy of the Mozilla public suffix list from QtNetwork to QtCore and use it to expose a new API function QUrl::topLevelDomain(). This function returns the section of the url that is a registrar-controlled top level domain. QtCore now exports a couple of functions to the other Qt modules: qTopLevelDomain, a helper function for QUrl::topLevelDomain(); and qIsEffectiveTLD(), a helper function for QNetworkCookeieJar. The motivation for this new API is to allow QtWebKit implement a Third-Party Cookie blocking policy. For this QtWebKit needs to know the element of the url that is the registry-controlled TLD. Without this knowledge it would end up blocking third-party cookies per host rather than per registry-controlled domain. See also https://bugs.webkit.org/show_bug.cgi?id=45455 Merge-request: 1205 Task-number: QTBUG-13601 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com> (cherry picked from commit 154402f56dcf8303a6ce601a52215226af8d31ba)
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-stagingQt Continuous Integration System2011-05-244-5/+58
|\| | | |/ |/| | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging: add auto test for SSL certificates containing utf8 characters fix coding style for merge request re. utf8 characters in SSL certs Use OpenSSL X509_NAME_ENTRY API to parse UTF8 subjectName/issuerName
| * add auto test for SSL certificates containing utf8 charactersPierre Rossi2011-05-234-5/+58
| | | | | | | | | | | | Task-number: QTBUG-7912 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com> (cherry picked from commit 19c77b5e5e5fefedafcfbd587c3fbb4114d7c641)
* | Add task numbers for disabled autotestsJason McDonald2011-05-231-2/+2
| | | | | | | | | | Change-Id: I830cdbf60ad1edf554b19cd7e6fdbd459f3e160f Reviewed-by: Trust Me
* | Fix inconsistency between Qt and ICU in Shift-JIS codec with regards to ↵Simon Hausmann2011-05-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ASCII range Qt's Shift-JIS codec maps the characters 0x5c and 0x7e to unicode yen (0x5a) and unicode overline (0x203e). ICU and (as it turns out) Symbian's native Shift-JIS codec preserve 0x5c and 0x7e when converting to Unicode. Qt's behaviour creates a problem when loading japanese web sites that are encoded in Shift-JIS. When they reference external JavaScript files, those tend to inherit the current page encoding (unless the character set is explicitly specified). Consequently JavaScript tends to contain regular expressions (as a built-in feature of the language), which in turn uses backslashes for escape sequences. Therefore it is crucial that the encodings used to decode the script preserve the ASCII range, i.e. do not convert 0x5c (ascii backslash) to something else. This patch corrects the behaviour of Qt's Shift-JIS codec to leave all characters < 0x80 unaltered in the process of conversion to and from Unicode. Task: QTBUG-19335 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> (cherry picked from commit 8e321cd869da7ff1cf0168da41aa0246b44867cc)
* | add test case for ipv6 url parsingshiroki2011-05-201-4/+53
| | | | | | | | | | Reviewed-by: Thiago (cherry picked from commit fd043eb78212de5935bc101624818070e1b4fb1b)
* | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-202-24/+30
|\ \ | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: tst_qhostinfo: Fix IPv6 lookup detection on Windows. Fix incorrect hardware address on systems without getifaddrs() Make QHostAddress.toString() follow RFC-5952 for IPv6 address format.
| * | tst_qhostinfo: Fix IPv6 lookup detection on Windows.Martin Petersson2011-05-201-7/+7
| | | | | | | | | | | | | | | | | | | | | Moved the QTcpServer test to init winsock before we use getaddrinfo. Reviewed-by: Shane Kearns (cherry picked from commit 0ccf01368adcabbb25958a55976083f72116a2d5)
| * | Make QHostAddress.toString() follow RFC-5952 for IPv6 address format.Martin Petersson2011-05-201-17/+23
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-18426 Reviewed-by: Peter Hartmann (cherry picked from commit ebc134db484eee31491836b619aad1ee86e3070e)
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-205-5/+5
|\| | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Allow arthur tests to use private headers.
| * | Allow arthur tests to use private headers.Jason McDonald2011-05-205-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The tests include qapplication_p.h, therefore the .pro files need to specify QT += core-private gui-private Change-Id: Icd6d7ba31f79b8c7b15e0327dd5ce44c7f486221 Reviewed-by: Rohan McGovern
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-205-452/+2
|\| | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Remove mention of qt3support in makeselftest Remove Qt3Support test data from lancelot test Remove Qt3Support code from algorithms autotest Don't link qt3support lib in QMessageBox autotest
| * | Remove mention of qt3support in makeselftestJason McDonald2011-05-201-1/+0
| | | | | | | | | | | | | | | | | | Change-Id: Ie081d3a543ff30e3e58e154cbfea57a29bb24210 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support test data from lancelot testJason McDonald2011-05-201-60/+0
| | | | | | | | | | | | | | | | | | | | | | | | The data was already commented out and thus unused. Change-Id: I234cea542bbacf429b6cb1fc0c9feec4f80e47e5 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from algorithms autotestJason McDonald2011-05-202-389/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qHeapSort and qBubbleSort were Qt3 functions that were replaced by qSort. During modularization, the Qt3Support header containing these routines (q3tl.h) was moved into the algorithms autotest, presumably because that was the only thing that still included the header. However, as these routines are not part of Qt5, they don't need to be tested anymore. This commit deletes the q3tl.h header and the test functions that tested it. Change-Id: I52eed7b4b4db3bd671dc6dbd752642bc9e783c30 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Don't link qt3support lib in QMessageBox autotestJason McDonald2011-05-201-2/+1
| | | | | | | | | | | | | | | | | | Change-Id: I0126dc790e88639ad524cdf719ced2a444df9b71 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-20982-563/+119
|\| | | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Remove Qt3Support code from QVariant autotest. Remove obsolete test data Remove Qt3Support code from QMenuBar test, part 2.
| * | Remove Qt3Support code from QVariant autotest.Jason McDonald2011-05-201-62/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the four columns of test data that were only used for testing Qt3Support features. Change-Id: I93116b64ac49b0d6812595dfd58962ba8afbdad1 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove obsolete test dataJason McDonald2011-05-20980-408/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove test data for Qt3Support functions from the QTextStream autotest. The code that used this data was removed in an earlier commit. Change-Id: I26e34cdefd47287c6992cf1d31276a40994c607c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from QMenuBar test, part 2.Jason McDonald2011-05-201-93/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | Follow-up to previous commit: remove the "_noQt3" suffixes on test function names and the "_Qt4" suffixes on variable names. Change-Id: I000e87357b025930b0065efc1d0de05c2cd07bba Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-201-1/+1
|\| | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Don't crash if windowmanager is not initialized Compile fix for 64bit Linux.
| * | Compile fix for 64bit Linux.Friedemann Kleint2011-05-191-1/+1
| | | | | | | | | | | | Reviewed-by: Thiago <thiago.macieira@nokia.com>
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-2040-49/+76
|\| | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Tests: Fix some compile warnings.
| * | Tests: Fix some compile warnings.Friedemann Kleint2011-05-1940-49/+76
| | | | | | | | | | | | As they are now compiled by default.
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-191-2/+0
|\| | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Remove warning from QColor::setNamedColor().
| * | Remove warning from QColor::setNamedColor().Samuel Rødal2011-05-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning is pointless as the user can anyway check if the color is valid after making the call by calling isValid(). Using isValidColor() could be used but it has a big performance overhead as validation then needs to be done twice. Task-number: QTBUG-19098 Reviewed-by: Erik Verbruggen (cherry picked from commit a423ff5474b89028eeca95b254f5184311c8223b)
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-1941-3072/+548
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Compile IPC tests. Always call XInitThreads. Remove redundant #ifdef's from benchmarks Improve coding style of qdatastream test Don't use Qt3Support in arthur test suite. Remove Qt3Support code from QMenuBar autotest Remove Qt3Support code from QSplitter autotest Remove Qt3Support code from QSharedPointer autotest Remove Qt3Support code from QComboBox autotest Remove Qt3Support test code from accessibility autotest tests: allow unstable tests to be marked with CONFIG+=insignificant_test
| * | Compile IPC tests.Friedemann Kleint2011-05-191-0/+1
| | |
| * | Remove redundant #ifdef's from benchmarksJason McDonald2011-05-1923-158/+13
| | | | | | | | | | | | | | | | | | | | | | | | Preprocessor directives that refer to QT_VERSION's less than Qt 5 are redundant in the qt5 modules. Change-Id: Id3a9c5f0ba07b72d1c99e51c12a240570bf0d58e Reviewed-by: Rohan McGovern
| * | Improve coding style of qdatastream testJason McDonald2011-05-191-525/+520
| | | | | | | | | | | | | | | | | | | | | | | | Expand literal tabs and format switch statements in accordance with the Qt Coding Style. Change-Id: I64e638b730f4be2bc707136b1b7e5585d6808731 Reviewed-by: Rohan McGovern
| * | Don't use Qt3Support in arthur test suite.Jason McDonald2011-05-1910-230/+1
| | | | | | | | | | | | | | | | | | Change-Id: I5acc05aeb7db5aedbbe35594f46d614319a299b2 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from QMenuBar autotestJason McDonald2011-05-191-465/+0
| | | | | | | | | | | | | | | | | | Change-Id: I63677bfe56ec92c1c96e2df5619ee434bdc91fdb Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from QSplitter autotestJason McDonald2011-05-191-657/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Note that the functions suffixed with a 3 were actually the Qt4 versions, which is why this patch looks strange. Change-Id: Iec874153248f57b8696a289cb13eb60fecc5699c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from QSharedPointer autotestJason McDonald2011-05-192-11/+6
| | | | | | | | | | | | | | | | | | Change-Id: I1bb3752e3a5101e4a2990d0cac01406e6023ee2e Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support code from QComboBox autotestJason McDonald2011-05-191-19/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the second-last column of test data (labeled testQt3Support) of the insertItem test function. Change-Id: I2158bdb5a77c9eaf1424998f51fb03a8df934490 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
| * | Remove Qt3Support test code from accessibility autotestJason McDonald2011-05-191-1007/+0
| | | | | | | | | | | | | | | | | | Change-Id: Id31836ea52da71b40c0bcbb67d9beffc70b90400 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-191-293/+9
|\| | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Remove Qt3Support code from QDataStream autotest.
| * | Remove Qt3Support code from QDataStream autotest.Jason McDonald2011-05-191-293/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | QWMatrix and QColorGroup were Qt 3 classes and QPalette is substantially different in Qt 3 and Qt 4. Change-Id: Iee176fcf237c3f9ac2ffd7f1fd9e4963dc4df39c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-1938-3944/+50
|\| | | |/ |/| | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: tests: fixed compilation of tst_qtextstream QUiLoader, QAbstractFormBuilder: Introduce errorString(). Enable configuration for Xcb Fall back to using paths for large fonts in drawStaticText() Add ability to work around non-standard GLES implementations Fix broken drawing with large fonts using QStaticText and FreeType Remove Q_ASSERT's from qdbustype autotest Remove autotest code for Qt3Support library.
| * tests: fixed compilation of tst_qtextstreamRohan McGovern2011-05-191-1/+1
| | | | | | | | | | | | | | | | Compilation of this autotest was broken by a strange qmake bug, QTBUG-19393. Work around it by putting a space between two string literals. Change-Id: I494c486dd11858eeaf98d7a04021c74fcf3cbba7
| * Remove Q_ASSERT's from qdbustype autotestJason McDonald2011-05-181-4/+4
| | | | | | | | | | | | Change-Id: I276750d8acda3744ee8a9c424b2da0a08e8c7461 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
| * Remove autotest code for Qt3Support library.Jason McDonald2011-05-1837-3939/+45
| | | | | | | | | | | | | | | | | | | | This commit deals with the simple cases -- mostly just removing blocks of code enclosed in #ifdef QT3_SUPPORT. Later commits will deal with the trickier cases. Change-Id: I280dea25b3754be175efe62fc7e5e4e7c304e658 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* | QT_USE_QSTRINGBUILDER to fix source compatibilityOlivier Goffart2011-05-184-8/+4
|/ | | | | | | | | | | | In 4.8 we added support for using StringBuilder with QByteArray. But this is breaking source compatibility for people that used QT_USE_FAST_OPERATOR_PLUS in Qt 4.7. So we introduce a new macro Notice that QT_USE_FAST_CONCATENATION was not working without QT_USE_FAST_OPERATOR_PLUS, so we remove the checking of that macro. Reviewed-by: joao (cherry picked from commit 8447f5616be731d78081f326bb9cb3f5aa9087a4)
* Make QDataStream test compile and re-enable itJason McDonald2011-05-185-8399/+9
| | | | | | | | | | This test can't use svg files as QtSvg is a separate module, on which qtbase does not depend. This commit changes the test to use a pixmap that was already present in the test. Change-Id: Iab4ce70aa376a7d2985b69816bd251ce4f5d46cf Task-number: QTBUG-19244 Reviewed-by: Rohan McGovern
* Reduce usage of Q_ASSERT in autotests.Rohan McGovern2011-05-1822-172/+160
| | | | | | | | | | | | 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) Change-Id: Ic39972b685ca35a9a71d9c8d03e8dae31481fb19
* Fixed license header.Rohan McGovern2011-05-181-0/+42
| | | | | | (cherry picked from commit 2caea6081fc46217636f0ab70d09891efd2d2864) Change-Id: I086c8cb2d0ccc691d8af68804132f048bee7fa4b
* Remove Q_ASSERT's from qsharedmemory autotestJason McDonald2011-05-182-2/+4
| | | | | | | | | Report a fatal error rather than ignoring the error in non-debug builds. Change-Id: Ib6ef993e6e0c65bd9adea994ea7b454cc147f3d4 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 637456edef085d1825f15429cd921f2f0d4bd6a2)
* Remove Q_ASSERT's from QNetworkReply autotestJason McDonald2011-05-181-7/+11
| | | | | | | | | | Rather than aborting in debug builds and failing mysteriously in release builds, report fatal errors in all builds. Change-Id: I020b06e19b7ffc8ae4413e1756259f4ca608f253 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit bbfefe1b764cd41b7e677f26621fb6e76a67f9d7)
* Remove Q_ASSERT from QXmlStream autotestJason McDonald2011-05-181-3/+3
| | | | | | | | | | | Report a meaningful fatal error if an unknown token type is encountered rather than ignoring the error in non-debug builds and reporting an uninformative message in debug builds. Change-Id: Id219f3c7cbd4ba3e9875cb81f833720d5d153132 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 1c85fc559ee456a165527d23cb1b7dc237f5504b)
* Remove Q_ASSERT's from QXmlStream autotestJason McDonald2011-05-181-5/+10
| | | | | | | | | Report fatal errors rather than ignoring them in non-debug builds. Change-Id: I62dd177e2f391e64c12314bf224f8952ed6f3144 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 4793c3bd1dfddcc98eae12e5caf29ff6aabd31b2)