summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ \ | |/ /
| * | Fixes a regression in QListView in 4.6 regarding the selectionThierry Bastian2009-09-081-0/+30
| | | | | | | | | | | | | | | | | | | | | In icon mode, if you click on the viewport (with extended selection), the selection should be cleared when you release the mouse button. Reviewed-by: ogoffart
| * | Try to make test more robust.Olivier Goffart2009-09-0816-84/+130
| | | | | | | | | | | | | | | | | | | | | | | | By using QTRY_{COMPARE,VERIFY} instead of waiting an arbitrary amount of time waiting for the window manager to do his job. Also use QApplication::setActiveWindow which seems to be more robust then QWidget::activateWindow
| * | Fix autotestmae2009-09-081-0/+8
| | | | | | | | | | | | | | | The piece table test relied on previous automatic edit command grouping. The grouping now has to be enforced explicitely with beginEditGroup()/endEditGroup()
| * | Tests: Do not execute network tests at all if DNS setup is broken.Markus Goetz2009-09-081-0/+15
| | | | | | | | | | | | Reviewed-by: Jesper
* | | Fixed resolving absolute paths in Symbian.Miikka Heikkinen2009-09-081-3/+11
|/ / | | | | | | | | | | | | | | | | | | Fixed resolving absolute path using QFileInfo for paths that were relative but contained the drive letter (e.g. "c:my.dll"). Absolute paths should now be properly cleaned in Symbian, too. Task-number: 255326 Reviewed-by: Janne Anttila
* | Fixed some focus-related tst_qlineedit failures.Rohan McGovern2009-09-081-4/+5
| | | | | | | | | | | | There are many places where the test assumes that a widget gets focus after some fixed timeout. Change it to block until the widget really gets focus.
* | Add operator== and != to QGLFramebufferObjectFormatRhys Weatherley2009-09-081-0/+49
| | | | | | | | Reviewed-by: Sarah Smith
* | Network tests: Fix typo in network-settings.h to make it compileMarkus Goetz2009-09-071-1/+1
| |
* | tst_qnetworkreply: Check for NoError before event loop timeout.Markus Goetz2009-09-071-0/+7
| | | | | | | | | | | | | | This makes sure we show a proper "Host not found" error instead of the "Event loop timed out". Rev-By: Peter Hartmann
* | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-071-20/+0
|\ \
| * | Fix QScriptEngineAgent::functionExit (JIT enabled)Jedrzej Nowacki2009-09-071-16/+0
| | | | | | | | | | | | | | | | | | | | | Event functionExit was fixed, now returnValue is correctly passed as an argument to debugger. Few QEXCEPT_FAIL were removed from autotest. Reviewed-by: Kent Hansen
| * | Fix QScriptEngineAgent::exceptionCatch (JIT enabled)Jedrzej Nowacki2009-09-071-4/+0
| | | | | | | | | | | | | | | | | | | | | Event exceptionCatch fixed, now exceptionValue is correctly passed as an argument to debugger. Two QEXCEPT_FAIL were removed from autotest. Reviewed-by: Kent Hansen
* | | Minor fix to network-settings.h in Symbian OSJanne Anttila2009-09-071-5/+4
|/ / | | | | | | Reviewed-by: Aleksandar Sasha Babic
* | Fix some issues with Shift-selection in QAbstractItemViewFrank Reininghaus2009-09-071-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes some issues which occur when pressing the Shift key while selecting items (new unit tests included): 1. The offset of the visible area is missing at one point in QAbstractItemView::keyPressEvent, causing Shift-Arrow selection to fail if the view is scrolled down. 2. Shift-click and Shift-Arrow selection fail after a rubberband selection because d->pressedPosition does not correspond to a valid QModelIndex. The problems have been found in Dolphin: http://bugs.kde.org/show_bug.cgi?id=163451 Merge-request: 1426 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | Fix tst_QListView::task254449_draggingItemToNegativeCoordinates on MacOlivier Goffart2009-09-071-12/+8
| | | | | | | | | | On Mac, QWidget::repaint() is the same thing as update(), it needs to reenter the event loop to get processed (this has always been like that)
* | Fixed qsubmdiarea setFont test.Gabriel de Dietrich2009-09-071-1/+4
| | | | | | | | | | | | | | The compared fonts didn't have the same styleHint because it's resolved setting the font. Reviewed-by: Olivier
* | Fix tst_QItemDelegate::task257859_finalizeEdit on MacOlivier Goffart2009-09-071-1/+1
| | | | | | | | | | qFindChildren<QWidget*> would also find the QFocusFrame in addition to the line edit
* | Support setting font size in shorthand font propertiesEskil Abrahamsen Blomfeldt2009-09-071-1/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fontSizeAdjustment defaulted to 0 which means "medium" in internal semantics. This will override any font size you set in the short-hand. In other locations, fontSizeAdjustment defaults to -255 which has no meaning attached. To allow setting the font size in short-hand (as in "font: 20px Arial"), we can't default to a specific adjustment. Two tests are added: The first verifies the case that already worked, where you specify the font size using the "font-size" property. The other verifies the short-hand case and would previously fail. Task-number: 207189 Reviewed-by: Simon Hausmann
* | Stabilize QComboBox test.Olivier Goffart2009-09-071-5/+5
| | | | | | | | On Mac, there is long fading animation before the popups hide
* | Stabilize QFontMetrics testOlivier Goffart2009-09-071-3/+3
| | | | | | | | | | On Mac, the text may be elided if we give the exact length as the size. Giving one pixel bigger makes sure the text is not elided
* | Stabilize QTreeView testOlivier Goffart2009-09-071-8/+8
| |
* | New function added to QScriptEngineAgent autotestJedrzej Nowacki2009-09-071-0/+16
| | | | | | | | | | | | | | Function convert numeric ScriptEngineEvent::Type to QString. It is not used in test but really useful in debugging Reviewed-by: Kent Hansen
* | Few expected fails were fixed in QScriptEngineAgentJedrzej Nowacki2009-09-071-16/+1
| | | | | | | | | | | | | | | | | | functionExit event was partially fixed. The time point in JS execution with JIT enabled works now but still there is no returning value in few cases. Autotest was corrected. Reviewed-by: Kent Hansen
* | Mark these as fix later.Bill King2009-09-071-0/+5
| | | | | | | | | | The unicode logic is beyond me, leave these for fixing by someone else with more unicode knowledge.
* | Sample buffers are on by default for OpenGL/ES 2.0, off for others.Rhys Weatherley2009-09-071-0/+6
| | | | | | | | Reviewed-by: trustme
* | Unit tests for QGLFormat option constructorRhys Weatherley2009-09-071-0/+10
| | | | | | | | Reviewed-by: trustme
* | Unit tests for QGLFormat::defaultFormat and ::defaultOverlayFormat()Rhys Weatherley2009-09-071-0/+41
| | | | | | | | Reviewed-by: trustme
* | Unit tests for QGLFramebufferObjectFormatRhys Weatherley2009-09-071-0/+56
| | | | | | | | Reviewed-by: trustme
* | Unit tests for QGLFormat copy constructor and operator=Rhys Weatherley2009-09-061-0/+14
| | | | | | | | Reviewed-by: trustme
* | Update QGLFormat::operator== to include all fields.Rhys Weatherley2009-09-061-0/+83
| | | | | | | | | | | | | | The documentation says "Returns true if all the options of the two QGLFormats are equal", but that's not what it was doing. Reviewed-by: Sarah Smith
* | Merge branch '4.5' into 4.6Rohan McGovern2009-09-051-0/+12
|\ \ | |/ | | | | | | Conflicts: src/gui/itemviews/qlistview.cpp
| * Fix a regression with QListView::setRowHidden() when a root index is setAndy Shaw2009-09-041-0/+12
| | | | | | | | | | | | | | | | | | When setRowHidden() was called after a root index was set then it would not actually hide the row, if a root index is not set then it worked fine. Task-number: 260879 Reviewed-by: Jan-Arve
* | Updating line-numbers for linguist auto testsJoão Abecasis2009-09-0415-47/+52
| |
* | Fixed tst_QFiledialog::filesSelectedSignal where the selected directory to runGabriel de Dietrich2009-09-042-1/+11
| | | | | | | | | | | | the test may not have any file on it. Reviewed-by: Olivier
* | Fix tst_QTimer::moveToThread() on WindowsBradley T. Hughes2009-09-041-0/+40
| | | | | | | | | | | | | | | | | | | | We shouldn't fully unregister timers when the event dispatcher is stopped when a thread exits, since this releases the timerId back to the pool. Instead, only free the OS resources. Auto-test included. Reviewed-by: ogoffart
* | Fix crashes when moving descendents during destruction.Andreas Aardal Hanssen2009-09-041-0/+60
| | | | | | | | | | | | | | | | | | | | | | This fix prevents crashes in QGraphicsItem caused by calls to pure virtual functions as an item tries to access its dying parent. This happens when an item is moved by an ancestor during this ancestor's destructor. Autotests included. Reviewed-by: bnilsen
* | Make sure that top-level windows respect hfw/wfh constraint.Jan-Arve Sæther2009-09-041-0/+79
| | | | | | | | | | | | | | | | | | | | Note that the constraint is only enforced when resizing the window interactively. Calling setGeometry() will not try to enforce the constraint. See the graphicsview/flowlayout example for a "manual test". Task-number: 257455