summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Remove implicit margin on bulleted lists when exporting to HTMLEskil Abrahamsen Blomfeldt2009-09-041-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When we export a bulleted list to HTML, we add a meta-block around the list items to set the bullet style of the list (<ul> or <ol>.) This block will implicitly have a margin, even if the list itself does not in the internal document. The result is that exporting a list to HTML and then reloading it will give a different apperance, because the 0 margin of the original was not saved. The fix is to always set the meta-block's margin to 0, since it is only there to set the bullet style and should not affect the layout at all. Task-number: 201228 Reviewed-by: Simon Hausmann
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-09-04116-3263/+452
|\ \
| * | Stylesheet: Do not crop the text in tabsOlivier Goffart2009-09-041-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we did not reiimplement SE_TabBarTabText to force the parentstyle to call the virtual function back, we got the normal style margins in addition to the one by the stylesheet. Also added test for !hasNativeBorder to suport cases where we just specify a border Reviewed-by: jbache Task-number: 196326
| * | Fix the QStyleSheet test with pulse.Olivier Goffart2009-09-041-1/+2
| | | | | | | | | | | | | | | | | | | | | The windows manager was moving the window behind our back, making the test fails sometimes Reviewed-by: Thierry
| * | Fixed once-in-a-while failing tst_QGraphicsItem::selected test.Gabriel de Dietrich2009-09-041-1/+1
| | | | | | | | | | | | | | | | | | Added event information in QTest::mouse* warning message. Reviewed-by: Olivier
| * | tst_QLocalSocket::writeToClientAndDisconnect addedJoerg Bornemann2009-09-041-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | In this test case the server writes data to the client and disconnects at once. After this, the client socket must still be able to read the data and then close itself. Task-number: 260631 Reviewed-by: phartman
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Jason McDonald2009-09-04100-3146/+104
| |\ \
| | * | Generate Q_UNUSED(varName) only when varName was not used in ↵Jarek Kobus2009-09-04100-3146/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retranslateUi(Class varName) method. Autotests for uic updated accordingly Task: 260784 RevBy: Kai Koehne <kai.koehne@nokia.com>
| * | | Fix license headersJason McDonald2009-09-044-0/+60
| |/ / | | | | | | | | | Reviewed-by: Trust Me