summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.5'Thiago Macieira2009-05-225-1/+159
|\ | | | | | | | | Conflicts: src/corelib/kernel/qsharedmemory_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 various testsKent Hansen2009-05-221-18/+86
| | | | | | | | Trying to get coverage up to 100%
* | test what happens when changing to an invalid signal while state is activeKent Hansen2009-05-221-0/+6
| |
* | add tests for multiple signal/event transitions from same sourceKent Hansen2009-05-221-0/+68
| |
* | make sure signal transition is correctly unregistered/re-registeredKent Hansen2009-05-221-8/+27
| | | | | | | | | | | | When the signal or senderObject is changed while the state is active, the transition needs to be unregistered _before_ either property is changed, only _then_ can it be re-registered.
* | make sure event transition is correctly unregistered/re-registeredKent Hansen2009-05-221-0/+13
| | | | | | | | | | | | When the eventType or eventObject is changed while the state is active, the transition needs to be unregistered _before_ either property is changed, only _then_ can it be re-registered.
* | add qstatemachine autotest to auto.proKent Hansen2009-05-221-0/+1
| |
* | add some edge case tests for QStateMachine::start() & stop()Kent Hansen2009-05-221-0/+8
| |
* | Fix QEasingCurve autotestsLeonardo Sobral Cunha2009-05-221-15/+193
| | | | | | | | | | | | | | | | Easing curve autotests was converting the easing(qreal) to int before, but this is a very rough comparison and was failing due to different conversions to int, so now we do a qFuzzyCompare. Reviewed-by: Thierry
* | Merge branch '4.5'Thiago Macieira2009-05-223-1/+600
|\ \ | |/
| * 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
* | Reintroduce the unaligned-unaligned 32-bit code that I had removed out of ↵Thiago Macieira2009-05-221-11/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ignorance. If both pointers are out of 4-byte alignment, doing the first load will align them so we can do 32-bit comparisons. Lars's code had this before, but I misunderstood it and removed, thinking it was doing misaligned accesses. I experimented with moving the tail comparison above the 32-bit comparison to save a register, but it made things worse. Reviewed-By: Bradley T. Hughes
* | Add a benchmark for QString::operator==Thiago Macieira2009-05-222-0/+108
| | | | | | | | Reviewed-By: Bradley T. Hughes
* | Say hello to animation API & state machine APIKent Hansen2009-05-2227-66/+8628
| |
* | Fix the way the transform and the properties are marked as dirty in ↵Olivier Goffart2009-05-221-6/+44
| | | | | | | | | | | | QGraphicsItem Acknowledged-by: Thierry
* | Add properties to QGraphicsItem to change the transformations componentOlivier Goffart2009-05-223-0/+264
| | | | | | | | | | | | | | | | | | | | | | | | With the new properties it is possible to easily animate. Setting a transform using setTransform is incompatible with thoses properties. Accessing thoses propeties if you set previously a transform will give you the default values. Acknowledged-by: Code made with Andreas. Documentation written with Thierry. This still need a more in depth code review and documentation review. But it is urgent to commit now because the Animation API integration depends on it.
* | Merge commit 'origin/4.5'Samuel Rødal2009-05-201-4/+7
|\ \ | |/
| * 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
* | | tst_QHttpNetworkConnection: Compile fixMarkus Goetz2009-05-201-4/+5
| | | | | | | | | | | | Reviewed-by: Peter Hartmann
* | | Use a per object lock for signal/slotsOlivier Goffart2009-05-201-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That way we prevent the current possible race condition that may appears while touching signals slot while object are moved to different threads. For exemple, when we do sender->threadData->mutex->lock(); the sender can possibly be moved to another thread between the moment we get the pointer to the threadData and the moment we aquire the lock. We could check if we locked the right mutex and retry otherwise, but that would break if the threadData (and hence the mutex) get destroyed in between. The per object mutex is implemented with a thread pool. I'm not using the global QThreadPool because we might ends up locking two of their mutex, and that would be dangerous if something else holds a lock on the same mutex (possible deadlock) Putting the mutex pool in a Q_GLOBAL_STATIC doesn't work as it might result of the ppol being deleted before some other object in others Q_GLOBAL_STATIC structures There is no need to lock this mutex in moveToThread as this is safe. When emiting a signal, we do not need to lock the thread data, as the user must ensure that the object is not moved to a thread while emiting a AutoConnection signal. Reviewed-by: Brad
* | | Merge branch '4.5' of ../qt-45-documentationDavid Boddie2009-05-204-16/+46
|\ \ \ | | |/ | |/|
| * | 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
| |
* | Add string-->enum conversion for properties and slotsKent Hansen2009-05-201-2/+64
| |
* | Refactor the qimagereader autotest to work with shadow buildBenjamin Poulain2009-05-207-211/+224
| | | | | | | | | | | | | | | | | | Refactor the test of QImageReader to work with shadow build. Add two tests for the TIFF format Fix an error of the test of QImageWriter that prevented the cleaning of the created files after the test. Reviewed-by: Olivier
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-1919-45/+161
|\ \ | |/
| * 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