summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make the QDataStream autotest much more robustHarald Fernengel2009-11-031-10/+20
| | | | | | | In the old version, we'd read all the types, then start comparing. If an operator left the stream in a bogus state, funny things would happen (e.g. crashes). Now, we test the value instantly before reading the next one, thus preventing reading bogus.
* Merge commit 'e4bec39a139363d1ee4cf3fb15a3fe4499215e77' into 4.6Thiago Macieira2009-11-029-28/+472
|\
| * Merge remote branch 'origin/4.6' into core-4.6Thiago Macieira2009-10-294-19/+129
| |\
| * | Autotest: this test is failing, enable debugging to find out why.Thiago Macieira2009-10-291-1/+4
| | | | | | | | | | | | | | | | | | | | | It doesn't happen on my machine, so I need to figure out what's different. Reviewed-by: Trust Me
| * | Merge branch '4.6' into core-4.6Thiago Macieira2009-10-297-5/+257
| |\ \
| * | | QLocalServer: block indefinitely when timeout value is -1Peter Hartmann2009-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as described in the documentation. Furthermore: * use qt_safe_select to timeout correctly * return immediately when timeout value is 0 Reviewed-by: Oswald Buddenhagen
| * | | Fix Qt containers to properly support types with strict alignments.Thiago Macieira2009-10-281-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QContiguousCache is a new type, so there are no binary compatibility issues. QHash and QMap didn't have any public qMalloc / qFree, so the entire logic is contained in .cpp code. However, since old code will not inform us of the alignment requirements, we need to add a bit to the structure to indicate whether strict alignment is in use or not. QList doesn't require any changes. For small, movable types, they're all stored in the pointer array itself, so they're aligned. For larger types, we use new(), so types with stricter requirements should define their own operator new(). QLinkedList cannot be fixed. It uses new() on the QLinkedListNode, which contains a T type. Sorry. QVector did have public qMalloc / qFree. I've moved the calls to the inner function and made it keep the old calls if the alignment requirement is below a certain threshold. The idea is that, if it's above, no one was using QVector anyway. Reviewed-by: Bradley T. Hughes
| * | | Autotest: add unit test for QDBusServiceWatcherThiago Macieira2009-10-282-0/+281
| | | |
| * | | Autotest: add a test that tries to follow a service changing owners.Thiago Macieira2009-10-281-0/+56
| | | | | | | | | | | | | | | | I'm not sure if this used to work before...
| * | | Autotest: fix improper use of the serviceOwnerChanged signalThiago Macieira2009-10-281-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was doubly wrong: it first registered a service name, then it connected to signal to watch it. You can't receive a signal if you connect to it after it's emitted... Second, it waited for any serviceOwnerChanged() signal to exit the event loop, not necessarily the one we wanted to receive. This used to work because we'd always connect to the D-Bus signal, but now we don't anymore.
| * | | Merge remote branch 'origin/4.6' into core-4.6Thiago Macieira2009-10-289-32/+179
| |\ \ \
| * | | | QDom autotests: test is not failing anymorePeter Hartmann2009-10-281-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removing the temporary QFAIL Reviewed-by: Carlos Duclos
| * | | | Autotest: Add some debugging info as to why the subprocess fails to startThiago Macieira2009-10-271-0/+10
| | | | |
| * | | | QAbstractSocket: wait with closing until all bytes have been writtenPeter Hartmann2009-10-271-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only disconnect from host when all bytes have been written; i.e. not only check whether the write buffer is empty, but also check whether the socket engine has still bytes to write. This is necessary for HTTP and SOCKS5 socket engine, because they both contain an inner TCP socket which also does buffering. For the native socket engine, there is no difference with this patch. Reviewed-by: Markus Goetz Reviewed-by: Thiago Macieira
| * | | | QDom: make tests fail only on WindowsPeter Hartmann2009-10-261-0/+2
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Carlos Duclos
* | | | | Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2009-11-0248-117/+2567
|\ \ \ \ \
| * | | | | Manual glyph shaping test.Alessandro Portale2009-11-023-0/+525
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It tests the glyph shaper in Qt by rendering a couple of glyph combinations that are known to be strongly shaped. For now, this test is manual and simply generates an html report for a visual test. It can, however also be implemented as auto test. The test data contains Vietnamese and Tamil data sets, more will follow. Reviewed-by: trustme
| * | | | | Fixes testing of sqlite against the real(floating pt) datatypeBill King2009-11-021-0/+1
| | | | | |
| * | | | | Fix a rounding error.Alessandro Portale2009-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| * | | | | Added manual text performance test.Alessandro Portale2009-10-302-0/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small application that simulates different text rendering scenarios and displays the Fps. Reviewed-by: trustme
| * | | | | Merge commit '30b0902cf05b0c1dc649e9c2e7ae0415e0c1d042' into 4.6-upstreamBradley T. Hughes2009-10-301-75/+0
| |\ \ \ \ \
| | * | | | | Remove the unnecessary (and broken) tst_QMouseEvent::checkMouseMoveEvent() testBradley T. Hughes2009-10-301-75/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to people responsible for the test, it is not necessary. This partially reverts commit b1f9882fa52745c922eb0109daa011908214dcf7.
| | * | | | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-platform-team into 4.6Bradley T. Hughes2009-10-306-16/+301
| | |\ \ \ \ \
| * | \ \ \ \ \ Merge commit '8c4edbd04f350294462fd689748de2dd7cc84d47' into 4.6-upstreamBradley T. Hughes2009-10-306-16/+301
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | |
| | * | | | | | Ensure that button returns 0 for mouse move eventsDean Dettman2009-10-291-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a platform regression for the cocoa platform Reviewed-by: Prasanth
| | * | | | | | Fixed the scrollarea gesture manual test.Denis Dzyubenko2009-10-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | | | | | Follow refactor; use QApplication:: instead of qApp->Thomas Zander2009-10-282-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our tests now call the recently converted registerRecognizer using a proper static method.
| | * | | | | | Introduce QGesture::GestureCancelPolicy, a way to auto-cancel gesturesThomas Zander2009-10-281-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On accepting one gesture Qt can automatically cancel other gestures that belong to other targets. The policy is normally set to not cancel any other gestures and can be set to cancel all active gestures in the context. For example for all child widgets. Reviewed-By: Denis Dzyubenko
| | * | | | | | add empty test method, should implement it fully when more important things ↵Thomas Zander2009-10-281-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are done
| | * | | | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-platform-team into ↵Bradley T. Hughes2009-10-282-1/+133
| | |\ \ \ \ \ \ | | | |_|_|/ / / | | |/| | | | | | | | | | | | | 4.6-WM_NULL-driven
| | | * | | | | Implemented QGestureRecognizer::ConsumeEventHintDenis Dzyubenko2009-10-271-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: trustme
| | | * | | | | Improved gesture autotest reliability on X11.Denis Dzyubenko2009-10-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | | * | | | | Add QWidget::ungrabGestureThomas Zander2009-10-261-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | | * | | | | Unregister the temporary gesture recognizer in the gestures autotest.Denis Dzyubenko2009-10-261-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: trustme
| | | * | | | | Merge branch '4.6' into 4.6-platformDenis Dzyubenko2009-10-2624-107/+1070
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | * | | | | Remove internal widgets from QApplication::topLevelWidgets()Prasanth Ullattil2009-10-231-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have some internal hidden widgets which should not come up in the QApplication::topLevelWidgets() list. So the known ones are being removed from the QWidgetPrivate::allWidgets set. Task-number: QTBUG-739 Reviewed-by: Denis Dzyubenko Reviewed-by: Bradley T. Hughes
| * | | | | | | Add QScriptString::toArrayIndex() functionKent Hansen2009-10-301-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid hacking a custom toArrayIndex() in the example; instead provide an ECMA-compliant conversion that's as fast as possible (having to convert the QScriptString to a QString and then convert the result to a number is considerably slower than calling JSC's Identifier::toArrayIndex() function directly). Reviewed-by: Olivier Goffart
| * | | | | | | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-10-3016-29/+247
| |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into origin-4.6Olivier Goffart2009-10-303-1/+9
| | |\ \ \ \ \ \ \
| | | * \ \ \ \ \ \ Merge branch '4.6-s60' into 4.6axis2009-10-303-1/+9
| | | |\ \ \ \ \ \ \ | | | | |_|_|_|/ / / | | | |/| | | | | |
| | | | * | | | | | Fix QDateTime on S60 3.1Shane Kearns2009-10-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | S60 3.1 plugin returned empty strings for the unsupported APIs Since these APIs are needed for the most common use case of converting a QDateTime to a QString using the local format, I have implemented an emulation of the missing APIs using older APIs that are supported. Updated the autotest so it does some sanity checking on the result of local date/time conversion - it would pass instead of fail if the string was garbage before. Reviewed-by: Aleksandar Sasha Babic
| | | | * | | | | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6axis2009-10-297-5/+257
| | | | |\ \ \ \ \ \ | | | | | | |_|_|/ / | | | | | |/| | | |
| | | | * | | | | | Fix EColor16M conversion in QPixmap::fromSymbianCFbsBitmap()Jani Hautakangas2009-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EColor16M is in BGR format so after conversion to QImage RGB values needs to be swapped. Reviewed-by: jbarron
| | | | * | | | | | Fix tst_QBoxLayout::setGeometry failure on S60 3.xShane Kearns2009-10-271-1/+0
| | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The S60 style posts a LayoutRequest event when a widget is shown, so that it can draw the focus rectangle around the widget that has keyboard focus. Although lay2->setGeometry was working correctly, processEvents() caused the outer layout to be re-laid out (which expands the inner layout and QDial to fill the available space). The processEvents() call is not necessary for the test case, so it can be removed. Reviewed-by: Jan-Arve
| | * | | | | | | Merge commit 'widget/4.6' into origin/4.6Olivier Goffart2009-10-3033-100/+1384
| | |\ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/effects/qgraphicseffect.cpp
| * | | | | | | | QTreeView: fix drawing branches of model that adds or remove rows dynamicallyOlivier Goffart2009-10-301-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The lasts commits in the treeview did put the flags weither item has child or is the last in cache in the viewItem vector. But the cache was not updated while the model is modified. Reviewed-by: Thierry
| * | | | | | | | Fixes regression in QComboBox with keypad navigation while mouse is over the ↵Olivier Goffart2009-10-301-0/+52
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | popup The problem is that is we move the selection with the keyboard in a way that causes the view to scroll, the current selection would jump. This happends since commit 9cb231d773db6deb that fixed the emission of the enter signal when the view is scrolled. We Therefor cannot use the enter signal. Catch manually the mouse move events to update the selection instead. Reviewed-by: Thierry
| * | | | | | | In ItemViews, right click on the viewport clear the ext selectionThierry Bastian2009-10-301-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-435 Reviewed-by: Gabriel
| * | | | | | | QActionGroup: reset the checkedAction when it is uncheckedThierry Bastian2009-10-301-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-1019 Reviewed-by: Gabriel
| * | | | | | | Updated QTextEdit auto-test after changes in commit 04d18b38c.Gabriel de Dietrich2009-10-308-2/+2
| | | | | | | |