aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles
Commit message (Collapse)AuthorAgeFilesLines
...
* Make initialize work despite pending resetsAlan Alpert2011-11-021-1/+0
| | | | | | | | | This allows for the data to be updated instantly, instead of waiting for the reset in the next paint event. This is needed by the QQuickImageParticle autotest to pass stably. Change-Id: I554eb9d9ddbfc6ba06264dedafb14498685e04cf Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Delete view at end of testAlan Alpert2011-11-0223-0/+33
| | | | | Change-Id: I290536bd975e7e6f6f65cf964604664faf7d3056 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add non-floats to particle typeAlan Alpert2011-11-012-0/+15
| | | | | | | | booleans exposed for the 1.0 or 0.0 floats, and color exposed as 0.0-1.0 even though it's 0-255 internally. Change-Id: Idc7ab2527fef150fddb077fc73ac1c7cf122cfdd Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Mark ImageParticle as insignificantAlan Alpert2011-11-011-1/+1
| | | | | | | | CI system only unstable failures take a while to track down and aren't worth blocking all commits for. Change-Id: I10750b644f13ad25f66afb3f9551988e1ed2d8b6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Basic autotest of QQuickSpriteGoalAlan Alpert2011-10-313-0/+172
| | | | | | | | Depends on the fix for QQuickImageParticle that makes it actually update the data object. Change-Id: I12992cbe504988c6df45b319c1e6f6e304b327de Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Stabilize Particles tests some moreAlan Alpert2011-10-3120-32/+32
| | | | | | | | | Odd timings can lead to slight variances in the particle groups size, this is allowable in autotests. Also fixes incorrect use of extremelyFuzzyCompare in tst_qquickage. Change-Id: Ibea3a2b2a3a31ab1fe6d908c1676d865db9ba968 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Cursory test for QQuickGroupGoalAlan Alpert2011-10-263-0/+173
| | | | | | Change-Id: Ieb31c2885895c8377d12ba0b44b78b462d02c98e Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Rename QSG* to QQuick* in particles folderAlan Alpert2011-10-2585-384/+384
| | | | | Change-Id: I793eaf16f3810df0cb0f9f8482ac0b9d6137595d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fold Move into AffectorAlan Alpert2011-10-242-0/+101
| | | | | | | | | | | | | | | | | | Since 'Move' was just a generic physics property affector, it makes sense to fold it into the generic affector as an easier way of implementing the common case of custom affector (and much faster, since it doesn't hit JS). For completeness in the Move behavior, 'once' now applies the effect of affectors over a second in that one time, so as to avoid exposing the simulation tick. This allows once to have actual meaning for continous affectors. Gravity is also going to be kept around as a convenience (although it will change slightly), so just removing its deprecation warning. Change-Id: Ieb52f8990445fe95f94070175a0f9beb6686324b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add threshold property to FrictionAlan Alpert2011-10-242-0/+100
| | | | | | | So much easier than calculating exact counterbalancing acceleration. Change-Id: I7cc43cc2e4d0ad39d1996d432f0e29ccf7bff554 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rename Qt Quick-specific classes to QQuick*Kent Hansen2011-10-2122-34/+34
| | | | | | | | | | | | | | | | | | | | | | The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Remove copy of tests/shared/util.h.Jason McDonald2011-10-191-1/+0
| | | | | | | | | This module has a copy of qtbase's tests/shared/util.h, the contents of which have been moved into qtestlib and are now accessible from the QtTest/QtTest header. Change-Id: I0be9e21dc9f30629dad283a740b9d80347e01140 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* 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>
* 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-171-2/+12
| | | | | | | Exposed another function on ParticleSystem in order to work. Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ce852 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-1121-63/+63
| | | | | | | | | | | | | | 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>
* 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>
* 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>
* 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 .pro file to auto test dirAlan Alpert2011-10-053-0/+32
| | | | | | | | | 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>
* 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>
* 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>