summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Update stale license headers.Jason McDonald2009-08-124-24/+140
| | | | Reviewed-by: Trust Me
* Update the css_borderimage test to test the menubar as wellOlivier Goffart2009-08-111-181/+218
| | | | | | | The menu bar is currently broken with border-image, fix is about to be commited Task-number: 230363
* Make QFontMetrics::elidedText aware of multi-length stringsOlivier Goffart2009-08-111-3/+27
| | | | | Reviewed-by: Oswald Buddenhagen Task-number: QT-10
* QFSFileEngine must set LocalDiskFlag regardless file exists or notRitt Konstantin2009-08-111-0/+26
| | | | | | | | LocalDiskFlag actually means "Local File Engine" and can be effectively used for testing file path for target storage type (local/network/virtual and so on) Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* '.' and '..' must not be hiddenRitt Konstantin2009-08-111-0/+13
| | | | | | | | | | | | | | | | | | _unix code always sets HiddenFlag for special dirs which is wrong; also there is some inconsistence under win: * FindFirstFile sets FILE_ATTRIBUTE_HIDDEN flag for ".." of hidden dir *even* if parent dir is not hidden; * GetFileAttributes sets FILE_ATTRIBUTE_HIDDEN flag for ".." *only* if parent dir is hidden. so, _win part sets HiddenFlag wrong too; finally, we never test parent dir's flags; futhermore hidden special dirs (dotAndDotDot) makes dir iterator's filtering a bit more complex Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* avoid crash when testing HiddenFlag and BaseName is emptyRitt Konstantin2009-08-111-0/+3
| | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* fix tst_QPixmapCache::clear for Windows CEJoerg Bornemann2009-08-111-6/+11
| | | | | | This test used too much memory for Windows CE <= 5. Reviewed-by: thartman
* Wrote an autotest to expose a bug in the GLib event dispatcher.axis2009-08-111-1/+15
| | | | | | | | | | | Zero timers don't fire on the first pass in the GLib event dispatcher. Ideally I should fix the bug of course, but time doesn't permit at the moment. Submitting this test instead as a "reminder". The UNIX event dispatcher passes the test, and it also passes if moved to the end of the slots. Task: 259505
* Merge branch '4.5'Thiago Macieira2009-08-119-13/+118
|\ | | | | | | | | | | Conflicts: configure tests/auto/moc/tst_moc.cpp
| * 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
* | QTableView with swapped headers PageUp/PageDown bugGabriel de Dietrich2009-08-111-0/+33
| | | | | | | | | | | | | | | | | | QTableView with header-swapped rows wouldn't scroll correctly when PageUp or PageDown pressed. Simplified calculation for next currentIndex provided in QTableView::moveCursor. Task-number: 259308 Reviewed-by: olivier
* | Fixes false fails in interbase autotests.Bill King2009-08-113-0/+9
| |
* | Better implementation for commit d13418effc5f00474541ae513a30c9a42c2a1cb3. TheGabriel de Dietrich2009-08-101-0/+30
| | | | | | | | | | | | previous version could run in an endless loop with infinite models. Reviewed-by: olivier
* | Introducing icon theme supportJens Bache-Wiig2009-08-1015-0/+2290
| | | | | | | | | | | | | | | | | | | | | | | | Added some static functions to QIcon to support desktop themes based on the freedesktop spec. It is not intended to replace KIcon and the intention is to use it when available to share icon cache between applications. Applications currently using icon themes are Assistant, Designer and the textedit demo. Reviewed-by: ogoffart
* | don't test dbus stuff where no dbus isJoerg Bornemann2009-08-101-2/+2
| | | | | | | | Reviewed-by: Leo
* | tst_QSharedPointer fixed for Windows CEJoerg Bornemann2009-08-101-0/+2
| | | | | | | | | | | | We cannot create too many threads on Windows CE. Reviewed-By: thartman
* | Compile fix for QStringBuilder auto testhjk2009-08-106-10/+60
| |
* | Moved tests/auto/runQtXmlPatternsTests.sh to devtools/shellLeonardo Sobral Cunha2009-08-101-61/+0
| |
* | Add QBENCMARK_ONCE to QTestLib.Morten Sorvig2009-08-102-1/+15
| | | | | | | | | | | | | | | | | | | | The code block associated with QBENCHMARK_ONCE macro will only be executed once, whether the backend returns a valid result or not. The "-iterations" command line argument is also ignored. This is useful for benchmarking code that has side effects. Revby: jasplin
* | Make QTimeLine::start() restart from the beginning as the documentation says.David Faure2009-08-101-1/+40
| | | | | | | | | | | | | | | | | | The documentation implies that start restarts. Which it did, but only if the timeline was finished _and_ the duration hadn't been changed meanwhile. So after a setDuration(), start() would do nothing, which was unexpected. Merge-request: 1145 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtKeith Isdale2009-08-10138-344/+562
|\ \
| * | Set default QGraphicsTransform3D axis to (0, 0, 1)Rhys Weatherley2009-08-101-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | The docs said that the default axis was (0, 0, 1), but the code and unit tests were using (0, 0, 0). Modify the code to match the docs because (0, 0, 0) is not very useful. Also optimize the calculation of sin/cos values for 90, 180, and 270 degrees. Reviewed-by: Aaron Kennedy
| * | QItemSelectionModel did not send selectionChanged signal when deleting an itemGabriel de Dietrich2009-08-071-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | in a tree-like model with one of its grand-children being selected. Added recursive deselection for the model. Task-number: 232634 Reviewed-by: thierry
| * | QDockWidget: Make visibilityChanged more accurateThierry Bastian2009-08-071-1/+18
| | | | | | | | | | | | Task-number: 258459
| * | Fixes: QComboBox keyboard search not working properly when current index is -1Olivier Goffart2009-08-071-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | If the current index is invalid, start would be (0,0) but would be skiped Task-number: 220195 Reviewed-by: thierry
| * | xmlpatterns autotest: make tests work from shadow directoryPeter Hartmann2009-08-072-67/+73
| | | | | | | | | | | | | | | | | | ... by prepending SRCDIR to the loaded files. Reviewed-by: TrustMe
| * | fixing qmainwindow autotestThomas Hartmann2009-08-071-0/+3
| | | | | | | | | | | | | | | | | | | | | On windows mobile with native menubar integration the menubar is not a child of the mainwindow Reviewed-by: Joerg
| * | Extra check in pluginloader autotestThomas Hartmann2009-08-071-0/+1
| | | | | | | | | | | | | | | | | | This extra check prevents a crash if plugin loading fails Reviewed-by: Joerg
| * | Adding QApplication::processEvents to autotestThomas Hartmann2009-08-071-0/+1
| | | | | | | | | | | | | | | | | | Windows CE is sometimes a little bit slow Reviewed-by: Joerg
| * | Fixing deployment for shadow builds on Windows CEThomas Hartmann2009-08-072-3/+2
| | | | | | | | | | | | Reviewed-by: Joerg
| * | tst_QFile::copyAfterFail fixed on WindowsJoerg Bornemann2009-08-061-0/+1
| | | | | | | | | | | | | | | | | | We cannot remove a file that's still opened. Reviewed-by: ossi
| * | tst_qsharedpointer compile fix for Windows CEJoerg Bornemann2009-08-061-0/+4
| | | | | | | | | | | | | | | | | | There's no time() on Windows CE. Reviewed-by: Daniel Molkentin
| * | tst_qfileinfo fixed for Windows CEJoerg Bornemann2009-08-061-2/+8
| | | | | | | | | | | | | | | | | | | | | Win CE doesn't support real file permissions (FAT only). Further, we don't have pagefile.sys. Reviewed-by: thartman
| * | tst_QHostInfo: Disable short name tests for lookupIPv4.Jocelyn Turcotte2009-08-061-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | These tests run against domain names in troll.no and to allow shorter names the machine has to be in this domain. Removing them since this specific case test the OS more than Qt itself. Reviewed-by: Thiago
| * | tst_qstyle compile fixJoerg Bornemann2009-08-061-1/+1
| | | | | | | | | | | | Reviewed-by: thartman
| * | fix tst_qlocalsocket::readBufferOverflow for Windows CEJoerg Bornemann2009-08-061-3/+6
| | | | | | | | | | | | | | | | | | | | | The TCP socket must get the chance to read data into its read buffer after the first read operation emptied it. Reviewed-by: thartman
| * | fix warning in tst_qlocalsocketJoerg Bornemann2009-08-061-0/+1
| | | | | | | | | | | | Reviewed-by: thartman
| * | Fix a bug in QProcess. QProcess was not reentrant on UnixBenjamin Poulain2009-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | QProcess is supposed to be reentrant but was not on Unix. The constructor of QProcessManager could be exectued several time when QProcess is created. The construction is now protected by a mutex. Task-number: 254246 Reviewed-by: Olivier Goffart
| * | Fixes autotests in QTreeWidget: setHeaderItem & defaultRowSizesLeonardo Sobral Cunha2009-08-061-4/+9
| | | | | | | | | | | | | | | | | | defaultRowSizes was broken on oxygen style because of missing icons. Reviewed-by: paul
| * | Delay too short after fullscreen window shown.Gabriel de Dietrich2009-08-061-2/+1
| | |
| * | Fix QXmlQuery autotestsPeter Hartmann2009-08-062-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | before, it asserted; now, the test is not asserting anymore but still failing, because the fix is not yet checked in. Additionally, it now runs from a shadow directory. Reviewed-by: TrustMe
| * | Fixes autotests in QFileSystemWatcher: watchFileAndItsDirectoryLeonardo Sobral Cunha2009-08-061-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | dnotify is something from older linux kernels and cannot be trusted, therefore we skip some tests. Also we cannot guarantee that 1 operation on the file give only 1 notification in general, so we relaxed the conditions. Reviewed-by: paul
| * | QMenuBar: autotests fixedThierry Bastian2009-08-061-9/+5
| | | | | | | | | | | | | | | Apperently we don't get the leave event when simply moving the mouse with the testlib
| * | QMenuBar: we can't test the action geometries when it is nativeThierry Bastian2009-08-061-0/+3
| | |
| * | Skip tst_QWindowSurface::flushOutsidePaintEvent() when using composition managerJocelyn Turcotte2009-08-061-0/+6
| | | | | | | | | | | | | | | | | | | | | The first VERIFY_COLOR(w.geometry(), w.color); call was failing because the window was mapped but not yet painted on the screen. Reviewed-by: Bradley T. Hughes