summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'qt/master' into kinetic-graphicseffectBjørn Erik Nilsen2009-08-07491-168325/+7217
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/graphicsview.pri src/gui/graphicsview/qgraphicsitem.cpp src/gui/graphicsview/qgraphicsitem.h src/gui/graphicsview/qgraphicsitem_p.h src/gui/graphicsview/qgraphicsscene.cpp tests/auto/auto.pro
| * Fixes: QComboBox keyboard search not working properly when current index is -1Olivier Goffart2009-08-071-0/+36
| | | | | | | | | | | | | | | | If the current index is invalid, start would be (0,0) but would be skiped Task-number: 220195 Reviewed-by: thierry
| * xmlpatterns autotest: make tests work from shadow directoryPeter Hartmann2009-08-072-67/+73
| | | | | | | | | | | | ... by prepending SRCDIR to the loaded files. Reviewed-by: TrustMe
| * fixing qmainwindow autotestThomas Hartmann2009-08-071-0/+3
| | | | | | | | | | | | | | On windows mobile with native menubar integration the menubar is not a child of the mainwindow Reviewed-by: Joerg
| * Extra check in pluginloader autotestThomas Hartmann2009-08-071-0/+1
| | | | | | | | | | | | This extra check prevents a crash if plugin loading fails Reviewed-by: Joerg
| * Adding QApplication::processEvents to autotestThomas Hartmann2009-08-071-0/+1
| | | | | | | | | | | | Windows CE is sometimes a little bit slow Reviewed-by: Joerg
| * Fixing deployment for shadow builds on Windows CEThomas Hartmann2009-08-072-3/+2
| | | | | | | | Reviewed-by: Joerg
| * tst_QFile::copyAfterFail fixed on WindowsJoerg Bornemann2009-08-061-0/+1
| | | | | | | | | | | | We cannot remove a file that's still opened. Reviewed-by: ossi
| * tst_qsharedpointer compile fix for Windows CEJoerg Bornemann2009-08-061-0/+4
| | | | | | | | | | | | There's no time() on Windows CE. Reviewed-by: Daniel Molkentin
| * tst_qfileinfo fixed for Windows CEJoerg Bornemann2009-08-061-2/+8
| | | | | | | | | | | | | | Win CE doesn't support real file permissions (FAT only). Further, we don't have pagefile.sys. Reviewed-by: thartman
| * tst_QHostInfo: Disable short name tests for lookupIPv4.Jocelyn Turcotte2009-08-061-4/+1
| | | | | | | | | | | | | | | | These tests run against domain names in troll.no and to allow shorter names the machine has to be in this domain. Removing them since this specific case test the OS more than Qt itself. Reviewed-by: Thiago
| * tst_qstyle compile fixJoerg Bornemann2009-08-061-1/+1
| | | | | | | | Reviewed-by: thartman
| * fix tst_qlocalsocket::readBufferOverflow for Windows CEJoerg Bornemann2009-08-061-3/+6
| | | | | | | | | | | | | | The TCP socket must get the chance to read data into its read buffer after the first read operation emptied it. Reviewed-by: thartman
| * fix warning in tst_qlocalsocketJoerg Bornemann2009-08-061-0/+1
| | | | | | | | Reviewed-by: thartman
| * Fix a bug in QProcess. QProcess was not reentrant on UnixBenjamin Poulain2009-08-061-1/+1
| | | | | | | | | | | | | | | | | | QProcess is supposed to be reentrant but was not on Unix. The constructor of QProcessManager could be exectued several time when QProcess is created. The construction is now protected by a mutex. Task-number: 254246 Reviewed-by: Olivier Goffart
| * Fixes autotests in QTreeWidget: setHeaderItem & defaultRowSizesLeonardo Sobral Cunha2009-08-061-4/+9
| | | | | | | | | | | | defaultRowSizes was broken on oxygen style because of missing icons. Reviewed-by: paul
| * Delay too short after fullscreen window shown.Gabriel de Dietrich2009-08-061-2/+1
| |
| * Fix QXmlQuery autotestsPeter Hartmann2009-08-062-15/+21
| | | | | | | | | | | | | | | | before, it asserted; now, the test is not asserting anymore but still failing, because the fix is not yet checked in. Additionally, it now runs from a shadow directory. Reviewed-by: TrustMe
| * Fixes autotests in QFileSystemWatcher: watchFileAndItsDirectoryLeonardo Sobral Cunha2009-08-061-2/+20
| | | | | | | | | | | | | | | | dnotify is something from older linux kernels and cannot be trusted, therefore we skip some tests. Also we cannot guarantee that 1 operation on the file give only 1 notification in general, so we relaxed the conditions. Reviewed-by: paul
| * QMenuBar: autotests fixedThierry Bastian2009-08-061-9/+5
| | | | | | | | | | Apperently we don't get the leave event when simply moving the mouse with the testlib
| * QMenuBar: we can't test the action geometries when it is nativeThierry Bastian2009-08-061-0/+3
| |
| * Skip tst_QWindowSurface::flushOutsidePaintEvent() when using composition managerJocelyn Turcotte2009-08-061-0/+6
| | | | | | | | | | | | | | The first VERIFY_COLOR(w.geometry(), w.color); call was failing because the window was mapped but not yet painted on the screen. Reviewed-by: Bradley T. Hughes
| * ignore someOswald Buddenhagen2009-08-063-0/+8
| |
| * Make sure QWidget::setStyle() relayouts its children.Jan-Arve Sæther2009-08-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Changing a style on a widget should invalidate the widget's layout, since the layouts spacings and margins may depend on the style. One optimization could be to check to see if the spacing and margins have changed due to the style change, but the old style is not available in changeEvent, so we'll keep it simple for now. RevBy: paul Task: 256986
| * QMenu: fixed a menu poppping up behind the menubarThierry Bastian2009-08-061-1/+2
| |
| * lalala ... forgot to add test dataOswald Buddenhagen2009-08-061-0/+21
| |
| * Tests: Adapted uic baseline to 33604fb02fa463f36fa78e515bb42a34a746f0f2Friedemann Kleint2009-08-06100-200/+200
| |
| * QMenu: fix multi column autotest for styles which don't support itThierry Bastian2009-08-061-0/+7
| |
| * 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