summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtaxis2009-05-259-6/+766
|\ | | | | | | | | | | | | | | Conflicts: src/corelib/io/qfile.cpp src/corelib/kernel/qsharedmemory_unix.cpp src/network/socket/qnativesocketengine_p.h src/network/socket/qnativesocketengine_unix.cpp
| * Pressing enter in a QPlainTextEdit embedded on a itemview should insert a ↵Olivier Goffart2009-05-221-0/+78
| | | | | | | | | | | | | | | | | | | | newline Do the same special case as for QTextEdit (yes, this is a pitty that we have special cases like that Reviewed-by: Thierry Task-number: 252532
| * Unconditionally open temporary files in ReadWrite modeJoão Abecasis2009-05-221-0/+15
| | | | | | | | | | | | | | | | | | | | | | Although QTemporaryFile hides QFile::open(OpenMode), this function is still available when accessing instance methods through the base class. Unconditionally setting ReadWrite allows the temporary file to be re-opened with different flags. Task-number: 248223 Reviewed-by: Thiago
| * QTemporaryFile would forget fileName while file was "closed"João Abecasis2009-05-221-0/+23
| | | | | | | | | | | | | | Note: this showed even if the file descriptor was kept open. Reviewed-by: Peter Hartmann Reviewed-by: Thiago
| * Fix auto testJoão Abecasis2009-05-221-1/+8
| | | | | | | | | | | | | | | | | | When copying a resource file to the native file system the (read-only) permissions also get copied. On Windows platforms, this was preventing a test file from being deleted. Reviewed-by: Peter Hartmann Reviewed-by: Thiago
| * QFile::copy: close source file when using fallback mechanismJoão Abecasis2009-05-223-1/+36
| | | | | | | | | | | | | | Also added check in test case for rename fallback. Task-number: 165920 Reviewed-by: Thiago
| * Add an autotest to check that the network test server worksThiago Macieira2009-05-223-1/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test verifies that the network test server is behaving as expected. I think I caught all the services we need testing in the server, but there's still some work to be done: 1) verify that the FTP files are there where they're supposed to be 2) verify that FTP writable areas are writable 3) verify that the HTTP server has the correct files too 4) verify that the HTTP server requests credentials for the protected area 5) attempt to do NTLM authentication to verify the password (probably can't be done with netChat) 6) add Windows SMB tests (//qt-test-server/etc.) 7) add SQL tests (connecting to the SQL server ports) It would be good as well if we could not use QtNetwork. If you break QtNetwork, this test breaks too, so we don't know where the fault is. However, rewriting networking code will add another source of bugs (same for the NTLM authentication). Reviewed-By: João Abecasis
| * Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Jedrzej Nowacki2009-05-202-15/+21
| |\
| * | I made test more stable. There was no sens to check hardcoded size ofJedrzej Nowacki2009-05-201-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | header + file. Now test check only size of the real file content, assuming that it is rather boring (9,5MB of '\0'). It simply skip header. Reviewed by Peter Hartmann
* | | Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-publicJanne Anttila2009-05-221-15/+12
|\ \ \
* | | | Fixed qsslsocket auto test compilation for Symbian.Janne Anttila2009-05-222-16/+20
|/ / /
* | | Long time when waiting in test case will not help in this case.Aleksandar Sasha Babic2009-05-211-3/+5
| | |
* | | Resolving some merge issues.Aleksandar Sasha Babic2009-05-211-2/+2
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-publicAleksandar Sasha Babic2009-05-2130-82/+376
|\ \ \
| * \ \ Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtaxis2009-05-2030-82/+376
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/network-settings.h tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp tests/auto/qiodevice/tst_qiodevice.cpp tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp tests/auto/qsocks5socketengine/tst_qsocks5socketengine.cpp tests/auto/qsslsocket/tst_qsslsocket.cpp
| | * | make QSslSocket test work also for shadow buildsPeter Hartmann2009-05-202-15/+21
| | |/ | | | | | | | | | | | | | | | | | | ... by being able to load the certificates also in a shadow build directory Reviewed-by: Thiago
| | * Fix incorrect copyright year in some license headers.Jason McDonald2009-05-201-1/+1
| | | | | | | | | | | | Reviewed-by: Trust Me
| | * Added auto-test for QComboBox::setItemDelegate and task 253944Stian Sandvik Thomassen2009-05-201-0/+24
| | |
| | * qwidget autotest fixed for Windows CEJoerg Bornemann2009-05-191-0/+1
| | | | | | | | | | | | | | | | | | | | | translucentWidget: On Windows mobile the ColorRedWidget is initially moved to the taskbar position where it cannot be grabbed. Reviewed-by: mauricek
| | * make the changedSignal test more robustKent Hansen2009-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | On some platforms (e.g. Mac) it's not sufficient to call processEvents() only once. Reviewed-by: Andreas Aardal Hanssen
| | * Adpot more code to use QtNetworkSettings instead of hard coded names.Frans Englich2009-05-196-55/+54
| | | | | | | | | | | | Reviewed-By: Peter Hartmann
| | * Use QtNetworkSettings for IMAP server, instead of hard coding.Frans Englich2009-05-192-4/+4
| | | | | | | | | | | | Reviewed-by: Peter Hartmann
| | * Use QtNetworkSettings, don't hard code IMAP host name. This should fix ↵Frans Englich2009-05-191-2/+2
| | | | | | | | | | | | failures in Berlin.
| | * network autotests: do not use imap.troll.no for testingPeter Hartmann2009-05-192-8/+8
| | | | | | | | | | | | | | | | | | ... but use the test server instead Reviewed-by: Frans Englich
| | * Don't "hope" that a connection gets picked up; do it right!Norwegian Rock Cat2009-05-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While downloadProgress and uploadProgress both work on local files. There still may be a delay before the connection is actually picked up. This usually is caught by the processEvents(), but could be missed. Therefore, do a wait if we don't have any pending connections and work in ALL cases. Reviewed-by: Markus Goetz
| | * grabWindow in MacGui test was grabbing the wrong area.Norwegian Rock Cat2009-05-191-6/+1
| | | | | | | | | | | | | | | | | | | | | I think grabWindow was borken and we were compensating for it in the auto test. Now that it works as documented our workaround broke. Reviewed-by: Morten Sørvig
| | * qmake autotest: Remove dependency on Qt3 Support on WindowsJoão Abecasis2009-05-191-4/+2
| | | | | | | | | | | | Reviewed-by: jbache
| | * make splitter autotest pass on mac tooKent Hansen2009-05-191-3/+2
| | | | | | | | | | | | It's not enough to call processEvents() just once on all platforms.
| | * Windows CE autotest compile fixesJoerg Bornemann2009-05-194-4/+4
| | | | | | | | | | | | | | | | | | Not always is "." in the includes path... Reviewed-by: mauricek
| | * fix compiler warnings when qreal == float in tessellator autotestJoerg Bornemann2009-05-191-4/+4
| | | | | | | | | | | | Reviewed-by: mauricek
| | * Fix autotest for qitemmodel on windowsJens Bache-Wiig2009-05-191-1/+1
| | | | | | | | | | | | | | | | | | Fixed a broken include Reviewed-by: Thomas Zander
| | * Fixed autotest tst_QPrinter::printDialogCompleter on Windows.Kim Motoyoshi Kalland2009-05-191-2/+3
| | | | | | | | | | | | | | | QApplication::activeWindow() returns null for native dialogs, so null cannot be passed as the target widget when calling QTest::keyClick().
| | * Fix autotest compile for qitemview on windowsJens Bache-Wiig2009-05-191-1/+1
| | | | | | | | | | | | Reviewed-by: Thomas Zander
| | * Fixed autotest failure in tst_QImage::smoothScale3()Samuel Rødal2009-05-191-3/+3
| | | | | | | | | | | | | | | | | | | | | Some optimized smooth scaling functions were introduced in 4.5, so increase the tolerance level a small bit. Reviewed-by: Trond
| | * Fix handling of dynamic casts in QSharedPointer.Thiago Macieira2009-05-181-9/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's wrong to assume that static_cast<> is allowed everywhere where dynamic_cast<> is allowed. For example, if class C derives from both A and B, then you can dynamic_cast<B *>(ptr_to_A), but you can't static_cast. So introduce a helper for dynamic casts that doesn't do static_cast. Reviewed-by: Olivier Goffart
| | * Fix QNetworkDiskCache to expire the oldest files first.Benjamin C Meyer2009-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When expiring cache files use a QMultiMap, when using a QMap not all files are put into the map because often many files (downloaded or updated at the same time) will have the same creation QDateTime and so only one will go into the QMap who's key is QDateTime. Reviewed-By: Thiago Macieira Reviewed-By: Peter Hartmann
| | * QCss: font-family handle fallback font specsOlivier Goffart2009-05-181-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if one specify more than one parameter in font-family, e.g., font-family: Verdana, Arial Qt should fallback on the second font if the first cannot be found. QFont::setFamily handle the case when the family name contains a comas, so we do not need to handle that specially in the css parser code. Task-number: 252311 Reviewed-by: Thomas Zander
| | * Fix race condition in ~QObjectOlivier Goffart2009-05-181-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | while using QOrderedMutexLocker::relock we might unlock our mutex protecting the 'senders' list for a short moment. Another thread may then modify or remove element on the list. Therefore, we need to recheck the consistency of the list once we did that. Also, we cannot call removeSender because that will remove every connections, making impossible for another object destroyed in the same time to clean up the senders list, so call derefSender instead. Reviewed-by: Brad
| | * QCalendarWidget::setDateTextFormat() reset the format is the date is invalidBenjamin Poulain2009-05-181-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | According to the documentation, QCalendarWidget::setDateTextFormat() should reset the format if the date is not valid. New tests included for the formating of this widget. Task-number: 252943 Reviewed-by: Olivier
* | | Need some longer timeout values in test cases.Aleksandar Sasha Babic2009-05-211-4/+16
| | |
* | | Some time related values have been changed to compensate forAleksandar Sasha Babic2009-05-201-0/+21
|/ / | | | | | | | | Open C 1.5.3 pre-release having slow performance, at least as seen in the emulator.
* | Merge branch 'eventDispatcherFixes'axis2009-05-191-0/+51
|\ \
| * | Changed the way that Qt handles active objects.axis2009-05-191-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change was done in order to get a more round-robin type of event handling, at least for Qt active objects. With this change, each object will only execute once within each call to processEvents, like other platforms. This is required for certain tests using Open C, because some of the function calls in that library take much longer than their desktop counterparts. Therefore the timer expires before the previous timer handler was finished and the test gets stuck executing the same timer over and over. By returning from processEvents after one iteration, we prevent this. RevBy: Aleksandar Sasha Babic AutoTest: Passed
| * | Added test for checking that timers only fire once per processEvents.axis2009-05-191-0/+54
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-publicAleksandar Sasha Babic2009-05-1812-10/+778
|\ \ \
| * \ \ Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtaxis2009-05-1812-10/+778
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | | | | | | | Conflicts: configure.exe src/corelib/kernel/qcoreapplication.cpp Configure.exe not rebuilt because the changes are irrelevant for the S60 port. We'll rebuild it before merging back.
| | * Adapted uic test-baseline to the icon generation change 251248)Friedemann Kleint2009-05-151-6/+6
| | | | | | | | | | | | Task-number: 251248
| | * HTTP authentication: return error if authentication cannot be handledPeter Hartmann2009-05-151-0/+52
| | | | | | | | | | | | | | | | | | | | | return error upon receiving an unknown authentication method (e.g. WSSE); before we were just silently returning. Reviewed-by: Thiago Macieira
| | * QColor::toCmyk() does not convert the color if it is already in CMYKBenjamin Poulain2009-05-141-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | QColor::toCmyk() converted the color to RGB and then to CMYK. If the color was already in CMYK, this conversion change it. The color is now returned directly if it is in CMYK Reviewed-by: Ariya Task-number: 253625
| | * Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Andy2009-05-141-0/+110
| | |\