summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'qt/master-stable'Jason Barron2009-08-0475-374/+2038
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: config.tests/unix/openssl/openssl.pri demos/embedded/embedded.pro examples/itemviews/chart/chart.pro examples/network/network.pro examples/painting/painterpaths/painterpaths.pro examples/threads/mandelbrot/mandelbrot.pro qmake/project.cpp src/3rdparty/libtiff/libtiff/tif_config.h src/corelib/arch/arch.pri src/corelib/global/qglobal.cpp src/corelib/kernel/kernel.pri src/corelib/kernel/qcore_unix_p.h src/corelib/kernel/qobject.cpp src/corelib/thread/qthread_unix.cpp src/corelib/tools/qsharedpointer_impl.h src/corelib/tools/tools.pri src/gui/kernel/qaction.h src/gui/kernel/qapplication.cpp src/gui/painting/qregion.h src/gui/widgets/qlineedit.cpp src/gui/widgets/qlineedit_p.h src/network/socket/qnativesocketengine_unix.cpp tests/auto/qdir/tst_qdir.cpp tests/auto/qdiriterator/tst_qdiriterator.cpp tests/auto/qhttp/qhttp.pro tests/auto/qline/qline.pro tests/auto/qnetworkreply/tst_qnetworkreply.cpp tests/auto/qresourceengine/qresourceengine.pro tests/auto/qsharedpointer/qsharedpointer.pro tests/auto/qstring/qstring.pro tests/auto/qtcpsocket/qtcpsocket.pro tests/auto/qtcpsocket/tst_qtcpsocket.cpp
| * 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-0310-25/+42
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Fixed failure of tst_moc.Rohan McGovern2009-07-291-1/+1
| | | | | | | | | | | | os9-newlines.h's lack of newline at end of file is significant.
| | * Skip uic3 test when qt3support is disabled.Rohan McGovern2009-07-291-0/+3
| | |
| | * Fixed compile of tst_qitemeditorfactory.Rohan McGovern2009-07-281-5/+5
| | |
| | * Fixed failure of tst_q3urloperator.Rohan McGovern2009-07-281-5/+7
| | | | | | | | | | | | Make test use network-settings.h correctly.
| | * Fixed failure of tst_q3socket.Rohan McGovern2009-07-281-6/+8
| | | | | | | | | | | | Make the test use network-settings.h correctly.
| | * Fixed failure of tst_qlocale if run when LC_ALL is set.Rohan McGovern2009-07-271-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test tried to be unaffected by the locale environment variables set by the user by explicitly overwriting them and spawning a new process. However this was only done for LANG and not the other variables which can affect the locale. Do it for all the locale variables. Also, the previous approach (store the current value with qgetenv, then put it back with qputenv later) doesn't really work because that effectively takes variables which weren't set and sets them to an empty string, which is not the same thing. Use QProcess::setEnvironment instead. Reviewed-by: Andy Shaw
| | * Fix a running external tests: user program headers must come first.Thiago Macieira2009-07-261-2/+2
| | | | | | | | | | | | | | | | | | No wonder QT_SHAREDPOINTER_TRACK_POINTERS was having no effect: there was an #include <QtCore/QtCore> before it. (cherry picked from commit 4c12010fac555bce0a6c8d69a267a56f4c15087f)
| * | remove constructors that are not usefulKent Hansen2009-08-032-19/+16
| | | | | | | | | | | | | | | | | | | | | The constructors that take a list of target states produce hard-to-read code, and they're rarely useful in practice since 99% of transitions take a single target state; so it's better to enforce that setTarget{State,States}() be used instead.
| * | Fixes casing fails for databases that have variable casing support.Bill King2009-08-031-3/+5
| | |
| * | Revert "Fix QFormLayout which allowed fields to be smaller that their ↵Olivier Goffart2009-07-311-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minimum size" This reverts commit 244f5ee9c2c34ddee200e4d5cdc1345762a5901b. Valgrind complains about the label fields that are not inisialized yet, and indeed. They are initialized right after, and need the maxLabelWidth to be computed. This is a chicken and egg problem difficult to solve, so I rather revert the change as the bug is not critical
| * | add private goToState() function to state machineKent Hansen2009-07-311-0/+41
| | | | | | | | | | | | Needed for Declarative UI integration.
| * | test that activation and this-object can be inherited from parent contextKent Hansen2009-07-311-0/+30
| | |
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtAaron Kennedy2009-07-3118-161/+188
| |\ \
| | * | Autotest: reduce the amout of data transferred to 128 MB, otherwise theThiago Macieira2009-07-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test wouldn't finish. Running under valgrind and slow operating systems, the transfer rate is only a couple of MB per second. As long as you can reach 3.2 MB/s now, it should still work Also, don't kill the thread, for any reason. That causes trouble. Reviewed-by: Markus Goetz
| | * | Autotest: reorganise the HTTP performance testsThiago Macieira2009-07-301-125/+124
| | | |
| | * | Autotest: fix crash caused by deleting a QSharedPointerThiago Macieira2009-07-301-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The delete reply; was introduced by a conflicted merge in the VxWorks port. It should not have appeared. But take this opportunity to convert the two other uses of QNetworkReply* without lifetime management to QSharedPointer too. Reviewed-by: Markus Goetz
| | * | Do not emit activated and close the popup when the item is not enabled.Benjamin C Meyer2009-07-301-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Autotest: included Merge-request: 378 Reviewed-by: Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>
| | * | Fix autotests after QUrl change.kh2009-07-3015-25/+25
| | | | | | | | | | | | | | | | Reviewed-by: kh
| | * | parse Q_INVOKABLE explicit constructorsOlivier Goffart2009-07-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | regression introduced in e43eae35 because the code of maybeParseFunction and parseFunction is not exactly the same. Reviewed-by: Kent Hansen
| * | | Autotest for QGuardAaron Kennedy2009-07-312-0/+352
| | | | | | | | | | | | | | | | Reviewed-by: Andreas
| * | | Allow retrieval of interface IId from class type.Aaron Kennedy2009-07-311-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This method is necessary for QML to support Qt interfaces, but probably shouldn't be used otherwise. Reviewed-by: Roberto Raggi
| * | | Add FINAL attribute to Q_PROPERTY()Aaron Kennedy2009-07-311-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | This will be used by the declarative module to optimize property bindings. Reviewed-by: Roberto Raggi
| * | | Add CONSTANT attribute to Q_PROPERTY()Aaron Kennedy2009-07-311-0/+17
| |/ / | | | | | | | | | | | | | | | This will be used by the declarative module to determine if a property lacking a NOTIFY signal is truly constant, or just missing a NOTIFY signal. Reviewed-by: Roberto Raggi
| * | Allow testlib loggers to dynamically allocate storage for strings.Rohan McGovern2009-07-306-1/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables very long failure messages (e.g. including an entire build log in a failure message). This change modifies only the plain test logger to use this feature. Task: 253861 Reviewed-by: Michael Goddard
| * | Unit tests and bug fixes for QGLColormapRhys Weatherley2009-07-301-0/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGLColormap::setEntry() was inserting entries instead of replacing them; QGLColormap::setEntries() had an incorrect assert and weird behaviour for the "base". The documentation for QGLColormap::isEmpty() has been updated to reflect that it will also report empty if the colormap has not been set on a QGLWidget even if it has entries in it. This behaviour is required by existing code. Reviewed-by: Rohan McGovern
| * | Increase coverage of QGLFormat unit tests.Rhys Weatherley2009-07-301-19/+190
| | | | | | | | | | | | Reviewed-by: trustme
| * | Add math3d unit tests for QObject properties and metatypesRhys Weatherley2009-07-293-0/+195
| | | | | | | | | | | | Reviewed-by: trustme
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtkh2009-07-2938-203/+677
| |\ \
| | * | Autotest: fix the regressions in the DOM test caused by one whitespaceThiago Macieira2009-07-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | being removed. Reviewed-by: Volker Hilsheimer
| | * | test that vars are stored in custom global objectKent Hansen2009-07-291-0/+29
| | | |
| | * | Autotest: make tst_qdom work with shadow builds too.Thiago Macieira2009-07-292-23/+27
| | | | | | | | | | | | | | | | Reviewed-by: Peter Hartmann
| | * | Port of Qt to QNXHarald Fernengel2009-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Qt work on QNX 6.4. * no q3support, no phonon * no QSharedMemory, no QSystemSemaphore, no QProcess Reviewed-By: Robert Griebl
| | * | Port of Qt to VxWorksRobert Griebl2009-07-2923-49/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Qt work on VxWorks 6.6+ in native (kernel) mode. * compiles with the WindRiver GNU toolchain (Linux only) * works with QWS (tested with the VNC driver only) * tested on PPC hardware and the x86 VxWorks simulator * no q3support, no phonon, no webkit * no QSharedMemory, no QSystemSemaphore, no QProcess * only one QApplication instance (flat address space) * filesystem support depends heavily on the quality of the native driver * QLibrary is just a dummy to make plugins work at all * qmake transparently creates VxWorks munching rules for static ctors * made auto-test cope with missing OS features A special note regarding the Q_FOREACH patch for dcc: when calling foreach(a,c) with c being a function returning a container, the compiler would generate 5 references to some labels (.LXXXX), which are not there (so the linker complains in the end). Seems like dcc doesn't really like the 'true ? 0 : <function call to get type>' statement Reviewed-By: Harald Fernengel
| | * | add more extensive tests for scopechain functionalityKent Hansen2009-07-292-0/+113
| | | |
| * | | Disable for the time being until we have fixed collection files.kh2009-07-291-2/+2
| | | |
* | | | Merge commit 'qt/master-stable'Jason Barron2009-07-3010-126/+382
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | Conflicts: demos/demos.pro src/gui/graphicsview/qgraphicsitem_p.h
| * | | Ensure hover enter events are dispatched on mouse press.Andreas Aardal Hanssen2009-07-291-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change ensures that mouse presses received by the scene when there are no current mouse grabbers trigger hover event delivery. This is useful when the scene only receives presses, and no mouse moves (e.g., disabling mouse tracking on the viewport, or on systems where the mouse press is the first received event). Reviewed-by: Michael Brasser