aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles
Commit message (Collapse)AuthorAgeFilesLines
* Update test files to API changesAlan Alpert2012-02-071-1/+1
| | | | | | | | API changes are being managed, but the test files shouldn't be triggering the warning. Change-Id: Ifd6c0c08be9979d72f98eb6a1df07daf9302772e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3057-57/+57
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2357-57/+57
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Test more of QQuickImageParticleAlan Alpert2012-01-162-0/+125
| | | | | | | | | | | | | Now the color variance properties are tested, as is the debug code. Just running the debugging code is valid testing, as it contains pointer derefernces that could cause runtime errors, and this codepath is not always enabled at runtime. Additionally, debug mode control has been consolidated in the ParticleSystem. However, this was not necessary for this test addition. Change-Id: Ie56465145461486456462154dfafe546fedabcba Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QQuickAge testAlan Alpert2012-01-122-3/+1
| | | | | | | | | | | | With the consistent timing bug fixed (ages ago), test should be stable. A problem leading to failures in sustained has also been fixed (assumed that the particle group size would be approximately 500, but this is not necessarily true). Task-number: QTBUG-22088 Change-Id: Ifdb0f0e08266f9e44782c6b8fc8c56200c0a1d46 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QQuickItemParticle timing issuesAlan Alpert2012-01-091-2/+0
| | | | | | | | | | | It was possible for m_loadables to be reset before the items were loaded, and the datum pointer was lost. This was exacerbated by another bug where reset was called every frame for no reason. Both bugs are now fixed. Task-number: QTBUG-23491 Change-Id: I9b60858621b697fc46de1e964cb27ddc0d2dbc65 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0556-56/+56
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Say hello to QtQuick moduleKent Hansen2011-12-0222-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the QtQuick 2 types and C++ API (including SceneGraph) to a new module (AKA library), QtQuick. 99% of this change is moving files from src/declarative to src/quick, and from tests/auto/declarative to tests/auto/qtquick2. The loading of QtQuick 2 ("import QtQuick 2.0") is now delegated to a plugin, src/imports/qtquick2, just like it's done for QtQuick 1. All tools, examples, and tests that use QtQuick C++ API have gotten "QT += quick" or "QT += quick-private" added to their .pro file. A few additional internal QtDeclarative classes had to be exported (via Q_DECLARATIVE_PRIVATE_EXPORT) since they're needed by the QtQuick 2 implementation. The old header locations (e.g. QtDeclarative/qquickitem.h) will still be supported for some time, but will produce compile-time warnings. (To avoid the QtQuick implementation using the compatibility headers (since QtDeclarative's includepath comes first), a few include statements were modified, e.g. from "#include <qsgnode.h>" to "#include <QtQuick/qsgnode.h>".) There's a change in qtbase that automatically adds QtQuick to the module list if QtDeclarative is used. Together with the compatibility headers, this should help reduce the migration pain for existing projects. In theory, simply getting an existing QtDeclarative-based project to compile and link shouldn't require any changes for now -- but porting to the new scheme is of course recommended, and will eventually become mandatory. Task-number: QTBUG-22889 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Change-Id: Ia52be9373172ba2f37e7623231ecb060316c96a7 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Make compile and pass CI tests.Michael Brasser2011-11-111-0/+2
| | | | | Change-Id: Ie2ec20d9e346ccaf698762d6abf0224c39fb3490 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix GravityAlan Alpert2011-11-031-4/+6
| | | | | | | | Now simulates acceleration instead of setting it, and properties are renamed to be consistent with AngleDirection Change-Id: I648aa9122c49b46aa7b7d7796bc25d5bd56bfffe Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* 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>