summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* task256322_highlight() failed due to lack of delays before QVERIFYs.Gabriel de Dietrich2009-08-061-5/+8
| | | | | | Last QVERIFY still failing. Reviewed-by: olivier
* Support _NET_WORKAREA on Xinerama setups in QDesktopWidgetBradley T. Hughes2009-08-061-2/+10
| | | | | | | Instead of ignoring _NET_WORKAREA, merge it with each screen geometry to give a meaningful availableGeometry() for all screens. Reviewed-by: denis
* Added some debug output to the qdesktopwidget manualtestDenis Dzyubenko2009-08-061-0/+31
| | | | | | | To make sure we don't receive same signals several times from a QDesktopWidget, added the debug output whenever the signal is emitted. Reviewed-by: trustme
* Fix the setStyleShouldChangeSpacing test function for Mac.Olivier Goffart2009-08-061-0/+2
|
* Fixes one more autotest in QCompleter: task247560_keyboardNavigationLeonardo Sobral Cunha2009-08-061-0/+4
| | | | Reviewed-by: paul
* Fix compilation of the testOlivier Goffart2009-08-061-8/+5
| | | | | view doesn't exist anymore and the qWait should be enough to make the x11 call useless
* Fixed QComboBox test on slow window managerOlivier Goffart2009-08-061-2/+2
|
* Fixes autotest task253125_lineEditCompletion in QCompleterLeonardo Sobral Cunha2009-08-061-1/+7
| | | | Reviewed-by: paul
* Q3ProgressBar autotest fixed on macThierry Bastian2009-08-061-3/+4
| | | | | | | - We need to process events in order to leave time to mac to update the widget. - When in undefined case, the progressbar is animated, so the number of paintevents might be bigger than 1.
* Useless Q_ASSERTs made test crash.Gabriel de Dietrich2009-08-061-2/+0
| | | | | Reviewed-by: thierry Reviewed-by: olivier
* Test fail resolved. Waiting time after dialog.exec() was too short.Gabriel de Dietrich2009-08-061-1/+1
|
* Normalize line endings before comparing the lines.Jan-Arve Sæther2009-08-061-7/+18
| | | | | | We already trimmed away any \r from the expected line, but we did not trim away \r from the actual line. That caused some false negatives on windows.
* Resolved tst_QCssParser::extractFontFamily_data on jackychanOlivier Goffart2009-08-061-2/+5
| | | | That machine has no 'Times New Roman' the test was reliying in
* Update baseline (project.ts.result) for the good:backslashes case.Jan-Arve Sæther2009-08-061-2/+2
|
* Merge commit 'origin/4.5'Rohan McGovern2009-08-0633-201/+237
|\ | | | | | | | | | | | | | | Conflicts: src/gui/dialogs/qfiledialog.cpp src/gui/dialogs/qfiledialog_win.cpp tests/auto/qicoimageformat/tst_qicoimageformat.cpp tests/auto/qscriptqobject/qscriptqobject.pro
| * Cleaned up test naming and platform-specific tests.Rohan McGovern2009-08-0632-201/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When an autotest fails to compile, there's no way to determine which testcase(s) have been prevented from running. Our results parsing tools have been guessing, under the assumption that a directory called `qdogwalker' always contains a testcase named `tst_qdogwalker'. That wasn't true for all our tests, so let's make it true. Also changed the platform-specific tests so that qmake will simply skip those tests on unsupported platforms, instead of wasting time compiling a useless QTEST_NOOP_MAIN test.
| * Fixes hangup when pressing key in QListWidgetOlivier Goffart2009-08-051-1/+22
| | | | | | | | | | | | | | | | | | If there is severals matching items but all of them are disabled, it would have produced an infinite loop. Block the loop once we reach an already matched item. Task-number: 258949 Reviewed-by: Thierry
| * Cocoa: Menus show old selected values.Richard Moe Gustavsen2009-08-051-1/+23
| | | | | | | | | | | | | | | | | | | | We never told Cocoa that it needed to redraw the window view when a window was shown. This is implicit if the window is shown for the first time, but needs to be done explicit if you hide and show it again. Task-number: 254672 Reviewed-by: bnilsen
* | Adds qgraphicsgridlayout & qgraphicstransform to autotest buildLeonardo Sobral Cunha2009-08-051-16/+18
| | | | | | | | | | | | Also removed tabs from auto.pro Reviewed-by: trustme
* | Autotest: add QSharedPointer and QWeakPointer tests for QWidget tooThiago Macieira2009-08-053-1/+155
| | | | | | | | | | | | | | | | I don't want to link the tst_qsharedpointer test to QtGui, so I created a new test. This is testing only the basic manipulations. In special, it's not testing invalid constructs.
* | Restore symmetry between QSharedPointer and QWeakPointer on QObjects.Thiago Macieira2009-08-051-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the previous commit, you could create a QWeakPointer from any QObject-derived object. It's possible because QObject now has a pointer to the QWeakPointer's d-pointer. However, if you did: QSharedPointer<QObject> obj(new QObject); QWeakPointer<QObject> weak1(obj); QWeakPointer<QObject> weak2(obj.data()); Then weak1 would shared d-pointers with QSharedPointer, but weak2 wouldn't. Also, weak1.toStrongRef() would work, but weak2.toStrongRef() wouldn't. This change makes QObject know where the d-pointer created by QSharedPointer is, so weak2 would get the same d-pointer. As a nice side-effect, you can check if a given QObject is shared by trying to promote its QWeakPointer to QSharedPointer. Reviewed-by: Bradley T. Hughes
* | Add support for using QWeakPointer with QObject, replacing QPointer.Thiago Macieira2009-08-051-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem with QPointer is that it's a simple QObject*. So the only way for QPointer to do what it's supposed to do is if the object it's pointing to clears all QPointers when getting deleted. That means the QObject must know each and every QPointer pointing to it. To make matters worse, QPointers can be deleted while the object they're pointing to also gets deleted. So deleting QObjects must do locking. The solution to the QPointer problem is that both QObject and the "QPointer" reference something outside the QObject. This way, QObject doesn't have to lock anything to destroy itself: it's simply setting a volatile integer to zero when it gets deleted. Since the integer is outside the QObject, the integer is also refcounted. It's also O(1), so there's no problem having as many "QPointer". The two-atomic-ints structure is exactly what QSharedPointer and QWeakPointer use internally. We just abuse this structure for QObject needs, setting the strong reference count to -1 to indicate that it's a QObject that cannot be managed by a QSharedPointer. But QWeakPointer can still work and replace QPointer neatly. Reviewed-by: Bradley T. Hughes Reviewed-by: Jarek Kobus
* | Fix failing autotest tst_QPlainTextEdit::lineWrapModes()mae2009-08-051-1/+6
| | | | | | | | | | | | QPlainText edit does lazy line wrapping only for the visible blocks. Resizing the editor in the auto test thus has to make it wide enough that at least some characters are visible for the block to be laid out.
* | Fixed setting a style shet on a QSpinBox to change the arrow possitionOlivier Goffart2009-08-051-0/+83
| | | | | | | | | | | | | | If you only set the position, of the button without setting a geometry, it did not work. Task-number: 259226
* | Fix regressions introduced by 31edb4d5a63b9b3c28cce1c4ca6eb99f62a09759Alexis Menard2009-08-051-0/+43
| | | | | | | | | | | | | | | | | | | | The commit 31edb4d5a63b9b3c28cce1c4ca6eb99f62a09759 introduced regressions in filters which breaks the mac native dialog, the non native dialog with HideNameFilterDetails activated. Task-number:259105 Reviewed-by:olivier Reviewed-by:prasanth
* | sequential animation group: add autotest for pause/resumeThierry Bastian2009-08-051-0/+36
| |
* | Add benchmark for deleting an item with many children.Andreas Aardal Hanssen2009-08-051-0/+11
| | | | | | | | | | Task-number: 229124 Reviewed-by: TrustMe
* | Add benchmarks for QGraphicsItem::setParenItem().Andreas Aardal Hanssen2009-08-052-1/+26
| | | | | | | | | | | | | | | | | | | | Ensure we test simple and deep constructs of setParentItem(). These benchmarks don't cover slowness in ancestor flag updating. QVariant is already identified as a contributor to this slowness, as is updating of the depth value (a deep tree crawl). Reviewed-by: Aaron Kennedy
* | Compile fix (QGraphicsItem::setXRotation was removed).Andreas Aardal Hanssen2009-08-051-13/+1
| | | | | | | | | | | | | | a6ea9ce6990003856ecadcca8ce9ddf37949363d removed this function; the benchmark was not updated. Reviewed-by: TrustMe
* | Merge AudioServices into mainline.Justin McPherson2009-08-0513-0/+765
| |
* | Merge branch '4.5'Bill King2009-08-053-4/+34
|\ \ | |/ | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
| * Get more database tests working/passing.Bill King2009-08-052-4/+18
| |
| * Fix ancestor flags that are not correctly update when reparenting.Alexis Menard2009-08-041-0/+16
| | | | | | | | | | | | | | | | | | updateAncestorFlags was not reseting the flags if you change the parent that have for instance itemsClipChildrenToShape to a new one that doesn't have that flag. Task-number:258956 Reviewed-by:bnilsen
* | Fixed bug where Q[Styled]ItemDelegate edition wouldn't terminate whenGabriel de Dietrich2009-08-041-0/+33
| | | | | | | | | | | | | | | | | | the item lost focus to an unrelated dialog. The tests against the active modal window was unnecessary. Task-number: 257859 Reviewed-by: olivier
* | Added input hints to QGraphicsItem.jasplin2009-08-041-0/+13
| | | | | | | | | | | | | | | | | | This patch allows for input hints to be set on a QGraphicsItem. Input methods use such hints to define its appearance/behavior (e.g. to allow for numerical input only). Reviewed-by: ahanssen Task-number: 254493
* | QParallelAnimationGroup pause resume fixedThierry Bastian2009-08-041-0/+33
| | | | | | | | | | | | | | | | | | If you resumed a parallel animation group, it would always restart (ie. stop and start) the animation which would reset its current time to 0 and trigger flickering. autotest included. Task-Number: 259102
* | QMenu now takes minimum width into account for the action rectsThierry Bastian2009-08-041-0/+12
| | | | | | | | | | | | | | The action now try to take advantage of the space given by a minimum width. Patch proposed initially by Aron Seigo and improved later on. Reviewed-by: Trustme
* | Fixes selectionModel::hasSelection return value after model::resetLeonardo Sobral Cunha2009-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | After resetting the model, the selectionModel::hasSelection() of the view should return false. Fixed the corresponding autotest, which was wrong. Task-number: 256502 Reviewed-by: thierry
* | Fixed "Hightlighted menu items not always selected" bug.Gabriel de Dietrich2009-08-031-0/+36
| | | | | | | | | | | | | | | | Menu paintEvent was not called when the mouse cursor lied between the menu item area and the menu frame border. Task-number: 258920 Reviewed-by: olivier
* | Ensure that we never increase the strong reference count up from zero.Thiago Macieira2009-08-031-1/+124
| | | | | | | | | | | | Also add some thread stress tests to try and detect doing it wrong. Reviewed-By: Bradley T. Hughes
* | Change the pointer-tracking code to work everywhere.Thiago Macieira2009-08-034-2/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if you create a QSharedPointer in code with pointer-tracking, you must ensure it gets deleted in code with pointer-tracking, otherwise the internal safety tracker will be "leaking" objects. The pointers would never get removed. And if any new pointer happened to have the same pointer address (which happens quite often), the tracker code would promptly abort the application. With this change, the untracking of the pointer is scheduled by the same code that creates the tracking. This is done by "abusing" the custom deleter code: - for the QSharedPointer that used ExternalRefCountWithDestroyFn already, we intercept the call to the destroy function and call the untracking function - for a normal QSharedPointer, we use the "normalDeleter" function as custom deleter and chain up above Note: the autotest only *really* works in release mode. Otherwise functions don't get inlined and do get merged by the linker. Reviewed-By: Bradley T. Hughes
* | Don't forget to delete the deleter object too in QSharedPointer.Thiago Macieira2009-08-031-0/+13
| | | | | | | | | | | | Destructors have to be run for the subobjects we initialise. Reviewed-By: Bradley T. Hughes
* | Remove the need for internal API in QSharedPointer.Thiago Macieira2009-08-032-41/+55
| | | | | | | | | | | | | | That way, this code can be compiled with an earlier version of Qt and should still work in new ones. Reviewed-by: Trust Me
* | Autotest: add a way to ensure that there are no safety-check pointers leakingThiago Macieira2009-08-031-0/+42
| | | | | | | | | | In the future, it would be nice to split the autotest in multiple functions at every check().
* | Merge branch '4.5'Thiago Macieira2009-08-0311-44/+369
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: src/corelib/tools/qsharedpointer.cpp src/corelib/tools/qsharedpointer_impl.h src/gui/dialogs/qcolordialog.cpp src/gui/painting/qwindowsurface_raster.cpp src/network/access/qnetworkaccessmanager.cpp tests/auto/qsharedpointer/externaltests.cpp
| * Autotest: disable the pointer-tracking tests in 4.5Thiago Macieira2009-08-031-0/+2
| | | | | | | | | | | | | | The functionality these tests tested was broken in 4.5 and has been disabled. Therefore, these tests simply cannot pass. It's fixed in 4.6.
| * Fix more database autotests.Bill King2009-08-032-4/+6
| |
| * Autotest: add a newline after the user program headers.Thiago Macieira2009-07-301-0/+1
| | | | | | | | | | | | | | | | If the user forgot to end their headers with a newline, the compilation would fail because the next line is #include <QtCore/QtCore>. Reviewed-by: Jesper Thomschütz
| * Disable benchlibtickcounter test by default.Rohan McGovern2009-07-291-3/+4
| | | | | | | | | | | | | | This test depends on some low-level features of the CPU and the OS scheduler which seem impractical to automatically verify independently of the test. So turn it off to stop its intermittent failures in our test farm.
| * Fixed failure of tst_qmake::simple_app_shadowbuild.Rohan McGovern2009-07-291-0/+1
| | | | | | | | Test needs a placeholder file to make sure its build directory exists.