summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* don't test tst_QMenu::mouseActivation on Windows mobileJoerg Bornemann2009-08-181-0/+3
| | | | | | | | We integrate QMenu into the native menu system. Thus it doesn't make sense to click at position (5,5) or so. We have the windowsmobile auto test for this. Reviewed-by: thartman
* fix tst_QMainWindow::menuBar for Windows mobileJoerg Bornemann2009-08-181-0/+8
| | | | Reviewed-by: thartman
* Fix regression in clip path calculation for QGraphicsWidget.Alexis Menard2009-08-181-0/+82
| | | | | | | | | | | | | | | | | | This fixes a regression when computing the clip path for a QGraphicsWidget that clip its children to its shape. The clip path cache use the bounding rect which has a null width and height the very first time on a QGraphicsWidget. This might happen as well for any item that have a null width and height (e.g. QGraphicsRectItem before you set the rect). We should do better in mainline by refactoring this clip path cache and calling it in prepareGeometryChange which should be called when you update the shape and the boundingRect of the item. Do we really need also in 4.6/mainline the clip path as it is now? This should be investigate also. The auto-test cover the problem so we can use it after for refactoring the cached clip path. Task-number: 257232 Reviewed-by: andreas Reviewed-by: bnilsen
* QSslSocket: Clear readBuffer and writeBuffer on close()Markus Goetz2009-08-181-0/+29
| | | | | | Fixes https://bugs.webkit.org/show_bug.cgi?id=28016 Reviewed-by: andreas
* Fix qsqltablemodel autotestDerick Hawcroft2009-08-171-6/+7
| | | | | | test was broken Reviewed-by:Bill King
* skip tst_QScriptEngineDebugger::multithreadedDebugging on Windows CEJoerg Bornemann2009-08-171-0/+3
| | | | | | We run out of memory on the test system in this test. Reviewed-by: mauricek
* new screenshot for windowsmobile autotestJoerg Bornemann2009-08-171-0/+0
| | | | | | | Nowadays every Windows mobile application has a menu (for correct soft key support). That's why we need a new screen shot. Reviewed-by: thartman
* fix warning in windowsmobile autotestJoerg Bornemann2009-08-171-2/+0
|
* run tst_windowsmobile only on WM5Joerg Bornemann2009-08-171-4/+8
| | | | | | The screenshots in the QRC were taken on the WM5 emulator. Reviewed-by: thartman
* make tst_windowsmobile work in shadow buildsJoerg Bornemann2009-08-171-1/+1
| | | | Reviewed-by: thartman
* Fix the painting of QComboBox on Mac when the rect is not at the originBenjamin Poulain2009-08-141-0/+44
| | | | | | | | | | | | The style was assuming that the combo box is painted at (0,0). This is not the case when the painting is done in the delegate of an item view. The offset of the rect is now taken into account to paint the style. HIRect has been replaced by QRect when it make sense. Task-number: 00026815 Reviewed-by: Richard Moe Gustavsen
* don't test dbus stuff where no dbus isJoerg Bornemann2009-08-121-3/+3
| | | | Reviewed-by: Leo
* tst_qurl fixed after the great URL replacement spreeJoerg Bornemann2009-08-121-15/+15
| | | | | Reviewed-By: mauricek Reviewed-By: thartman
* fix tst_QWidget::showAndMoveChild for Windows mobileJoerg Bornemann2009-08-121-0/+1
| | | | | | | | This test created a widget at position (0,0) and grabbed the screen. That's a bad idea on Windows mobile because the upper task bar will cover the widget. Reviewed-by: thartman
* fix tst_QWidget::inputFocus_task257832 on WindowsJoerg Bornemann2009-08-121-0/+1
| | | | | | | | The widget must be created before calling QInputContext::setFocusWidget. Otherwise we run into an assertion. Yes, this only occurs in debug configuration but its still annoying... Reviewed-by: thartman
* indentation fixed in tst_QWidget::inputFocus_task257832Joerg Bornemann2009-08-121-10/+10
| | | | Reviewed-by: TrustMe
* Test naming convention fixes.Rohan McGovern2009-08-129-8/+8
| | | | | Make sure the testcase and directory name are the same (excluding `tst_').
* Update URL for Qt FTP site.Jason McDonald2009-08-113-25/+25
| | | | Reviewed-by: Trust Me
* Update URL for Qt web site.Jason McDonald2009-08-1199-169/+169
| | | | Reviewed-by: Trust Me
* Update URL of online documentation.Jason McDonald2009-08-112-10/+10
| | | | Reviewed-by: Trust Me
* Update old email address.Jason McDonald2009-08-1138-39/+39
| | | | Reviewed-by: Trust Me
* Qt's domain name is now qt.nokia.com.Jason McDonald2009-08-111-4/+4
| | | | Reviewed-by: Trust Me
* Update license headers.Jason McDonald2009-08-11896-963/+963
| | | | Reviewed-by: Trust Me
* Fix autotest for qtwidgets::snapshotJens Bache-Wiig2009-08-101-3/+3
| | | | | | Kramer is no longer accessible from the pulse test system Reviewed-by: jesperht
* Autotest: ensure we don't mishandle SSL certificates with NULsThiago Macieira2009-08-072-0/+98
| | | | | | This is a vulnerability in some implementations. Qt isn't affected because... well, we never implemented the decoding of escape sequences :-)
* Use QFile instead of QTemporaryFile in compilerwarning testcaseMarius Storm-Olsen2009-08-061-5/+9
| | | | | | | | | | | | | | QTemporaryFile on Windows doesn't open the file as a sharable, and doens't close the file when you call .close(). So the testcase fails on Windows with a Sharing Violation when the compiler tries to compile the file. By switching to QFile we can at least close the file before letting the compiler chew on it, and remove it at the end when the testcase is done. Open the file with Truncate, in case the testcase fails to remove the file. Reviewed-by: trustme
* Tests: Make uic/uic3 use QLibraryInfo paths as do the linguist tests.Friedemann Kleint2009-08-062-2/+4
|
* Mac: fix autotestRichard Moe Gustavsen2009-08-061-1/+1
| | | | | | | | On mac, we prefer testing with mp3 rather than ogg, Because in the latter case, you must install perian to make it work. And the test machines dont. Reviewed-by: brad
* Tests: Make tools tests (rcc/moc/uic/uic3) run without X11-connection.Friedemann Kleint2009-08-064-4/+4
|
* Make the test pass by setting a path where you have dirs.Alexis Menard2009-08-061-1/+2
| | | | | | | | The test was failing because the goal of the test expect to get only directories displayed. But if you don't have some in the current dir then it fails. home dir should be enough. Reviewed-by:TrustMe
* Cleaned up test naming and platform-specific tests.Rohan McGovern2009-08-0632-201/+194
| | | | | | | | | | | | | | When an autotest fails to compile, there's no way to determine which testcase(s) have been prevented from running. Our results parsing tools have been guessing, under the assumption that a directory called `qdogwalker' always contains a testcase named `tst_qdogwalker'. That wasn't true for all our tests, so let's make it true. Also changed the platform-specific tests so that qmake will simply skip those tests on unsupported platforms, instead of wasting time compiling a useless QTEST_NOOP_MAIN test.
* Fixes hangup when pressing key in QListWidgetOlivier Goffart2009-08-051-1/+22
| | | | | | | | | If there is severals matching items but all of them are disabled, it would have produced an infinite loop. Block the loop once we reach an already matched item. Task-number: 258949 Reviewed-by: Thierry
* Cocoa: Menus show old selected values.Richard Moe Gustavsen2009-08-051-1/+23
| | | | | | | | | | We never told Cocoa that it needed to redraw the window view when a window was shown. This is implicit if the window is shown for the first time, but needs to be done explicit if you hide and show it again. Task-number: 254672 Reviewed-by: bnilsen
* Get more database tests working/passing.Bill King2009-08-052-4/+18
|
* Fix ancestor flags that are not correctly update when reparenting.Alexis Menard2009-08-041-0/+16
| | | | | | | | | updateAncestorFlags was not reseting the flags if you change the parent that have for instance itemsClipChildrenToShape to a new one that doesn't have that flag. Task-number:258956 Reviewed-by:bnilsen
* 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 drawImage() so that it doesn't sample outside the source image.Kim Motoyoshi Kalland2009-07-281-19/+327
| | | | | | | | | | | | | | | | In qt_scale_image_16bit() and qt_scale_image_32bit(), when a sample point was located on the border between two pixels in the source image, the sample point was rounded up instead of down. If a sample point was exactly on the bottom or right edge of the source image, the function would therefore sample a pixel outside the image. Because of how the target rectangle is rounded, a sample point will never be exactly on the top or left edge of the source image, so we will not get a similar problem there. I extended the lance test pixmap_scaling.qps. Task-number: 258533 Reviewed-by: Samuel
* 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 autotest for "Won't fix" bug 258462.Rohan McGovern2009-07-231-31/+0
|
* QSslSocket autotest: adapt to new certificate on test serverPeter Hartmann2009-07-222-23/+16
| | | | | | got a new certificate, which is self-signed now Reviewed-by: Thiago