summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Stabilize some tests.Olivier Goffart2009-09-103-4/+8
| | | | | | | For the QFontMetrics test, the different way of computing the with of a text returs different value (1 to 2 pixel difference). So we need to make sure to use the same way to compute the with that the one used to ellide.
* Autotest fix for QMainWindowThierry Bastian2009-09-101-2/+6
| | | | | On embedded, the size of the screen is too small to leave enough space for the dock widgets.
* Make exception safety test work with XML output and warningsmread2009-09-101-2/+26
| | | | | | | | | | The QTestLib XML output system throws exceptions when the system is out of memory, which is normally quite reasonable. However when it is used to report warnings during a catch block, this terminates the program. So this change temporarily disables allocation failures while the warning is being recorded. Reviewed-by: Jason Barron
* CompilePaul Olav Tvete2009-09-101-2/+8
| | | | Reviewed-by: Jeremy Katz
* Fixed tst_selftests failure.Rohan McGovern2009-09-101-6/+6
| | | | | It's acceptable for the exceptionthrow test to output: terminate called after throwing an instance of `int'
* Fixes another SQL Server autotest result.Bill King2009-09-101-2/+2
|
* tests/auto/qfiledialog/qfiledialog.pro fixedJoerg Bornemann2009-09-091-3/+3
| | | | Reviewed-by: thartman
* tests/auto/qdirmodel/qdirmodel.pro fixedJoerg Bornemann2009-09-091-2/+2
| | | | Reviewed-by: thartman
* tests/auto/qfile/test/test.pro fixedJoerg Bornemann2009-09-091-4/+4
| | | | Reviewed-by: thartman
* tests/auto/qdir/qdir.pro fixed after destroying it during Symbian mergeJoerg Bornemann2009-09-091-12/+8
| | | | Reviewed-by: thartman
* Account for right bearing in QFontMetrics::boundingRect(string)Eskil Abrahamsen Blomfeldt2009-09-091-1/+13
| | | | | | | | | | | | | QFontMetrics::boundingRect() that takes a string needs to account for the right bearing of the last glyph, as it is documented to be the rectangle that contains the pixels of the text. I've added a test for this, and fixed tst_QFontMetrics::elidedText() to use boundingRect() to find the actual width of the text drawn (width() will return the advance of the text, which is larger than the actual width of the pixels.) I've also fixed a small typo in the "len" -> "ilen". Reviewed-by: Simon Hausmann
* Fix crash/bug in QGraphicsItem's subFocus handling.Andreas Aardal Hanssen2009-09-091-0/+11
| | | | | | | | Removes dangling subFocusItem pointers when changing focus after reparenting. This change also includes a mini-optimization when adding focusable items to an inactive scene. Reviewed-by: brad
* Only active QGraphicsScenes can have active input focus.Andreas Aardal Hanssen2009-09-095-20/+143
| | | | | | | | | | | | | | | | | This change ensures that only active scenes can have active input focus items. If you try to set input focus on items that are in an inactive scene, these items will gain input focus only when the scene is activated. For scenes attached to a view, this change should only fix the bug that you could have a blinking line edit in a scene when the view is inactive, meaning you couldn't type into the line edit. For scenes that have no view, you now must activate the scene in order to give the items active input focus. This will affect those who use QGraphicsScene with custom key and focus handling. Reviewed-by: brad
* Remove ItemAutoDetectsFocusProxy from QGraphicsItem.Andreas Aardal Hanssen2009-09-091-71/+0
| | | | | | | | | | | | This change partially reverts f68fed388dcdba6ab6dad3af4933bcd3aa123cf8, which was an attempt at getting FocusRealms working. Turns out this approach is wrong. The flag behaves badly when reparenting, and the feature conflicts with plain old setting focus. Discussed with Aaron; this change was already reverted in the kinetic-declarativeui branch. Reviewed-by: TrustMe
* skip tst_qscriptdebugger on Windows CE < 6Joerg Bornemann2009-09-091-0/+19
| | | | | | Currently the QScriptEngineDebugger uses far too much memory. Until task 261062 is resolved, we skip these test cases. Discussed with Kent.
* Do not run the respectHFW autotest on all platforms.Jan-Arve Sæther2009-09-091-0/+4
| | | | | | | | It fails on some platforms because of a bug in the autotest. There might be more platforms also, but these are the ones that currently report the problem. Reviewed-by: paul
* Stabilized QTableView testGabriel de Dietrich2009-09-091-1/+1
| | | | This test would crash once in while.
* Stabilize QFontMetrics testGabriel de Dietrich2009-09-091-3/+3
| | | | Reviewed-by: Olivier
* Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-092-3/+3
|\
| * tst_qhostinfo: Increased timeoutMarkus Goetz2009-09-091-1/+1
| |
| * Stabilize QFontMetrics testOlivier Goffart2009-09-091-2/+2
| |
* | Added #ifdef Q_OS_SYMBIAN quard for ealier commit d78717e7Janne Anttila2009-09-091-2/+12
|/
* Fixed the headers autotest for the latest LPGL header.Martin Smith2009-09-091-2/+3
| | | | The resource compiler still generates files that don't have the LPGL header.
* Fix for tst_QThread::adoptedThreadAffinity() failure on WindowsPrasanth Ullattil2009-09-091-9/+12
| | | | | | | | beginthread() is not reliable when the new thread exits fast. So we are changing this to use _beginthreadex() instead. Reviewed-by: Trond Reviewed-by: Bradley T. Hughes
* Fixed all but one of the failures in the headers autotest.Martin Smith2009-09-091-1/+2
| | | | The resource compiler still generates files that don't have the LPGL header.
* Getting text widget OOM tests working in Symbianmread2009-09-091-4/+8
| | | | | | | | | | | | | | There is one actual bug fix, checking for null pointer return. The exception safety test code now initialises the fonts system. The S60 fonts system does not survive OOM testing without this. Otherwise some duplicate tests are removed and code tidied up. Reviewed-by: Liang Qi Reviewed-by: Harald Fernengel Reviewed-by: Alessandro Portale
* Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-093-9/+6
|\
| * More robust graphicsview testOlivier Goffart2009-09-091-3/+1
| |
| * Tweak the testPaul Olav Tvete2009-09-091-0/+1
| | | | | | | | | | | | Give it another spin through the event loop, to make sure that all the painting gets done. (This is not connected to the glib timer event test failure.)
| * Try to fix tst_q3popupmenu with slow windows managerOlivier Goffart2009-09-091-6/+4
| |
* | Fix for E32User-Cbase 69 panic, when runnign QtNetwork autotestsJanne Anttila2009-09-091-7/+16
|/ | | | Reviewed-by: Janne Koskinen
* Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-094-25/+41
|\
| * Make the QGraphicsViews more rebost regarding slow window managerOlivier Goffart2009-09-094-25/+41
| |
* | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-091171-4828/+5100
|\ \ | |/
| * Fixes autotest for MS SQL ServerBill King2009-09-091-1/+4
| |
| * Fixes missing autotest, also cleanup of code.Bill King2009-09-091-34/+55
| |
| * Update license headers again.Jason McDonald2009-09-091165-4657/+4658
| | | | | | | | Reviewed-by: Trust Me
| * Merge commit '4feb4019cfc144cef4cd9177d52e52dee9ebdf32' into 4.6Rohan McGovern2009-09-091-0/+26
| |\ | | | | | | | | | | | | | | | Conflicts: tests/auto/network-settings.h tests/auto/qpainter/tst_qpainter.cpp
| | * Fixed bug in drawImage() when fall-back code path is used.Samuel Rødal2009-09-081-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | We need to floor instead of round to prevent rectangles that are on the edge from being shifted one pixel down / right. Task-number: 258776 Reviewed-by: Kim
| | * Tests: Do not execute network tests at all if DNS setup is broken.Markus Goetz2009-09-081-0/+14
| | | | | | | | | | | | Reviewed-by: Jesper
| * | Fix windows implemetation of QLocalSocket to emit bytesWritten() signalabcd2009-09-091-7/+54
| | | | | | | | | | | | | | | | | | | | | | | | Have QWindowsPipeWriter emit a bytesWritten signal and have QLocalSocket connect this to its own bytesWritten signal. This change contains an autotest to check for the signal emission. Previously there was no implementation to emit the signal.
| * | tst_qbytearray: set SRCDIR to ./ on Windows CEJoerg Bornemann2009-09-081-5/+6
| | | | | | | | | | | | Reviewed-by: thartman
| * | exception safety fix for QList::operator+= (const QList&)mread2009-09-081-25/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The refactoring of current++ and src++ out of the new line makes the code easier to understand but it also seems to be significant at least in the ::isComplex case. I suspect that the ordering increment operations vs throw from new is not well defined, or not implemented as you might hope (with the ++ happening very last). The changes in the catch blocks mean that it deletes the created objects, rather than trying with the first failed object. The test code has been updated with a +=(Container) test, and to force testing of both static and moveable types. Reviewed-by: Harald Fernengel
| * | network-settings.h: Check for DNS setup only when neededMarkus Goetz2009-09-081-1/+2
| | |
| * | Revert "network-settings.h: Compile fix relating to some tests"Markus Goetz2009-09-081-0/+2
| | | | | | | | | | | | This reverts commit 69e5a3fce4d355822367dc1a17179a364111632e.
| * | network-settings.h: Compile fix relating to some testsMarkus Goetz2009-09-081-2/+0
| | | | | | | | | | | | Reviewed-by: TrustMe
| * | Fix QWS autotests after S60 integrationPaul Olav Tvete2009-09-085-5/+0
| | | | | | | | | | | | Reviewed-by: trustme
| * | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-081-7/+10
| |\ \
| | * | Make tst_qmdiarea more robustOlivier Goffart2009-09-081-7/+10
| | | |
| * | | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-0819-84/+183
| |\ \ \ | | |/ /