summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Autotest: Add testing of QDBusAbstractInterfaceThiago Macieira2009-07-028-0/+937
|
* Autotest: add tests for method call errorsThiago Macieira2009-07-021-2/+103
|
* Autotest: make sure we create the QDBusInterface after the object exists.Thiago Macieira2009-07-021-9/+12
| | | | | | | | | The current code allows making calls to QDBusInterface objects that failed to introspect. It's technically a valid condition. You won't be able to connect to signals, get or set properties, but making calls was possible. I don't know if I want to keep this change in behaviour.
* Adapt the message-sending code to return error messages from theThiago Macieira2009-07-021-2/+14
| | | | | | marshalling code. Reviewed-By: Harald Fernengel
* add license headersOswald Buddenhagen2009-07-025-0/+205
|
* Get more autotests passing/fixed up.Bill King2009-07-022-2/+16
|
* integrate linguist tool autotests into the qt testsuiteOswald Buddenhagen2009-06-30200-0/+6573
| | | | Task-number: 218935
* Compile qmake autotestMarius Storm-Olsen2009-06-301-1/+1
|
* QTemporaryFile: Report the user-provided openModeJoão Abecasis2009-06-291-0/+33
| | | | Reviewed-by: Thiago
* Fix autotest failure in QStyle:drawItemPixmapJens Bache-Wiig2009-06-292-1/+5
| | | | | | | This was basically a problem with shadow builds not being able to access the pixmap. Reviewed-by:eskil
* bug fixDerick Hawcroft2009-06-291-6/+4
| | | | | Task-number: 217003 Reviewed-by: Bill King
* Fix painting errors in QScrollArea on Mac (Carbon)Morten Sørvig2009-06-261-0/+1
| | | | | | | | | | | | | | | This is mainly a stop-gap solution for 4.5.x. It trades painting performance for correct painting. Commit 7988d05da changed the opaque test from q->testAttribute(Qt::WA_OpaquePaintEvent) to qt_widget_private(w)->isOpaque in qt_mac_update_widget_posisiton. This means we'll do optimized moves in more cases. Unfortunately it also causes painting errors in some cases (see the task). Revert the commit for now to put the 4.5 branch in a god shape. Task-number: 252295 Reviewed-by: nrc
* make invokable constructors work with classes in namespaceKent Hansen2009-06-251-0/+22
| | | | | | | | | | Use the fully qualified classname at relevant places in the moc-generated code. Also, QMetaObject::newInstance() needs to strip the namespace part, since the constructor signatures don't contain the fully qualified name. Task-number: 246064 Reviewed-by: Simon Hausmann
* QNetworkReplyImpl: Protect against recursive event loopsMarkus Goetz2009-06-253-0/+136
| | | | | | | | | | This fixes a bug that occured together with a QProgressDialog. The signal emission was like: readyRead readyRead readyRead [...] readyRead finished readyRead Now finished should be properly at the ending of this sequence. Task-number: 256630 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* Change QSharedPointer to track (or not) pointers when the #define isThiago Macieira2009-06-251-1/+2
| | | | | | | | | enabled. This allows mixing of debug and non-debug code (possible on Unix systems) without causing assertion failures. Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
* Backport: Mark tests as XFail until they can be investigated further.Bill King2009-06-241-7/+13
|
* These database connections need this parameter to work properly.Bill King2009-06-241-2/+2
|
* Regression against 4.4 in QRectF::operator|.Bjørn Erik Nilsen2009-06-231-0/+2
| | | | | | | | | | | | | | | | In 4.4 QRectF handled flat rectangles in the same fashion as QRect does, but that changed with Lars' and Jo's optmizations done in the falcon branch. The difference is that the optimized version only checks whether the width or height is 0, whereas in 4.4 both had to be 0 (isNull()) before we bailed out. This regression also introduced a regression in QGraphicsItem::childrenBoundingRect(). Auto-test included. Task-number: 254995 Reviewed-by: Lars
* Add new auto-test QGraphicsItem::childrenBoundingRect2().Bjørn Erik Nilsen2009-06-231-0/+11
| | | | Reviewed-by: Andreas
* Prevented QWizard from crashing upon removing a page after deleting a field ↵jasplin2009-06-221-0/+22
| | | | | | | | | | | | | object. QWizard crashed when removing a page after deleting an object that was already registered as a field for the page. This patch prevents such a crash by doing the necessary cleanup immediately when the object is deleted. QWizard::removePage() will then see a consistent state in this case. Reviewed-by: janarve Task-number: 255350
* Moving a child widget right after show() does not work as expected.Bjørn Erik Nilsen2009-06-221-0/+28
| | | | | | | | | | | | | | The problem was that we did an accelerated move, i.e. scrolled the widget's contents in the backing store and repainted the old area. We cannot do this trick when the widget has been invalidated (show(), resize()). In this case the widget had never been painted, so we basically scrolled the content of its parent and the widget itself appeared as invisible. Auto-test included. Task-number: 255117 Reviewed-by: Paul
* Fixed wrong painting when doing IntersectClip after setClipping(false).Samuel Rødal2009-06-222-0/+15
| | | | | | | | | | The documentation is a bit ambiguous on what the expected behavior here is, but the behavior was consistent across paint engines before 4.5. QPaintEngineEx introduced inconsistencies in the raster and OpenGL paint engines, so this patch reverts the behavior back to what it was in 4.4. Task-number: 256549 Reviewed-by: Trond
* QItemEditorFactory: made sure the ownership is taken on theThierry Bastian2009-06-181-7/+31
| | | | | | | | | | QItemEditorCreator The creators were not deleted i nthe destructor of QItemEditorFactory and they could not be safely used for more than one type. Task-number: 228255 Reviewed-by: jasplin
* Made QInputDialog::getText() return null QString when rejectedStian Sandvik Thomassen2009-06-181-2/+23
| | | | | | | | | | | | This reverts a behavior change introduced with Qt 4.5.0 where QInputDialog::getText() returned the line edit's text when the dialog was rejected. However, the behavior since Qt 4.0 has been to return a null QString when the dialog is rejected. Task-number: 256299 Reviewed-by: Andy Shaw
* Fixed bugs in QPainterPath::united().Samuel Rødal2009-06-171-0/+20
| | | | | | | | | | Change from a relative to an absolute fuzzy compare as was the case pre-4.4. With a relative fuzzy compare points that have an x or y coordinate of 0 will never be merged with points that are very close to 0, for example (1e-15, 0). Task-number: 251909 Reviewed-by: Trond
* Fixed segmentation fault caused by empty clip.Samuel Rødal2009-06-171-0/+19
| | | | | | | | Make sure not to use the broken QRect constructor, and do an early check on whether the clip rect is empty in QRasterizer::rasterizeLine(). Task-number: 254105 Reviewed-by: Trond
* add SqlQuery unit test for task: 234422Derick Hawcroft2009-06-161-1/+40
|
* Update license headers as requested by the marketing department.Jason McDonald2009-06-16891-1916/+1916
| | | | Reviewed-by: Trust Me
* Fixes to get some MS Sql Server tests running again + new db definitions.Bill King2009-06-162-1/+10
|
* Add Qt 4.4.0 linux-gcc-ia32 testdata to bic test and make the bic testRohan McGovern2009-06-1614-33/+129891
| | | | | | | | | code more maintainable. Stop hardcoding the list of versions to test. Note that this test currenty FAILS because QGraphicsProxyWidget vtable size has changed from 4.4 -> 4.5.
* Fix wrong comparator in QSslCertificatePrivate::QByteArray_from_X509Markus Goetz2009-06-151-0/+38
| | | | | | | | | Because less-than instead of less-or-equal-than was used, the last line of a PEM encoding was not built when the raw length was multiple of 64. Task-number: 256066 Reviewed-by: mariusSO
* make qscript unit tests not crash when test files are not foundKent Hansen2009-06-152-16/+18
|
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Derick Hawcroft2009-06-155-673/+50
|\
| * BT Revert "Fix the behaviour of sql classes regarding quoted identifiers"Bill King2009-06-155-673/+50
| | | | | | | | | | This reverts commit bb7bddc47dd0748b45d22180d9e3c8e5209010b3 due to forward binary compatibility issues in a point release.
* | unit test for task 229811Derick Hawcroft2009-06-151-7/+55
|/
* Adds unit test for task: 180617Derick Hawcroft2009-06-151-4/+41
| | | | | Tests to see if QSqlQueryModel inserts extra empty gridlines into a view for a specific SQL query statement that should return no data.
* QGraphicsItem::setOpacity(0.0) does not trigger an update of child itemsLeonardo Sobral Cunha2009-06-121-1/+50
| | | | | | | | Forwarding the ignoreOpacity flag to children in QGraphicsItemPrivate::fullUpdateHelper. This is a complementary fix to task 252913, partly fixed in commit 2e3a5ea44... Reviewed-by: bnilsen BT: yes
* Fixed compile of arthur tests when Qt is configured without opengl orRohan McGovern2009-06-105-5/+13
| | | | qt3support.
* Fix the qitemdelgate test.Olivier Goffart2009-06-091-14/+14
| | | | the line edit was deleted when we press enter
* Fixed intermittent failure of tst_selftests.Rohan McGovern2009-06-091-1/+1
| | | | Allow more variance for the benchlibtickcounter selftest.
* Fixed crash in tst_qcombobox when Qt is built in debug mode.Rohan McGovern2009-06-091-1/+1
| | | | | "QTableWidget::setModel() - Changing the model of the QTableWidget is not allowed."
* Fixed tst_qmake failing to compile when QMAKE_CROSS_COMPILED is defined.Rohan McGovern2009-06-091-1/+2
|
* Change order of functions in QInputDialog::getDouble()Markus Goetz2009-06-081-0/+15
| | | | | | | Fixes issue with decimals in the spinbox used for the double Task-number: 255502 Reviewed-by: mbm
* Autotest: Fixed a race condition in the network self test.Thiago Macieira2009-06-051-6/+0
| | | | | | | | | | Some of the tests (including the httpsServer one) requested that the server close the connection (Connection: close). It could happen that, well, the server did close the connection and we noticed it while doing the waitForBytesWritten in the doSocketFlush function. Then we'd create an error in the next step because the socket wasn't connected. Reviewed-by: TrustMe
* Autotest: add some tests for sending (or failing to) invalid D-Bus callsThiago Macieira2009-06-041-0/+25
| | | | Reviewed-by: TrustMe
* BT: Fixes Crash when deleting a QProgressBar which has been styled with ↵Olivier Goffart2009-06-041-2/+18
| | | | | | | | | | | QMotifStyle Same fix as in e9a7e43031d7c1ee712e43be682c4e2c183759c4 but with motif Reported by https://bugs.kde.org/show_bug.cgi?id=193911 Task-number: 255138 Reviewed-by: jbache
* Silence compile warning in the testAndy2009-06-041-2/+2
| | | | Reviewed-by: TrustMe
* Fixed raster bug causing fully clipped images to be partially blended.Samuel Rødal2009-06-031-0/+26
| | | | | | | | | | | The blend functions assume the width / height of the images being blended to be greater than 0. A width of 0 caused the first iteration of a duff's device memcpy (QT_MEMCPY_USHORT) to be executed, thus blending 8 pixels instead of none. BT: yes Task-number: 255014 Reviewed-by: Trond
* Fix BOM for UTF-32 codecMarius Storm-Olsen2009-06-031-3/+12
| | | | | | | | | The BOM was created correctly, but half of the BOM was then overwritten by the converted data afterwards. Also made the autotest also do reverse encoding tests where possible. Task-number: 255095 Reviewed-by: lars
* centralize removeServer() invocation for some more determinismOswald Buddenhagen2009-06-031-5/+9
|