summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* _networktest compile fixJoerg Bornemann2009-06-031-1/+1
| | | | Reviewed-by: mauricek
* Correct invalid font.Norwegian Rock Cat2009-06-021-1/+1
| | | | QFont() returns the app font, not an invalid font.
* Fixed failure of tst_Selftests::checkXML.Rohan McGovern2009-06-013-4/+9
| | | | | | | | | | | | | | | | | | | | | | | Cherry-pick of 548da9a5434d615456a7a6efda3380b7138c6000 and some earlier changes predating public repo. Note that this test is not failing if using Qt 4.5 only. However, it fails if using Qt 4.5 selftests against Qt master testlib. We want to be able to use master testlib to run 4.5 testcases, and this change does no harm when using Qt 4.5 testlib, so backport it to 4.5 for convenience. Original change description follows: A few tests use printf, which means they interfere with the XML test logging. Blacklist them for the XML test. Note that these tests happened to pass under the old test logger implementation. That was because the test logger always printed XML tags on a single line, and the printf calls contained no special XML characters. The test logs generated were technically valid XML but contained extraneous text.
* Fix a ASSERT/Crash when adding two times the same QAction to a QGW.Alexis Menard2009-05-281-0/+16
| | | | | | | | | We were adding two times in the QActionPrivate list the entry for the current QGraphicsWidget if the action was existing before. Task-number:KDE Reviewed-by:bnilsen BT:yes
* Fix wrong sorting when using the QFileSystemModel with QTreeViewAlexis Menard2009-05-281-3/+62
| | | | | | | | | | | | | | | An optimization was made to the sorting of QFileDialog to sort only the current root (meaning what the user see). This avoided slowness when the model was big with lots of leafs. The problem here is for the treeview, the root is always the same, we expands only nodes. In that case, a recursive sorting is needed to ensure that all expanded nodes are correctly sorted (and filtered). This will be slower that's why i use an hidden flag in the d pointer to deactivate the recursive sort for the QFileDialog. Task-number:254701 Reviewed-by:olivier BT:yes
* Fixed a problem with streaming QIcons containing multiple pixmaps.Trond Kjernåsen2009-05-281-0/+43
| | | | | | | | | If pixmaps were added through QIcon::addFile() with different sizes than the sizes of the pixmaps themselves, streaming the icon in didn't work properly. Task-number: 254374 Reviewed-by: Kim
* Minor cleanup.Trond Kjernåsen2009-05-281-4/+4
| | | | Reviewed-by: Kim
* Fixed: Setting a border using stylesheet for QComboBox adds an unwated frame.Olivier Goffart2009-05-271-3/+5
| | | | | | | | | | | | | | | | | | | This was already fix. But there was still a frame if there was a stylesheet on the applicaiton. The reason is that the frame's constructor call the style for some hints. And later the combobox will query the style again for the frame hint, before the view get polished. The problem is that the StyleSheetStyle will fill the css cache with wrong information on the first call. This is not visible if there is no stylesheet as in the constructor, the widget style is still the default application stylesheet if there is no global applicaiton stylesheet. Task-number: 254589 Reviewed-by: jbache BT:
* Fixes for merge-request #407Leonardo Sobral Cunha2009-05-271-33/+37
| | | | Removed unused line and added task number to autotest.
* Dont show children when parent is not visible in QGraphicsItemdiaulas2009-05-271-0/+32
| | | | | | | | | When setVisible() is called on a QGraphicsItem, if the parent of that item was hidden, the child shouldn't be actually shown. Task-number: 197802 Reviewed-by: leo Reviewed-by: alexis
* QFileDialog selection bug when calling it multiple times.Alexis Menard2009-05-261-0/+33
| | | | | | | | The problem was that we don't clear the selection model if the previous selection was valid. Task-number:251341 Reviewed-by:jasplin
* Test for QDate::fromDate with string format.Olivier Goffart2009-05-261-0/+26
| | | | | Note that two digit years are always in the year 19xx This is excepted for compatibility reason as discussed with Peter
* Fixed: QSortFilterProxyModel setDynamicSortFilter doesn't works when setting ↵Olivier Goffart2009-05-262-1/+38
| | | | | | | | | | | | | | | the model initially This was caused by two different bug: - In the QSortFilterProxyModel, we need to re-sort when setting the source model change the sorting column (happen when setting a model initially) - In the treeview, we need to activate the sorting even if there is no column yet (because the initial model is empty Task-number: 254234 Reviewed-by: Thierry BT:
* Fixed qmake writing targets into the root of the current drive whenRohan McGovern2009-05-261-0/+16
| | | | | | | | | | | | | | | | DESTDIR=./ and using Windows, nmake and shadow builds. qmake would canonicalize the DESTDIR of "./" to "". Then it would check if the original DESTDIR ended with "/", and if so, append it to the new DESTDIR, resulting in a DESTDIR of "/" - the root of the current drive. Don't do that. This bug doesn't occur with in-source builds because qmake detects that the source and build directories are the same directory and replaces the DESTDIR of "./" with "" before it reaches the buggy code. Autotest: included Reviewed-by: Lincoln Ramsay
* Pressing enter in a QPlainTextEdit embedded on a itemview should insert a ↵Olivier Goffart2009-05-221-0/+78
| | | | | | | | | | newline Do the same special case as for QTextEdit (yes, this is a pitty that we have special cases like that Reviewed-by: Thierry Task-number: 252532
* Unconditionally open temporary files in ReadWrite modeJoão Abecasis2009-05-221-0/+15
| | | | | | | | | | | Although QTemporaryFile hides QFile::open(OpenMode), this function is still available when accessing instance methods through the base class. Unconditionally setting ReadWrite allows the temporary file to be re-opened with different flags. Task-number: 248223 Reviewed-by: Thiago
* QTemporaryFile would forget fileName while file was "closed"João Abecasis2009-05-221-0/+23
| | | | | | | Note: this showed even if the file descriptor was kept open. Reviewed-by: Peter Hartmann Reviewed-by: Thiago
* Fix auto testJoão Abecasis2009-05-221-1/+8
| | | | | | | | | When copying a resource file to the native file system the (read-only) permissions also get copied. On Windows platforms, this was preventing a test file from being deleted. Reviewed-by: Peter Hartmann Reviewed-by: Thiago
* QFile::copy: close source file when using fallback mechanismJoão Abecasis2009-05-223-1/+36
| | | | | | | Also added check in test case for rename fallback. Task-number: 165920 Reviewed-by: Thiago
* Add an autotest to check that the network test server worksThiago Macieira2009-05-223-1/+600
| | | | | | | | | | | | | | | | | | | | | | This test verifies that the network test server is behaving as expected. I think I caught all the services we need testing in the server, but there's still some work to be done: 1) verify that the FTP files are there where they're supposed to be 2) verify that FTP writable areas are writable 3) verify that the HTTP server has the correct files too 4) verify that the HTTP server requests credentials for the protected area 5) attempt to do NTLM authentication to verify the password (probably can't be done with netChat) 6) add Windows SMB tests (//qt-test-server/etc.) 7) add SQL tests (connecting to the SQL server ports) It would be good as well if we could not use QtNetwork. If you break QtNetwork, this test breaks too, so we don't know where the fault is. However, rewriting networking code will add another source of bugs (same for the NTLM authentication). Reviewed-By: João Abecasis
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Jedrzej Nowacki2009-05-202-15/+21
|\
| * make QSslSocket test work also for shadow buildsPeter Hartmann2009-05-202-15/+21
| | | | | | | | | | | | | | ... by being able to load the certificates also in a shadow build directory Reviewed-by: Thiago
* | I made test more stable. There was no sens to check hardcoded size ofJedrzej Nowacki2009-05-201-4/+7
|/ | | | | | | | header + file. Now test check only size of the real file content, assuming that it is rather boring (9,5MB of '\0'). It simply skip header. Reviewed by Peter Hartmann
* Fix incorrect copyright year in some license headers.Jason McDonald2009-05-201-1/+1
| | | | Reviewed-by: Trust Me
* Added auto-test for QComboBox::setItemDelegate and task 253944Stian Sandvik Thomassen2009-05-201-0/+24
|
* qwidget autotest fixed for Windows CEJoerg Bornemann2009-05-191-0/+1
| | | | | | | translucentWidget: On Windows mobile the ColorRedWidget is initially moved to the taskbar position where it cannot be grabbed. Reviewed-by: mauricek
* make the changedSignal test more robustKent Hansen2009-05-191-2/+2
| | | | | | | On some platforms (e.g. Mac) it's not sufficient to call processEvents() only once. Reviewed-by: Andreas Aardal Hanssen
* Adpot more code to use QtNetworkSettings instead of hard coded names.Frans Englich2009-05-196-55/+54
| | | | Reviewed-By: Peter Hartmann
* Use QtNetworkSettings for IMAP server, instead of hard coding.Frans Englich2009-05-192-4/+4
| | | | Reviewed-by: Peter Hartmann
* Use QtNetworkSettings, don't hard code IMAP host name. This should fix ↵Frans Englich2009-05-191-2/+2
| | | | failures in Berlin.
* network autotests: do not use imap.troll.no for testingPeter Hartmann2009-05-192-8/+8
| | | | | | ... but use the test server instead Reviewed-by: Frans Englich
* Don't "hope" that a connection gets picked up; do it right!Norwegian Rock Cat2009-05-191-2/+4
| | | | | | | | | | While downloadProgress and uploadProgress both work on local files. There still may be a delay before the connection is actually picked up. This usually is caught by the processEvents(), but could be missed. Therefore, do a wait if we don't have any pending connections and work in ALL cases. Reviewed-by: Markus Goetz
* grabWindow in MacGui test was grabbing the wrong area.Norwegian Rock Cat2009-05-191-6/+1
| | | | | | | I think grabWindow was borken and we were compensating for it in the auto test. Now that it works as documented our workaround broke. Reviewed-by: Morten Sørvig
* qmake autotest: Remove dependency on Qt3 Support on WindowsJoão Abecasis2009-05-191-4/+2
| | | | Reviewed-by: jbache
* make splitter autotest pass on mac tooKent Hansen2009-05-191-3/+2
| | | | It's not enough to call processEvents() just once on all platforms.
* Windows CE autotest compile fixesJoerg Bornemann2009-05-194-4/+4
| | | | | | Not always is "." in the includes path... Reviewed-by: mauricek
* fix compiler warnings when qreal == float in tessellator autotestJoerg Bornemann2009-05-191-4/+4
| | | | Reviewed-by: mauricek
* Fix autotest for qitemmodel on windowsJens Bache-Wiig2009-05-191-1/+1
| | | | | | Fixed a broken include Reviewed-by: Thomas Zander
* Fixed autotest tst_QPrinter::printDialogCompleter on Windows.Kim Motoyoshi Kalland2009-05-191-2/+3
| | | | | QApplication::activeWindow() returns null for native dialogs, so null cannot be passed as the target widget when calling QTest::keyClick().