summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | tst_qhttpnetworkconnection: Add a priority testMarkus Goetz2009-10-011-0/+59
| | | | | | | | | | | | | | Add a testcase that checks that high priority requests are actually high priority. Reviewed-by: Peter Hartmann
* | Make test pass even if printer names contain punctuationPaul Olav Tvete2009-10-011-1/+1
| | | | | | | | Reviewed-by: Jesper
* | Fixed qitemdelegate autotest compilation with Nokia X86 compiler.Janne Anttila2009-10-011-1/+1
| | | | | | | | Reviewed-by: TrustMe
* | Deployment augmented for WinCEninerider2009-10-011-4/+11
| | | | | | | | | | | | | | SRCDIR problem fixed and deployment augmented to accomodate image and icon tests. Reviewed-by: Joerg
* | Disabled icon conversion functions for WinCEninerider2009-10-011-0/+9
| | | | | | | | | | | | | | These test will require more work on WinCE which we will invest shortly. Reviewed-by: Joerg
* | Test http://codepaster-nokia.troll.no/?id=18722 skipped for WinCEninerider2009-10-011-0/+3
| | | | | | | | | | | | | | Test does not really make sense on WinCE as it is. Lists with items size over 5000 are not useful there. Reviewed-by: Joerg
* | Fix auto-test that was crashing on Mac Carbon.Alexis Menard2009-10-011-0/+8
| | | | | | | | | | | | | | If you let top level widget hanging around with a broken state it may crash when a process event is triggered. Reviewed-by:ogoffart
* | Skip unstable testKent Hansen2009-10-011-0/+2
| | | | | | | | The test relies on wall-clock time.
* | Fix tst_QIcon::isNullOlivier Goffart2009-10-013-3/+3
| | | | | | | | | | | | | | | | The test tries to load a file from an unsuported format. The problem is that tga is a supported format if KDE plugins are installed It is unlikely that cpp will ever be a supported image format Reviewed-by: paul
* | Fix column number provided to QScriptEngineAgentKent Hansen2009-10-012-3/+7
| | | | | | | | | | | | | | | | Introduced a helper function in our custom source provider, columnNumberFromOffset(), that maps an absolute offset in the source input to a relative column number. Reviewed-by: Jedrzej Nowacki
* | Fix tst_QPixmap on 16bit displayOlivier Goffart2009-10-011-6/+23
| | | | | | | | | | | | Pulse machine runs a 16bit display, some comparisons fails. Reviewed-by: Samuel
* | Fix the compilerwarning test on GCCOlivier Goffart2009-10-011-1/+0
| | | | | | | | | | | | | | | | | | | | Don't issue this warning: comparing floating point with == or != is unsafe There is many of them and the Qt code is correct (it has to be fast comparison to know if fast code path must be taken) Reviewed-by: Jeremy
* | Make this test pass on Windows.Alexis Menard2009-10-011-1/+4
| | | | | | | | | | | | Calling rm on . remove the dir on Windows. Reviewed-by:TrustMe
* | Add support for modality to QGraphicsItem panels.Bradley T. Hughes2009-10-011-4/+1013
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This add QGraphicsItem::setPanelModality(), panelModality(), isBlockedByModalPanel() and the QGraphicsItem::PanelModality enum (enumerators are either SceneModal, PanelModal, or NonModal, which mirror Qt::ApplicationModal, Qt::WindowModal, and Qt::NonModal). Reviewed-by: ahanssen Squashed commit of the following: commit a980a1b9c2972c676f3a70e8577d4eace54a25b3 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 30 14:42:01 2009 +0200 Fix tst_QGraphicsItem::modality_hover() test failures As pointed out by Andreas, QGraphicsScenePrivate::dispatchHoverEvent() already has all the logic needed to correctly dispatch the hover events when changing modality. All we need to do is store the last known mouse position, and call dispatchHoverEvent() when entering, changing, and leaving the modal state. commit ba41633c96ece8da3a8bbf9c7491c15b14f83f76 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 30 14:40:59 2009 +0200 Fix tst_QGraphicsItem::mixedModality() failure When changing modality from SceneModal to PanelModal, we may need to send WindowUnblocked events in addition to the WindowBlocked events. commit d1076e315de10b1b2fb7617ebaee552c14e49c8b Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 30 14:33:21 2009 +0200 Update the expected events counts in tst_QGraphicsItem::modality_hover() HoverEnter and HoverMove always come in pairs, and should do so when entering or leaving modality as well. This means though that changing modality can cause spurious HoverMove events (as seen in this test). commit a29b098e4c391651ef61dd4714a66b22654e4628 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 30 14:20:25 2009 +0200 Update tst_QGraphicsItem::mixedModality() to do more detailed checking The test looks for unwanted WindowBlocked/WindowUnblocked events now, making it easier to spot where the failure comes from. commit c1ae96126ed01d0e662bddf38ff161e50a804b1c Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Tue Sep 29 12:17:17 2009 +0200 Documentation for QGraphicsItem::PanelModality Document the behavior of the QGraphicsItem::NonModal, PanelModal, and SceneModal enumerators. Corrected a qdoc error in the isBlockedByModalPanel() documentation commit 02fec999e660180ff65bbbf79c8085e582879ed1 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Thu Sep 17 10:31:44 2009 +0200 Add bool QGraphicsItem::isBlockedByModalPanel() This function can be used to figure out 1) if an item is modally shadowed and 2) which panel is blocking the item in question. This will make it possible to implement window-manager like behavior of activating/highlighting/animating modal panels when the user tries to interact with a blocked item (this will most likely need to be done by reimplementing QGraphicsScene::event()). commit eab9a975dcd71b68135325d479374108bd7f3b2a Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 16 14:38:55 2009 +0200 Block key events to the focus item if it is blocked by a modal panel. We don't want the event to propagate either, just stop propagating once we reach an item that is blocked. commit 038b61a10bb837b353f988cb0d1665dd53656cdb Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Tue Sep 15 12:40:27 2009 +0200 Add a test for click-to-focus behavior in the presence of modality Clicking on a widget should neither give it focus nor set it as the sub-focus item. commit 3bb3662556efe8d76af5a56e65b1df7a9f4b476a Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Tue Sep 8 09:08:42 2009 +0200 Newly blocked QGraphicsItem panels should lose implicit grabs when modality is enabled. If an item has an implicit grab when blocked by a modal panel, this grab is lost and no mouse events are sent until the mouse is released and re- commit 3be51be3da36e782a5a1f282c552064d5d490a71 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Thu Sep 3 13:39:14 2009 +0200 Support changing modality from PanelModal to SceneModal or vice-versa Don't leave modality first, and then re-enter... this sends unnecessary events. commit bb0aea559ba01a8bbb03c0370a247ab902f561f5 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 2 16:58:23 2009 +0200 Fix hover event delivery in the presence of modal panels Panels that are modally shadowed should not get hover events. When entering and leaving the modal state, GraphicsSceneHoverEnter and GraphicsSceneHoverLeave event should be send to the widgets that become or are no longer blocked. Auto-test included. commit cad00b1d9da19565e2d7ea2d30d37eb45005b5ae Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 2 10:45:20 2009 +0200 Fix tst_QGraphicsItem::modality_hover() test Don't send hover events to items that are modally shadowed. commit ae15df331901110e19eb2037f37ff7f84cd7cd16 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Wed Sep 2 10:44:14 2009 +0200 Enable the ItemIsPanel flag in the modality_hover() test Otherwise the modality settings are ignored. commit 1580f43c8feabc3a2bf9c1450e1a8916e8940a4c Author: Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> Date: Fri Aug 28 15:20:37 2009 +0200 More work on QGraphicsItem::PanelModality. Added many tests. commit ed2064ad2ec8bc06d62cf1e931b973d5d92c0563 Author: Bradley T. Hughes <bradley.hughes@nokia.com> Date: Thu Aug 27 13:45:11 2009 +0200 Add support for modality to QGraphicsItem panels. This add QGraphicsItem::setPanelModality() and the QGraphicsItem::PanelModality enum (enumerators are either SceneModal, PanelModal, or NonModal, which mirror Qt::ApplicationModal, Qt::WindowModal, and Qt::NonModal). Reviewed-by: ahanssen
* | Stabilize tests on X11Olivier Goffart2009-10-016-5/+9
| |
* | QGLContext::areSharing() to check for GL share relationshipsRhys Weatherley2009-10-011-21/+21
| | | | | | | | Reviewed-by: Samuel
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Rhys Weatherley2009-10-011-2/+2
|\ \
| * | Fix qwidget auto test failing to build on OSX/carbon.Justin McPherson2009-10-011-2/+2
| | | | | | | | | | | | Reviewed-by: Sarah Smith
* | | Add unit tests for QGLShareRegisterRhys Weatherley2009-10-011-0/+122
|/ / | | | | | | Reviewed-by: Sarah Smith
* | Make QGLFramebufferObject crash-proof if QGLContext destroyed firstRhys Weatherley2009-10-011-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it isn't possible to arrange for the QGLFramebufferObject to be destroyed before the QGLContext group in which it was created. Especially during application shutdown or in applications with multiple shared contexts. This change modifies QGLFramebufferObject to use QGLSharedResourceGuard, which ensures that when the last QGLContext in a sharing group is destroyed, any remaining FBO's will revert to !isValid(). It is now safe to destroy the context before the FBO, or the FBO before the context. Unit test included. Reviewed-by: Sarah Smith
* | Stabilize tests on X11Olivier Goffart2009-09-304-37/+45
| |
* | Revert "Make the test fail, not crash for now. A task is already open to fix ↵Peter Hartmann2009-09-301-2/+1
| | | | | | | | | | | | | | | | | | | | it." This reverts commit 21cfe5bf6550ae359d6bfa937b1308891954e9bb. The bug is fixed now. Reviewed-By: Alexis
* | Merge branch 'focusFixes' into 4.6axis2009-09-301-14/+5
|\ \ | | | | | | | | | | | | | | | Conflicts: src/gui/kernel/qwidget_p.h src/gui/kernel/qwidget_s60.cpp
| * | Avoided qt3support constructor (S60 port doesn't have it).axis2009-09-301-1/+1
| | | | | | | | | | | | RevBy: Paul Olav Tvete
| * | Helped out the Symbian compiler to avoid build error.axis2009-09-301-4/+4
| | | | | | | | | | | | RevBy: Trust me
| * | Revert "Switched to asynchronous focus handling on Symbian."axis2009-09-301-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6377f43410b14125a66ffd02acde69cfb6e455e. The asynchronous handling caused too many headaches with input methods, which expect the focus status to be updated immediately. This may break the test case that was originally fixed by this patch (I cannot find out which one at the moment), but that will have to be solved in a different way. Conflicts: src/corelib/kernel/qcoreevent.cpp src/corelib/kernel/qcoreevent.h src/gui/kernel/qwidget.cpp src/gui/kernel/qwidget_p.h src/gui/kernel/qwidget_s60.cpp
* | | Stabilize more test on X11Olivier Goffart2009-09-306-110/+108
| | | | | | | | | | | | Each times the test are run, pulse show different failures.
* | | Add more debug information to the QPrinterInfo testOlivier Goffart2009-09-301-8/+11
| | | | | | | | | | | | Reviewed-by: Paul
* | | Stabilize graphicsview testOlivier Goffart2009-09-301-1/+3
| | |
* | | Merge commit 'origin/4.6' into mmfphononFrans Englich2009-09-3030-499/+1064
|\ \ \