aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Say hello to QtQmlDevTools libraryKent Hansen2011-10-074-0/+80
| | | | | | | | | | | | | | | | | | | | | | | QtQmlDevTools is a private helper library. It provides QML/JS file parsing for tools that live outside of the qtdeclarative repository, such as lupdate. This allows us to remove qttools's dependency on the qtdeclarative sources. To use the library: QT += qmldevtools-private #include <private/qdeclarativejsparser_p.h> Change-Id: Ia43751b9be3d9fe05da03e65c6aca1cd9e3fdbbc Reviewed-on: http://codereview.qt-project.org/6116 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix ListView components being unable to access context properties.Andrew den Exter2011-10-079-2/+124
| | | | | | | | | | | Where avaialable use the components creation context instead of the views context as the root context for the new item. Task-number: QTBUG-21865 Change-Id: I07e564548de57d58413dc0d7cd151bd8a90886e7 Reviewed-on: http://codereview.qt-project.org/6199 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* QDeclarativeIncubator autotestsAaron Kennedy2011-10-077-2/+184
| | | | | | Change-Id: I5c4594c40fccfe6cb8b198a5fd6c11b468b0562e Reviewed-on: http://codereview.qt-project.org/6118 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix waiting for active window breakageMartin Jones2011-10-077-110/+52
| | | | | | | | | | Use QTRY_COMPARE(view == qGuiApp->focusWindow()); Change-Id: If5934f4355d9eb8da343f98277e3528f56926cd9 Fixes: QTBUG-21682, QTBUG-21683, QTBUG-21687, QTBUG-21680 Reviewed-on: http://codereview.qt-project.org/6087 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix v8 handle management in QSGLoaderChris Adams2011-10-072-0/+31
| | | | | | | | | | | | | | | | Previously, setting the source to a remote url and specified some initial property values while active was false, and then setting active to true, would cause undefined behaviour. This commit ensures that the handles are managed correctly, and that an appropriate v8 context exists during object creation with initial property values specified. Task-number: QTBUG-21868 Change-Id: I101c6546537aa05aaeb420195aca670bc71f31e1 Reviewed-on: http://codereview.qt-project.org/6109 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix QJSEngine::newQObject ownership behaviourSimon Hausmann2011-10-061-22/+18
| | | | | | | | | | | | | | Ensure the indestructible flag is set to false for objects wrapped through QJSEngine::newQObject, to ensure that they get deleted upon gc when they don't have a parent. Re-enabled the QJSEngine::garbageCollect and ownership auto-tests that verified this behaviour. Change-Id: I181bff0cc44d071d650a2f73494e49cce6ad538e Reviewed-on: http://codereview.qt-project.org/2398 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Add a get function to VisualDataGroup.Andrew den Exter2011-10-062-4/+239
| | | | | | | | | | | | | This returns an object with properties for accessing the model data of an item, membership in the visual data model's groups and the index of the item in each group. Task-number: QTBUG-21512 Change-Id: I878442c8a2e30cc6f9941f7412303581613a6142 Reviewed-on: http://codereview.qt-project.org/5515 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix for qsgtext autotestsYann Bodson2011-10-061-8/+8
| | | | | | | Change-Id: If02d4cb69b4f729b85b47222c17a0b1642e649fb Reviewed-on: http://codereview.qt-project.org/6111 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't call componentComplete() on a VDM until its view is complete.Andrew den Exter2011-10-062-2/+2
| | | | | | | | | | This is more consistent with the behaviour you get when constructing a VisualDataModel explicitly. Change-Id: I33e32c7747ff3153449a88b9c7d894807e7e4b9a Reviewed-on: http://codereview.qt-project.org/6014 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add Particles basic acceptance manual tests.Damian Jansen2011-10-0612-347/+992
| | | | | | | Change-Id: I9be3f3257d74e6a3535f8137083e5dad31965c87 Reviewed-on: http://codereview.qt-project.org/5906 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* add canvas drawImage unit testsCharles Yin2011-10-0624-10/+630
| | | | | | | Change-Id: I772bf58bead4b536cc632983846743e0d576bedd Reviewed-on: http://codereview.qt-project.org/6100 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* QSGLoader shouldn't load component when active is falseChris Adams2011-10-063-3/+53
| | | | | | | | | | | | | Previously, QSGLoader still loaded the component specified, but didn't instantiate the item. This commit ensures that no component is loaded from the source, and that the onLoaded signal is emitted only when loading occurs (when the loader is active). Task-number: QTBUG-21710 Change-Id: I2d83603ef84d6942fb84141e9e146d2cf9654fc4 Reviewed-on: http://codereview.qt-project.org/5915 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Disable particle system tests for CIAlan Alpert2011-10-0621-21/+21
| | | | | | | | | | | | Particle System tests appear to be unstable when run in CI. They should not have their results counted until this issue is resolved. Task-number: QTBUG-21867 Change-Id: Ib6a7cd6a48f96bdb1558a1061e0952f583bbcd91 Reviewed-on: http://codereview.qt-project.org/6106 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Allow incubators to be driven recursivelyAaron Kennedy2011-10-063-0/+64
| | | | | | Change-Id: If8ce239372c3cf3166b666329ba812b25ee54669 Reviewed-on: http://codereview.qt-project.org/6102 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Always delete object if incubator is cancelledAaron Kennedy2011-10-064-0/+79
| | | | | | | Change-Id: Iad04340bac9d1345069e540e6bf9dbf671ce9226 Reviewed-on: http://codereview.qt-project.org/6088 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Mark failing tests as insignificant.Toby Tomkins2011-10-063-3/+3
| | | | | | | Change-Id: I105d94624d5c14a54375f59cf48955ea99553f86 Reviewed-on: http://codereview.qt-project.org/6095 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add JavaScript "var" property type to QMLChris Adams2011-10-0638-34/+1127
| | | | | | | | | | | This commit adds a new syntax which allows "var" type properties which can have JavaScript objects (as well as other basic types) assigned to them. Such JavaScript objects cannot be bound to. Task-number: QMLNG-18 Change-Id: If7f5045f4669e0d5c1b8d0891ed765128d0bc1c6 Reviewed-on: http://codereview.qt-project.org/1466 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add support for filtering VisualDataModels.Andrew den Exter2011-10-065-0/+1276
| | | | | | | | | | | | | | | | | Add a VisualDataGroup element which items within a VisualDataModel can be assigned to. Setting the group property of a VisualDataModel or one of its parts models will filter the items visible within a view to just items belonging to that group. By default all items belong to an 'items' group. The VisualDataModel attached object includes properties indicating whether a item is a member of a group and its index in the group. Task-number: QTBUG-21513 QTBUG-21515 Change-Id: If3df6a359a888a6f79923775d2f78076d5e7d2cf Reviewed-on: http://codereview.qt-project.org/4115 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add more unit tests for qsgcanvasitem and fix unstable testsCharles Yin2011-10-0620-28/+5910
| | | | | | | Change-Id:I5fc11a5874d55ad423dc1fb9c3e1b75a38003465 Reviewed-on: http://codereview.qt-project.org/5962 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix TextInput and TextEdit cursorRectangleSize autotestsJoona Petrell2011-10-052-14/+9
| | | | | | | | | | Task-number: QTBUG-21691 Change-Id: I7fdcbcb0fd8b3442f5af91aa87f4337c7597f95b Reviewed-on: http://codereview.qt-project.org/5865 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* V8Debugger: Code beautificationKai Koehne2011-10-051-0/+1
| | | | | | | | | | Convert to from QString to QByteArray only when necessary. Also move private methods into private class. Change-Id: Iac28990f16c588e0172356c9395b7771f01f4817 Reviewed-on: http://codereview.qt-project.org/6022 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Add .pro file to auto test dirAlan Alpert2011-10-054-1/+34
| | | | | | | | | Also stabilize some tests Change-Id: I1b508756ffca6a05d495c52d84f46fcaeafe879a Reviewed-on: http://codereview.qt-project.org/5952 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Mark failing tests as insignificant.Toby Tomkins2011-10-054-3/+4
| | | | | | | Change-Id: I5aa4d13fb44c2ec184d405b075d71244782247a9 Reviewed-on: http://codereview.qt-project.org/6007 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update particles autotests to not use SRCDIRAlan Alpert2011-10-0542-45/+87
| | | | | | | Change-Id: I1b508756ffca6a05d495c52d84f46fcaeafe8797 Reviewed-on: http://codereview.qt-project.org/5947 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* qmlplugindump: Add test for running with -builtins.Christian Kamm2011-10-043-1/+118
| | | | | | | | | | | | | | | The main idea is to check for crashes: When instantiable C++ based QML components have uninitialized QObject * members, qmlplugindump can crash while collecting types to dump. That will make it impossible for users to use qmlplugindump and should be fixed in the responsible classes constructor. On unix it has a crash handler that tries to pinpoint which class and property caused the problem. Change-Id: Ie049cae27d94920f3d8346ca7075eba5a11c2a37 Reviewed-on: http://codereview.qt-project.org/5976 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* deploy testdata properly for qsgcanvasitemCharles Yin2011-10-041-2/+7
| | | | | | | Change-Id: I7e5d907a4ba41ad077ea7bc91c5eba255312c41e Reviewed-on: http://codereview.qt-project.org/5960 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* deply testdata properly for qmltestCharles Yin2011-10-041-8/+7
| | | | | | | Change-Id: I9ac2df09c5297a20934b219c3312c8a22011546a Reviewed-on: http://codereview.qt-project.org/5961 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* QDeclarativeIncubator autotestsAaron Kennedy2011-10-044-0/+192
| | | | | | | | Change-Id: Ib1b70903c5aa82fc1112c17db1b676b4740ea685 Task-number: QTBUG-21151 Reviewed-on: http://codereview.qt-project.org/5940 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix incorrect index when accumulating multiple removes.Andrew den Exter2011-10-042-0/+23
| | | | | | | | | | Don't remove the intersecting count from the current remove twice, and accumulate consecutive not just overlapping removes. Change-Id: I426d764d980ee17ad114aa03ca4089da89c6aed2 Reviewed-on: http://codereview.qt-project.org/5902 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* test: fixed testdata deployment for tst_qdeclarativelanguageRohan McGovern2011-10-0414-11/+38
| | | | | | | | | | Make it feasible to deploy the testdata onto a device. Task-number: QTBUG-21721 Change-Id: I69e860e17ff9a4882997dd28480856847f230e83 Reviewed-on: http://codereview.qt-project.org/5667 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Allow .pragma library scripts to import other scriptsChris Adams2011-10-045-66/+148
| | | | | | | | | | | | | | | | | | | Previously, a .pragma library script would have a new context which did not have an engine set. If the script then imported other scripts a crash would occur due to dereferencing the (null) engine ptr. This commit ensures that even if no parent context is used (eg, for shared scripts which don't import the parent context) the engine from the parent context is used as the engine in the new context. Finally, unit tests for the .pragma library import with imports cases were added to tst_qdeclarativeecmascript. Task-number: QTBUG-21620 Change-Id: I671ffc9eee98a69cce7c169ce5b9d5aae4d1ff0d Reviewed-on: http://codereview.qt-project.org/5421 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* QDeclarativeIncubator::clear() and autotestsAaron Kennedy2011-10-038-1/+401
| | | | | | | Change-Id: I2a14c01c7f9412459572e9960cb95a4c24e068aa Task-number: QTBUG-21151 Reviewed-on: http://codereview.qt-project.org/5911 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* currentIndex not updated correctly if list is initially emptyBea Lam2011-10-032-1/+43
| | | | | | | | | | | The currentIndex shouldn't be incremented when itemCount == 0 and also it should be default to 0 after the first item is added. Task-number: QTBUG-21643 Change-Id: Ia9418c0cd1cd659410123394c880dfe72557fa16 Reviewed-on: http://codereview.qt-project.org/5768 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Initial commit of particle system autotestsAlan Alpert2011-10-0369-0/+3949
| | | | | | | | | Just some basic autotests for most of the elements. Change-Id: I2d289f38f362a38c69e03ff92154c98db3c4c486 Reviewed-on: http://codereview.qt-project.org/5844 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix order of QSGItem mouse filtering.Martin Jones2011-10-031-1/+52
| | | | | | | | | | | | QGraphicsView filtered child items beginning with the item's parent, grandparent, greatgrandparent... QSGCanvas did the opposite, which breaks the QML mouse handling element filtering logic. Task-number: QTBUG-21446 Change-Id: I18e125305eef536237195895a7f41f88b532d4aa Reviewed-on: http://codereview.qt-project.org/5819 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Don't move content forwards when items are moved downBea Lam2011-10-032-5/+15
| | | | | | | | | | | | | | | | | | | | Previously, if items moved down within a view, the content position would effectively drop down. E.g. for a (0,5,3) move that moved 3 items from 0 to 5, the content y would move to the position of index 3, since it became the new first item. However, this makes it difficult to move transitions for move() operations in these cases since these items do not move (since the content position moves instead). With this fix, the content position does not move, and items will always move if they are moved. Note this behaviour was previously implemented for backwards movements, e.g. a (5,0,3) move but was not enabled for a forwards (0,5,3) move. Change-Id: I1c5a19e3c36347a4aa0cf6e31c975967a7eeada9 Reviewed-on: http://codereview.qt-project.org/5576 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* tests for canvas and a few bug fixesCharles Yin2011-09-308-1/+269
| | | | | | Change-Id: Icbbc7f2a0fe3b908963ce18afef51e25ea0170a0 Reviewed-on: http://codereview.qt-project.org/5805 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Modify JS Object to QVariant conversionChris Adams2011-09-302-0/+32
| | | | | | | | | | | | | | | | | Previously, JS Objects would be converted to a QVariantMap where each value in the map was a QVariant from toVariant(propertyValue). Unfortunately, this would result in a crash if the object had a reference to another object which had a reference to the original object, due to the circular reference. This commit changes the conversion code to use QV8Engine::variantMapFromJS() instead, which avoids cyclic references. Task-number: QTBUG-21626 Change-Id: I129048c8704ae0d1095a02d0ce4c0fe5850b1b20 Reviewed-on: http://codereview.qt-project.org/5490 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix text input delay related test failures.Andrew den Exter2011-09-302-29/+49
| | | | | | | | | | | | Allow a small delay after mouse or key events for the events to be processed before verifying the result, and use the QTRY_ macros to be doubly sure. Task-number: QTBUG-21690 Change-Id: I44e7fa58ef2e57572b6e342af7f4f18649144770 Reviewed-on: http://codereview.qt-project.org/5763 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove Symbian-specific code from tests.Jason McDonald2011-09-30220-1315/+133
| | | | | | | | | | Symbian is not a supported platform for Qt5, so this code is no longer required. Change-Id: I5cb6d3b41fbb9fa5fea6176ad949e4e7be7c30b5 Reviewed-on: http://codereview.qt-project.org/5767 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix issue with interpolating more than one path segment backwards.Michael Brasser2011-09-302-0/+44
| | | | | | | Change-Id: I463010ed63d41be80db96e8306aef8caa3863ccf Reviewed-on: http://codereview.qt-project.org/5821 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Text format AutoText should use StyledText instead of RichText.Yann Bodson2011-09-305-2/+24
| | | | | | | | Task-number: QTBUG-21723 Change-Id: Ife213be95985ad1022e2f60241e69ecd9f467caf Reviewed-on: http://codereview.qt-project.org/5825 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix tst_qsgmousearea clickThrough() test stability.Martin Jones2011-09-301-50/+35
| | | | | | | Change-Id: Iee87ea8e62bffd743e522f969c34fbc2f0a1443e Reviewed-on: http://codereview.qt-project.org/5766 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Ensure JS-owned QObjects are cleaned up on v8engine dtorChris Adams2011-09-304-0/+98
| | | | | | | | | | | | | This commit ensures that the garbage collector is invoked during engine destruction. This commit also adds a unit test which ensures that the JS GC destroys JS-owned C++ objects correctly when the QDeclarativeEngine is destroyed. Task-number: QTBUG-20377 Change-Id: I2de1f2dfd1e60cc2f76abb523b99bf169d2a5a13 Reviewed-on: http://codereview.qt-project.org/3285 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix TextInput and TextEdit inputMethodComposing autotestsJoona Petrell2011-09-292-8/+7
| | | | | | | | | | | | | | | In old QInputContext architecture events were send to focus widget, which delivered the events to the text editor items. In Qt5, input methods send events directly to the editor object using QInputPanel::inputItem(). Task-number: QTBUG-21691 Change-Id: Ia219f0cc7caaeafc32f5d7674a6ab377e773d4fa Reviewed-on: http://codereview.qt-project.org/5741 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix TextInput and TextEdit openInputPanel autotestsJoona Petrell2011-09-294-371/+130
| | | | | | | | | | | | | | Task-number: QTBUG-21691 The change also removes showInputPanelOnClick code from the TextInput and TextEdit, which was done to support Symbian^1 and ^3 fullscreen keyboards. Now by default the keyboard always follows editor focus. Change-Id: Id60a17fe51b3aa49ba9ea81b985e608e91c26145 Reviewed-on: http://codereview.qt-project.org/5733 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Asynchronous component instantiationAaron Kennedy2011-09-291-7/+9
| | | | | | | | | | | | | This introduces two main: * the QML compiler executes in a separate thread * item instantiation can be interrupted and resumed to allow it to be split across multiple frames. Task-number: QTBUG-21151 Change-Id: I9631c62bb77da3a2e0c37f0da3719533fdce4fef Reviewed-on: http://codereview.qt-project.org/5676 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix tst_QSGListView::sectionsPositioning() testMartin Jones2011-09-291-3/+3
| | | | | | | Change-Id: Ifdf43d43c4cb6f04798ee7ef93d7fa6dd5589640 Reviewed-on: http://codereview.qt-project.org/5669 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Added triple click on TextInput to select text.Rafael Brandao2011-09-291-0/+44
| | | | | | | | | | | | | | | | | | | | Once it gets a double click, it'll start to monitor any other extra click for a short duration. Once it is detected, the monitor stops watching and all text is selected. It only works when selectByMouse property is set, just like double click selecting current word. Also added a test case that simulates clicking at the same point and triggering the triple click, and another one that contemplates movement of mouse between the second and the third click. Also test timing between clicks. Task-number: QTBUG-21038 Change-Id: I139f7ece2107f5dbfcba1836afb27aaa9b24fc57 Merge-request: 6 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-on: http://codereview.qt-project.org/5761 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Don't do run svg tests when no svg is availableGunnar Sletta2011-09-281-1/+7
| | | | | | | Change-Id: I6625a9e1542ffc962d5b2c414832575e450a9e61 Reviewed-on: http://codereview.qt-project.org/5690 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>