summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tst_qnetworkcookiejar: Backported 4.6 changesMarkus Goetz2009-09-281-14/+14
| | | | Reviewed-by: TrustMe
* Mac: build issue (autotest stalls build)Richard Moe Gustavsen2009-09-281-1/+1
| | | | | | | | | | | | | | When building Qt static on Mac, the test included actually stops the build process, prompting the user for 'Promteroo?' The reason is that configure runs qmake on all the tests inside the test/auto directory, including the one that is meant for testing qmake itself. In other words, this test should not be qmake'ed when running configure, only when running the qmake auto test. However, the qmake auto test does not run the prompt test anymore either. So the solution for now is to just comment out the test project as well. Reviewed-by: alexis
* QGraphicsItem with parent flag ItemClipsChildrenToShape not visibleAndreas Aardal Hanssen2009-09-281-0/+48
| | | | | | | | | | | | | | | | | Regression against Qt 4.4. Children of items with ItemClipsChildrenToShape would only be discovered if the view's expose region contained the outer bounding rect of all items, _if_ there was at least one item in the scene that enabled ItemIgnoresTransformations. The reason for this bug is that the presence of an untransformable item causes the item lookups to go through a different path (QGraphicsViewPrivate::itemsInArea()). This function had the bug that it didn't correctly discover children of clip-items. Because of this, in the provided test case you could "work around" the bug by either removing the clip flag, or the transformation flag. Task-number: QTBUG-4151 Reviewed-by: Alexis
* Fixes: better wording.Bill King2009-09-281-1/+1
|
* Added test for QTBUG-4595.Stian Sandvik Thomassen2009-09-281-0/+15
| | | | | | | QDomDocument::toString() should not cause an assertion if the document specifies an encoding that is not supported by QTextCodec. Task-number: QTBUG-4595
* Fixes a crash in QDoubleSpinBoxJoão Abecasis2009-09-252-12/+41
| | | | | | | | | | | | | | | Removing dubious intermediate detection code that also had a buffer overflow. The results were inconsistent and not dependable on. Processing was inefficient and end value to user experience dubious. Test cases that abused the former behaviour were changed to consider input in an Intermediate where it was previously considered Invalid. With this change, user input will mostly be considered in an intermediate state, until it is effectively validated. Task-number: 255019 Reviewed-by: Anders Bakken
* Revert "Autotest: This test does requires internal builds (with autotests)."Joerg Bornemann2009-09-241-1/+0
| | | | | | | This reverts commit df47e0d40290f5e40054a9612f75177d9ef8537a. There is no "private_build" in Qt 4.5 Reviewed-By: thiago
* Autotest: This test does requires internal builds (with autotests).Thiago Macieira2009-09-231-0/+1
| | | | Reviewed-By: TrustMe
* fix tst_QMenu::task242454_sizeHint for Windows mobileJoerg Bornemann2009-09-221-1/+1
| | | | | | | | QMenu actually doesn't use QFontMetrics::width to calculate its bounding rect but QFontMetrics::boundingRect. That's why this test failed on Windows CE. Reviewed-by: thierry
* Cached clip path not cleared correctly for ancestor that clips to shapeAndrew Christian2009-09-221-0/+32
| | | | | | | | | Fix QGraphicsItem to clear clip path for items with an ancestor that clips to shape. Added autotest to demonstrate clipping path problem. Merge-request: 810 Reviewed-by: Alexis Reviewed-by: Andreas
* tst_windowsmobile: local include correctedJoerg Bornemann2009-09-221-1/+1
| | | | Reviewed-by: TrustMe
* Added more tests for QTextCodec::codecForHtml()Stian Sandvik Thomassen2009-09-221-1/+8
|
* Revert "Added autotest to demonstrate clipping path problem"Alexis Menard2009-09-171-32/+0
| | | | | | This reverts commit e7042dea2431b8f64574d4e97eb896285b328c8b. Alexis : This should never have been here. E-mail is invalid.
* Fix crash or painting error when drawing dashed lines with penWidth > 1Eskil Abrahamsen Blomfeldt2009-09-171-0/+25
| | | | | | | | | | | | | Since the width is multiplied into the dash, it needs to be divided out, otherwise you can get a dashOffset which is greater than the pattern at the index, and the dash can become negative. This will in turn lead to passing a negative width to the rasterizer, which at some point will get cast to an unsigned int and overflow. Depending on the position of the line and size of the buffer, this will either crash or produce garbled output. Task-number: QT-4444 Reviewed-by: Samuel
* Fixes issue of forward only datasets failing when not set so.Bill King2009-09-171-0/+38
| | | | | | | | | Previously you had to set forward only on non-scrollable datasets explicitly. This queries ODBC, to determine if it's a scrollable dataset, and sets forwardOnly to false if it isn't. Task-number: QT-353 Reviewed-by: Justin McPherson
* Fixed the qkeysequence::translated autotest.Kim Motoyoshi Kalland2009-09-164-5/+9
| | | | | | | | The test failed because it tried to open a .qm file which didn't exist in Qt's translations directory. Fixed by running lrelease on the .ts file and copying the resulting .qm into the test directory. Reviewed-by: Trond
* Disabled the qtwidgets test for the times being.Trond Kjernaasen2009-09-161-0/+2
| | | | Reviewed-by: Jesper
* Fixed the QThread tests for Windows.Trond Kjernaasen2009-09-161-9/+18
| | | | | Backported d04d67e146bce3d407f992c283d7ab3d0c25d428 and 08b54f274d57e4735d0042e295237f176506433d from 4.6.
* Fixed QImageReader autotests.Trond Kjernaasen2009-09-161-10/+11
| | | | Reviewed-by: Kim
* Added autotest to demonstrate clipping path problemandyc2009-09-151-0/+32
|
* Fixes QSqlTableModel: trying to delete the wrong row.Bill King2009-09-141-0/+61
| | | | | | | Uses the primary key from the index in the query, not the resulting location in the modified dataset. Task-number: 222678
* QHttpNetworkConnection autotest: include zlib dirPeter Hartmann2009-09-101-0/+1
| | | | | | test was not building Reviewed-by: Trust Me
* tst_qinfo: Be more verbose in case of failuresMarkus Goetz2009-09-101-0/+6
|
* Fixes autotest for MS SQL ServerBill King2009-09-101-1/+4
| | | | Merging fix back into 4.5 tree
* Fixes determination of end of odbc string on deficient driverBill King2009-09-101-0/+41
| | | | | | | Ported this fix backwards from 4.6 to 4.5 Adds some cleanups (using QVarLengthArray), and reverting to the initial and correct calculation (when the driver doesn't deem fit to return SQL_NO_DATA).
* Autotest: fix the test for NUL in SAN. It was missing "www".Thiago Macieira2009-09-091-1/+1
| | | | Reviewed-by: Marius Bugge Monsen
* tst_qhostinfo: Backported some 4.6 fixes, increased timeoutMarkus Goetz2009-09-091-7/+4
|
* QHttpNetworkConnection autotest: include zlib dirPeter Hartmann2009-09-091-0/+1
| | | | | | test was not building Reviewed-by: Trust Me
* network-settings.h: Check for DNS setup only when neededMarkus Goetz2009-09-081-0/+2
|
* Fix moc test after licence change.Olivier Goffart2009-09-081-1/+1
| | | | os9-newlines.h must not contains any linebreak
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Jason McDonald2009-09-081-0/+26
|\
| * Fixed bug in drawImage() when fall-back code path is used.Samuel Rødal2009-09-081-0/+26
| | | | | | | | | | | | | | | | We need to floor instead of round to prevent rectangles that are on the edge from being shifted one pixel down / right. Task-number: 258776 Reviewed-by: Kim
* | Update license headers again.Jason McDonald2009-09-081227-4905/+4906
|/ | | | Reviewed-by: Trust Me
* Tests: Do not execute network tests at all if DNS setup is broken.Markus Goetz2009-09-081-0/+14
| | | | Reviewed-by: Jesper
* Fix a regression with QListView::setRowHidden() when a root index is setAndy Shaw2009-09-041-0/+12
| | | | | | | | | When setRowHidden() was called after a root index was set then it would not actually hide the row, if a root index is not set then it worked fine. Task-number: 260879 Reviewed-by: Jan-Arve
* Fixed autotest failure in qwindowsurface on X11 with Oxygen style.Samuel Rødal2009-09-031-0/+6
| | | | | | | | Oxygen draws a fancy background gradient etc so it's not suitable for this kind of pixel testing. Since we're testing the window surface and not the style just use the simple QWindowsStyle here. Reviewed-by: Gunnar Sletta
* Add missing license headersJason McDonald2009-09-0310-1/+407
| | | | Reviewed-by: Trust Me
* Fixes the gif plugin's rendering for some animated gif files.Pierre Rossi2009-09-0211-2/+24
| | | | | | | | | In the case of optimized animated gifs, we don't want to discard the contents of the previous frame, this is handled if needed in the disposal process. Task-number: 247365 Reviewed-by: Samuel
* Add missing license headers.Jason McDonald2009-09-0272-0/+2952
| | | | Reviewed-by: Trust Me
* Update license headers.Jason McDonald2009-09-02175-4756/+5572
| | | | Reviewed-by: Trust Me
* Add license header to perl scripts.Jason McDonald2009-09-022-1/+82
| | | | Reviewed-by: Trust Me
* Assorted license header fixes.Jason McDonald2009-09-026-0/+246
| | | | Reviewed-by: Trust Me
* QNetworkAccessManager can delete the QAbstractNetworkCache pointer atBenjamin C Meyer2009-09-011-0/+16
| | | | | | | | | | any point. Rather then keep a separate pointer to the cache in the reply use the pointer kept by the manager so the reply never tries to access a cache pointer that has already been deleted. Autotest: included Merge-request: 1124 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* Use the QDesktopServices::CacheLocation to determine the location to store ↵Benjamin C Meyer2009-09-011-2/+2
| | | | | | | the temporary cache rather than QDesktopServices::DataLocation Merge-request: 1124 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* Reset QTemporaryFile's state after failed open() on WindowsJoão Abecasis2009-08-311-0/+82
| | | | | | | | | | | | | | | | | This fixes a regression introduced in 4.5.2 where QTemporaryFile would no longer attempt to generate a random name after a failed open. Under certain situations, this led to a non-random file being left behind in QDir::tempPath when using the fallback implementation of QFile::copy. Avoid calling QFSFileEngine::setFileName() on a template, so as not to process it as file name. By consistently not calling setFileTemplate in the constructor, we also delay allocation of the fileEngine. Changes made to that function also keep it from unnecessarily allocating the fileEngine. Task-number: 260165 Reviewed-by: Thiago Macieira
* QNAM HTTP Code: Some tests where failingMarkus Goetz2009-08-312-4/+10
| | | | | | | ietf.org changed their server to use gzip, therefore our check for the content-length reply header was bogus. Rev-By: Peter Hartmann
* Don't crash when convert Indexed8 without colortable to QPixmapGunnar Sletta2009-08-311-0/+29
| | | | | | | | This implicitly adds "grayscale" support for indexed 8, but only for the conversion. The alternative would be leave the pixels uninitialized which would be less nice... Reviewed-by: Samuel
* Update tech preview license header.Jason McDonald2009-08-31962-12494/+12494
| | | | Reviewed-by: Trust Me
* Autotest: add some D-Bus tests sending complex structs and lists of themThiago Macieira2009-08-312-0/+53
|
* Fix license headers.Jason McDonald2009-08-311-41/+0
| | | | Reviewed-by: Trust Me