aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Mark particles tests as significantAlan Alpert2011-10-1820-40/+0
| | | | | | | Believed to be stable enough for CI now. Except qsgage. Change-Id: I49d52c3913bb4140de89b769777f9b6d67abbaaa Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix reference to test data fileBea Lam2011-10-181-1/+1
| | | | | Change-Id: I04e220635487d76d2908572ceb0f0696f6876e9e Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Simplify expression guard logicAaron Kennedy2011-10-184-0/+42
| | | | | | Change-Id: I7d191bc8786452c5a1f14d024ff62d223adebd8b Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix TextInput echoMode test failure.Andrew den Exter2011-10-181-2/+2
| | | | | | | | | The default input method hints for a QSGItem is Qt::ImhMultiline and TextInput is a single line input so clear that default flag in init. Task-number: QTBUG-21686 Change-Id: I3b57227ee4182bf89f6789f775b56efb156df85b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't keep a cache of created QSGDragAttached objects.Andrew den Exter2011-10-182-25/+133
| | | | | | | It's unnecessary and can potentially return stale objects. Change-Id: Ia04b9a58757ef06d3178e6a64e168f68abc1c9d8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Make QDeclarativeDebugJS autotest more robust & fasterKai Koehne2011-10-174-19/+37
| | | | | | | | Also compile it by default (again). Change-Id: I04537e29d48cd1918160fe57220eecf1a72a8e66 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix coding style issuesKent Hansen2011-10-1716-90/+90
| | | | | | | Avoid Qt Sanity Bot noise when these files are moved. Change-Id: I714e949837909883fe7e387ae336d2ffc4a1912b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Tidy up some more declarative includesKent Hansen2011-10-171-0/+1
| | | | | | | Remove file dependencies that aren't needed. Change-Id: I0496ef9435141528f680bbd326da55c3a31e5978 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Debugger: Remove outdated test stubKai Koehne2011-10-175-207/+0
| | | | | | | This stub is testing the QScriptEngineAgent interface, which is deprecated. Change-Id: I192a7b9aed0fa49f413bd6048e874414dab8256b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Move debugging autotests into own folderKai Koehne2011-10-1716-11/+18
| | | | | | | | This mirrors the source tree structure and makes it easier to run them all in one go. Change-Id: Ia191790eaec2c409857c41aff479d2ebd144aaf8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix GridView to repaint when geometry changesBea Lam2011-10-174-0/+114
| | | | | | Task-number: QTBUG-22078 Change-Id: Ic0ad67832dad9a7b3a7e5501893befe2d30b6c94 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove insignificant flag from tests, some failing test cleanup.Toby Tomkins2011-10-176-10/+2
| | | | | | | Task-number: QTBUG-21054 QTBUG-21004 Change-Id: I9d1a3ca99363949eee952e1bd09aabef82fc1831 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add Affector BenchmarkAlan Alpert2011-10-175-1/+331
| | | | | | | Just for generic affector. Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ceaaa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Stabilize Particles TestsAlan Alpert2011-10-1722-30/+109
| | | | | | | | | | A couple of targeted fixes, plus enabling QUnifiedTimer::consistentTiming. Task-number: QTBUG-21867 Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ce8aa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Initial particle system benchmarkAlan Alpert2011-10-175-2/+211
| | | | | | | Exposed another function on ParticleSystem in order to work. Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ce852 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix testsBea Lam2011-10-171-2/+2
| | | | | | | | Fix referenced test data file and don't wait so long for move to process Change-Id: I55571e99015f2799a231365532aa1778e148f9e5 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Cannot flick to the end of a horizontal ListView with LayoutMirroringMartin Jones2011-10-174-0/+331
| | | | | | | | | | | | | | | Forward port of fix for QTBUG-21756. minXExtent calculated the offset due to highlight range incorrectly (reversed) when mirroring enabled. Also us same algorithm for fixup() in GridView and ListView uses. For QtQuick 2, this change also reverses the beginning and end highlight range, as it should be, i.e. the preferredHighlightBegin is from the right side in RightToLeft mode. Also added snapping tests. Task-number: QTBUG-21756 Change-Id: Ica0ba4ab5db0ce9c77f2da75e9f8293550bd37d1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Merge PropertyCache::Data and ValueTypeDataAaron Kennedy2011-10-173-9/+9
| | | | | Change-Id: I22cbb159d009151dd77ecbcdad16f27ecb9d6dba Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Eliminated usage of qttest_p4.prf.Rohan McGovern2011-10-143-9/+9
| | | | | | | Missed from 47e1b91b47dcf59dbeff2740add94ceda188c6bc. Change-Id: I64d6174eb98eb45e1ba7c28ae5a122f58e2522a6 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Fix insertions above the visible indexBea Lam2011-10-142-0/+353
| | | | | | | | | | | | | | | | | The first visible item was repositioned incorrectly after an insertion above the visible index since any insertions above the position + cache buffer were ignored and not considered for repositioning the first item. GridView insertion code has changed to be similar to the ListView implementation to fix various issues when inserting above the visible index and to remove code that crossed indexes from visibleItems with model indexes and visible indexes. Also adds extra insertion tests for ListView and GridView. Change-Id: I5e129c605fdad733b61bd29850465b3b752fb63f Reviewed-on: http://codereview.qt-project.org/6485 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add missing autotests to declarative.pro.Michael Brasser2011-10-142-0/+6
| | | | | | Change-Id: Icf43fc3aa69ac80fc077318d903becf3b78cc55b Reviewed-on: http://codereview.qt-project.org/6492 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* More use of TESTDATA macro.Michael Brasser2011-10-149-65/+92
| | | | | | Change-Id: I65ff7aa44e18a60e431d30efec2717d2ce5f95e4 Reviewed-on: http://codereview.qt-project.org/6641 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Tst_qsgitem2 test update inline with refactorDamian Jansen2011-10-144-15/+55
| | | | | | | | | | Change widget to window based code Make compile and pass Add license header Change-Id: Id0826bf644836654de7eff559a8ff40a55d02616 Reviewed-on: http://codereview.qt-project.org/6635 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QDeclarativeIncubator wasn't calling statusChanged() for nested casesAaron Kennedy2011-10-142-1/+39
| | | | | | | Change-Id: I1811951bdcdd69d4ad1643ed54a8ea097fa718b5 Reviewed-on: http://codereview.qt-project.org/6638 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Use TESTDATA macro in declarative tests.Michael Brasser2011-10-14101-726/+796
| | | | | | | | | Includes a few other minor cleanups as well. Task-number: QTBUG-21721 Change-Id: I5b1c2c116e63748c6b4199183212de8a00037af1 Reviewed-on: http://codereview.qt-project.org/6473 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't build empty tests.Jason McDonald2011-10-146-20/+7
| | | | | | | | | | These tests need the xmlpatterns module. If that module is not in the Qt build, then avoid building the test rather than building an empty test. Change-Id: Id0f72cfc9f818096361ecbc439196d2d5c64322e Reviewed-on: http://codereview.qt-project.org/6487 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Removed references to unused PULSE_TESTS variableRohan McGovern2011-10-123-9/+0
| | | | | | | | | | This has not been used for a very long time (since before QtDeclarative was merged into Qt4). Change-Id: Ie5b4578582d7b04784f11db3d8ce92ba258b782d Reviewed-on: http://codereview.qt-project.org/6484 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Modify existing behavior to explicitly test functionality.Toby Tomkins2011-10-122-1/+2
| | | | | | | | | Task-number: QTBUG-21001 Change-Id: I63d0d56cc05328350804ad03cbc9a943a84d03c3 Reviewed-on: http://codereview.qt-project.org/6377 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Provide a context when constructing a TextInput cursor delegate.Andrew den Exter2011-10-124-3/+7
| | | | | | | | | | | Without a context the delegate won't be able to refer to any external properties. Task-number: QTBUG-21780 Change-Id: I7171787e677ce67466b311796693ed88bcacb718 Reviewed-on: http://codereview.qt-project.org/5837 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Rename QDeclarativeV4 -> QV4Aaron Kennedy2011-10-1216-18/+18
| | | | | | | Change-Id: Ic35e0ad1663cafe4aa535594dc3999a2d317ce0e Reviewed-on: http://codereview.qt-project.org/6301 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove insignificant test status and explicitly mark failing test.Toby Tomkins2011-10-122-2/+1
| | | | | | | | | Task-number: QTBUG-21946 Change-Id: If1837a23041b52dc1f148821f483281975626d79 Reviewed-on: http://codereview.qt-project.org/6374 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove insignificant flag for passing tests.Toby Tomkins2011-10-126-11/+2
| | | | | | | Change-Id: Ic8c5e7871b240572b882825c91e0a544856da687 Reviewed-on: http://codereview.qt-project.org/6384 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* fix several canvasitem bugsCharles Yin2011-10-121-3/+4
| | | | | | | Change-Id: I6a6d97253fe66184736f8ac089e97aa114f0e83a Reviewed-on: http://codereview.qt-project.org/6405 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Allow view items to be preserved.Andrew den Exter2011-10-122-0/+136
| | | | | | | | | | | | | | | | | | | | Do not destroy items that are members of the VisualDataModel persistedItems group when they are released by the view. The create function on VisualDataGroup will return a reference to an instantiated item within that group, any item returned by this function is automatically added to the persistedItems group and can be released by removing it from the group. Uninstantiated items added to the persistedItems group by any other means are not instantiated until requested by a view or create. Task-number: QTBUG-21518 Task-number: QTBUG-20854 Change-Id: I59554711208504c8f20a3ebe783bddab9b21a558 Reviewed-on: http://codereview.qt-project.org/5831 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Component.incubateObject() autotestAaron Kennedy2011-10-122-1/+70
| | | | | | | Change-Id: I37f76d5b273ae4f032c4de5ac8fcbff4204b78fe Reviewed-on: http://codereview.qt-project.org/6200 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com>
* Improvements to text layouting in QMLYann Bodson2011-10-123-1/+172
| | | | | | | | | | | | | | | Allow more control over the text layouting process in QML. Give access to every text line through a hook, this gives the opportunity to position and resize a line as it is being laid out. It is then possible to lay out the text in columns or around other objects. Task-number: QTBUG-21367 Change-Id: I56dc0c1c4b575dc06360c135098024d0324d3656 Reviewed-on: http://codereview.qt-project.org/5351 Reviewed-by: Yann Bodson <yann.bodson@nokia.com> Sanity-Review: Yann Bodson <yann.bodson@nokia.com>
* QInputPanel exposed as a property from QDeclarativeApplicationSami Kananoja2011-10-111-0/+15
| | | | | | | | | Task-number: QTBUG-21449 Change-Id: I437f80f4d1f0dbb3cb410940213eae50a4cef2cd Reviewed-on: http://codereview.qt-project.org/5852 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-11159-468/+459
| | | | | | | | | | | | | | qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Since QT+= had to be touched already, this change also removes a lot of useless duplication on those lines. Change-Id: I9f2f20eaf4a0e676beddf474c7db8680e4712f78 Reviewed-on: http://codereview.qt-project.org/6302 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove insignificant test status and explicitly mark failing test.Toby Tomkins2011-10-112-2/+1
| | | | | | | | | Task-number: QTBUG-21946 Change-Id: Idf54ad4811562634b792f973c9f1a518a09e5a4d Reviewed-on: http://codereview.qt-project.org/6375 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix layout issues with recently removed items.Andrew den Exter2011-10-111-384/+1040
| | | | | | | | | | | | Items removed from the source model aren't removed from the cache group until they've also been released by the view. Skip over these removed items when translating future changes to the source model so no invalid translated changes are created. Change-Id: I9bf3801135e78b5a6493b4ef50ce44ee5c912bfc Reviewed-on: http://codereview.qt-project.org/6298 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* fix canvas bugCharles Yin2011-10-111-5/+7
| | | | | | | | | | | do painting only after component loaded and paint after geometry size initialized Task-number:QTBUG-21920 Task-number:QTBUG-21918 Change-Id: Ibbc12d416dc694eff35f16c03cbc3c16e333645b Reviewed-on: http://codereview.qt-project.org/6387 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Expand QSGImageParticle testAlan Alpert2011-10-117-1/+458
| | | | | | | | | | | | Now tests all performance levels. Also fixes an emitter timing edge-case which might be destabilizing the tests. Change-Id: I5e2f133dc4b96dd05d49e7e983ae630e379fa66b Reviewed-on: http://codereview.qt-project.org/6313 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Stabilize Particles testsAlan Alpert2011-10-1121-6/+89
| | | | | | | | | | | | | | | One potential problem is that in certain circumstances the recycling data list is so efficient that it doesn't need to use all particle data in the list. In those cases, the uninitialized members were causing test failures but these slight differences are acceptable for the simulation. The ParticleSystem test is extended to check that it's only small edge cases. Change-Id: I5e2f133dc4b96dd05d49e7e983ae630e379fa66a Reviewed-on: http://codereview.qt-project.org/6312 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Generic solution for finding QtDeclarative test data.Michael Brasser2011-10-113-12/+100
| | | | | | | | | | Also implemented changes for qsgrepeater test to verify. Task-number: QTBUG-21721 Change-Id: Ia5a839d1a23ba0f6ee144450ec026b74ee72134b Reviewed-on: http://codereview.qt-project.org/6203 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add "asynchronous" property to Loader.Martin Jones2011-10-103-1/+5147
| | | | | | | | | | Use an incubator to perform non-blocking instantiation of components. Change-Id: I589bfc8ba7bf3368dc44fab3a82afb7e0d66032c Fixes: QTBUG-21791 Reviewed-on: http://codereview.qt-project.org/6216 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* CompileAaron Kennedy2011-10-101-1/+1
| | | | | | | | Change-Id: I80763db7108990b121de085b8c33cb90382b6cd1 Reviewed-on: http://codereview.qt-project.org/6292 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Don't skip over the majority of the GridView tests.Andrew den Exter2011-10-101-2/+1
| | | | | | | Change-Id: Ie8768120c39451facbdb380668302fc645a06682 Reviewed-on: http://codereview.qt-project.org/6299 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Add DropArea item and Drag attached property.Andrew den Exter2011-10-105-0/+1855
| | | | | | | | | | | | | | | | | | | Refactors drag API to improve compatibility with traditional drag and drop by reusing events and adding drop actions. Event sending is removed from MouseArea, instead the Drag object can be attached to the item that is dragged and it will send drag events when the position of that item is changed or when its active property changes. The DragTarget item is renamed to DropArea and can now communicate supported and suggested actions. Task-number: QTBUG-19747 Change-Id: I46cb77e68cf1ff32bbcbf0945facb593c9c2243c Reviewed-on: http://codereview.qt-project.org/4638 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* 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>