summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Decrease tst_QThreadOnce::multipleThreads test num of thread for SymbianJanne Anttila2009-10-061-1/+1
| | | | | | | | | | In Symbian OS the maximum number of thread per process depends on stack size. With default 8KB stack size you can have 128 threads, with 16KB stack size you can have 64 threads etc. Since all qt threads nowadays have maximum stack size, we need to decrease the amount of threads in this test. Reviewed-by: TrustMe
* Increased tst_QSharedMemory::simpleProcessProducerConsumer timout.Janne Anttila2009-10-061-1/+1
| | | | | | | | Test fails sometimes in Symbian OS due to fact that lackey has not finished it's task in given time. Increase timeout to same value as used in waitForStarted statement. Reviewed-by: TrustMe
* Merge branch '4.5' into 4.6Thiago Macieira2009-10-063-5/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/global/qglobal.h src/plugins/qpluginbase.pri src/qbase.pri tests/auto/qabstractitemview/tst_qabstractitemview.cpp tests/auto/qcssparser/qcssparser.pro tools/assistant/tools/assistant/doc/assistant.qdocconf tools/qdoc3/test/assistant.qdocconf tools/qdoc3/test/designer.qdocconf tools/qdoc3/test/linguist.qdocconf tools/qdoc3/test/qmake.qdocconf tools/qdoc3/test/qt-build-docs.qdocconf tools/qdoc3/test/qt.qdocconf
| * tst_QCssParser::extractFontFamily fix Windows CE font deploymentJoerg Bornemann2009-10-062-3/+38
| | | | | | | | | | | | | | On Windows mobile we usually don't have the "Times New Roman" font. Thus we must deploy and register it, if its not available. Reviewed-by: mauricek
| * fix tst_QAbstractItemView::task250754_fontChange for Windows CEJoerg Bornemann2009-10-061-5/+17
| | | | | | | | | | | | | | We need to give Windows mobile some more time to handle all internal timer events. Otherwise QTreeView::updateScrollBars doesn't get called. Reviewed-by: mauricek
| * Fixing the autotest for other platforms, hopefully...João Abecasis2009-10-051-1/+1
| | | | | | | | Reviewed-by: Joerg Bornemann
| * tst_QComboBox::task248169_popupWithMinimalSize() fixed for WinCEninerider2009-10-051-2/+4
| | | | | | | | | | | | | | Changed the absolute size values for the combobox to desktop dependent sizes. Reviewed-by: Joerg
* | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6ninerider2009-10-066-10/+46
|\ \
| * | Stabilize tests on X11Olivier Goffart2009-10-065-10/+12
| | |
| * | Don't output redundant setPen command when reusing PS printerEskil Abrahamsen Blomfeldt2009-10-061-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you reused a printer to paint to several different files, the results would sometimes be different, as the subsequent runs would have redundant setPen commands in its output. This was because the simplePen flag was not reset to its initial value when reusing the print engine. Task-number: QTBUG-4479 Reviewed-by: Trond
* | | Skipped enter/leave test for Windows CEninerider2009-10-061-0/+3
|/ / | | | | | | | | | | Currently Windows has no proper cursor support. Reviewed-by: Thomas Hartmann
* | Fix the pad navigator demo.Alexis Menard2009-10-061-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | QGraphicsWidget used to called setPosHelper where all the logic was. But since the new flag itemSendsGeometryChanges some part of the code inside setPosHelper move back to setPos. QGraphicsWidget was not updated after this change. It doesn't matter as it is but for QGraphicsProxyWidget which activate the flag itemSendsGeometryChanges it matters. ItemChange was never called so the proxy was never really moved. Task-number:QT-672 Reviewed-by:andreas
* | Fix auto test for QSound; find test wav file.Justin McPherson2009-10-062-2/+6
| | | | | | | | Reviewed-by: Bill King
* | Add autotest for mysql savepoints.Bill King2009-10-061-0/+15
| |
* | Stabilize tests on X11Olivier Goffart2009-10-055-21/+20
| |
* | Stabilize test on X11Olivier Goffart2009-10-054-9/+8
| |
* | Test fix : Move the global test model to a dir that the test won't delete.Alexis Menard2009-10-051-0/+2
| |
* | Fixed bug in X11 paint engine causing source pixmap depth to change.Samuel Rødal2009-10-051-0/+19
| | | | | | | | | | | | | | | | Setting a pixmap brush when painting to a 32-bit target might cause the source pixmap to be converted to 32-bit. We should detach the pixmap if we need to convert it. Reviewed-by: Trond
* | use QTRY_VERIFY instead of qWait() in tst_QDialog::reject()Bradley T. Hughes2009-10-051-17/+11
| | | | | | | | | | | | | | | | | | This test already uses qWaitForWindowManager(), but on X11, reshowing a dialog can take long as the window manager has to do more work before remapping the window. we should give it more time (hence the change to QTRY_VERIFY) Reviewed-by: Rohan McGovern
* | Test fix on MacOlivier Goffart2009-10-053-1/+6
| |
* | Fixes to qpixmapcache test cases, test case now adapts to cache_limit.Janne Anttila2009-10-051-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default cache_limit in different platforms have different value. For example in Symbian the default is currently 1024 KB where as for desktop platforms the default is 10 MB. The purpose of modified qpixmapcache test cases was to do operations until cache_limit was reached. This was achieved by hard coded 40000 iterations. However this hard-coded value is fargile for cache limit changes, and in addition it unnecessarily made the test exectuion to take very long time on platforms which had smaller cache limit. This patch changes the test so that number of expected items to fit in cache is calculated and then 1000 extra items is tried to put in cache to make sure limit is exceeded. Reviewed-by: Alexis Menard
* | QAbstractItemView: Make sure the view is updated when a delegate is set.Olivier Goffart2009-10-051-3/+4
| | | | | | | | | | | | | | The test tst_QListView::task254449_draggingItemToNegativeCoordinates was failing in cocoa because of this. (on, cocoa, the call to show was doing the first paintEvent) Reviewed-by: Thierry
* | Fix whatsThis breakage when using custom style sheet fontJens Bache-Wiig2009-09-141-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | When setting a large font using style sheets, the whats this popup size calculation would be incorrect resulting in half visible lables. By calling ensurePolished before showing the label, we ensure that this will be properly handled. We also added a new test case for whatsThis in tst_qtooltip Task-number: QTBUG-2416 Reviewed-by: ogoffart
* | Autotest: disable the forwardDeclared1 test in WinSCW too.Thiago Macieira2009-10-051-1/+1
| | | | | | | | | | | | | | | | | | It also invokes the destructor directly, even on forward-declared types. That must be an ABI convention. This test isn't reliable. Reviewed-by: TrustMe
* | Autotest: Don't run 15 and 35 threads on Windows CE.Thiago Macieira2009-10-051-1/+2
| | | | | | | | | | | | | | The device can't cope, so let's keep only the small thread count tests there. Reviewed-by: Trust Me
* | Added autotest for qFastSin() and qFastCos().Kim Motoyoshi Kalland2009-10-053-0/+74
| | | | | | | | Reviewed-by: Trond
* | Fixed tst_qgraphicsitem.cpp compilation for Nokia X86 compiler.Janne Anttila2009-10-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Nokia X86 compiler is not able to resolve correct templated qCompare functionfor derived types. So implicit casting does nto work corectly. I have tried to add template specilations for qCompare also, but then compiler complainf about unambiguous functions. The promlem for now is fixed by adding explicit cast to same type against which the comparuion is done. Reviewed-by: TrustMe
* | Fixed sharedmemory autotest build for RVCT.Janne Anttila2009-10-051-1/+1
| | | | | | | | | | | | | | Without this fix we got the following error: "line 776: Error: #254: type name is not allowed" Reviewed-by: TrustMe
* | Add unit tests for QGLContextResourceRhys Weatherley2009-10-041-1/+49
| | | | | | | | Reviewed-by: trustme
* | Stablilize autotests on X11Olivier Goffart2009-10-022-7/+14
| |
* | Stabilize the SyntheticEnterLeave tests.Paul Olav Tvete2009-10-021-0/+4
| | | | | | | | | | | | | | Reset the mouse position to a known state at the start, instead of depending on what the previous test did. Reviewed-by: Jeremy
* | Mac: update/small fix to 45f095b8970dc3c1b6f6e97fa2323654ba848288Richard Moe Gustavsen2009-10-021-1/+8
| | | | | | | | | | | | | | | | It turns out that we need to let singleStep keep its value in qtextedit so that pushing the up/down buttons on the slider works as they should. Moreover, overriding the behaviour in abstract slider also makes QGraphicsView work out of the box. Also added in the test fix suggested by Olivier.
* | Revert "network selftest: make sure tested file has correct line endings"Markus Goetz2009-10-021-1/+0
| | | | | | | | | | | | | | | | | | This reverts commit ee51f0ee63fe5c6388cea1a1043963303ee3810b. The selftest should "see" the git settings as they are to detect if they are wrong on CRLF platforms. Reviewed-by: Aleksandar Sasha Babic <aleksandar.babic@nokia.com> Reviewed-by: Peter Hartmann
* | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-10-0213-16/+215
|\ \
| * \ Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Alexis Menard2009-10-021-0/+41
| |\ \ | | |/ | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp src/gui/graphicsview/qgraphicsscene_p.h
| | * Fix a bug when clipsChildrenToShape is set back to false.Alexis Menard2009-10-021-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you set the flag itemClipsChildrenToShape to true on a parent, an optimization was made in 4.5.0 to not add children of this parent in the index. But when you set the flag back to false all the sub-tree of the parent should be re-added to the index otherwise the index will never find all children. This code is not relevant for 4.6 since the index part of QGraphicsView has been refactored and handle this case with itemChange in QGraphicsSceneIndex. Reviewed-by:andreas
| | * unscrew line numbers ... again. !@§$#%Oswald Buddenhagen2009-10-017-16/+16
| | |
| * | Adding ssl certificates to the projectAleksandar Sasha Babic2009-10-026-4/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | It is much better if test case is self contained, not referring to the files in some other projects. Alos, this makes life easire when it comes to deployement on the embedded devices. Reviewed-by: Peter Hartmann
| * | Fixing test case.Aleksandar Sasha Babic2009-10-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | In the qhttpnetworkconnection.cpp the defaultChannelCount is hardcoded to 3, for Symbian platform, and that fact has to be reflected in test case as well. Reviewed-by: Markus Goetz
| * | attempt to make QScriptEngine::collectGarbage() autotest more robustKent Hansen2009-10-021-9/+23
| | | | | | | | | | | | | | | | | | | | | Since the GC looks for pointers in the C stack, try to kill those pointers before calling collectGarbage(). Reviewed-by: Simon Hausmann
| * | Stabilize tests on X11Olivier Goffart2009-10-024-3/+5
| | |
| * | Fixed logic in clock() function of audio class's.Kurt Korbatits2009-10-022-0/+6
| | | | | | | | | | | | | | | | | | | | | - clock() should return valid value except in stop state, return 0. - Added clock() function testing to unit tests. Reviewed-by:Justin McPherson
* | | Disabled QtNetworkSettingsInitializerCode code for Symbian HW.Janne Anttila2009-10-021-8/+16
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code is just causing more problems, than helping us to solve autotest problems. So initial purpose of this code is against us, why: qWarning used in this code sto print debug info is not visible in HW since global static objects are initialized before the QTestLib initializes the output channel. Running hostname resolving in globab static object constructir is not very trivial, requiring IAP setup and all network related code to be executed. Since application environment is no yet completely running at the time when gloabl static are costructed, the operation is deemed to fail. Failing means calling qFatal whcih in essence is causing panic in very early phase of test execution. This happens also for some QtCore autotests which have minor dependency to QtNetwork. making the autotest result to look worse than they actually are. Reviewed-by: Aleksandar Sasha Babic
* | Test stabilisation on X11Olivier Goffart2009-10-017-12/+18
| | | | | | | | | | | | for the Q3Table one, it sometimes fail with XPASS. There is no point trying to stabilize a failure on a test for a class we are not likely to touch anyway.
* | Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-10-011-0/+82
|\ \ | |/
| * Fixed Designer property editor selection bug.Gabriel de Dietrich2009-10-011-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the editor had been created inside the QtPropertyEditorView (inheriting QTreeWidget), the subsequent show sent a synthetic mouse move event down to the QLineEdit, and a new selection was made on the text because the mouse button was marked as pressed in the event. QApplicationPrivate::sendSyntheticEnterLeave() now sends a mouse move event without any button pressed. Auto-test included in tst_QWidget. Task-number: QTBUG-4055 Task-number: 253159 Task-number: QT-659 Task-number: 245398 Reviewed-by: bnilsen
* | network selftest: make sure tested file has correct line endingsPeter Hartmann2009-10-011-0/+1
| | | | | | | | | | | | added file to preserver the correct line endings for the test file Reviewed-by: Aleksandar Babic
* | fix minimizing for Windows CE and Windows mobileJoerg Bornemann2009-10-011-10/+0
| | | | | | | | | | Task-number: QT-2243 Reviewed-by: thartman
* | oops.. fixed compilation of testThierry Bastian2009-10-011-1/+1
| |
* | Try to fix autotestThierry Bastian2009-10-011-4/+5
| | | | | | | | | | Also improves a bit the quality of the code by sending the event instead of calling directly the event handler