summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-05 05:05:31 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-05 05:05:31 (GMT)
commitb3005a52a7a2c90721886e48c792a97ddc8e564d (patch)
tree6c9e74cf8b60e670255905c4e0b8a32c67393302 /tests
parentb8e788865cae90122e51ad1a2649d0891370fb3d (diff)
parente4e3b8f336b6c7d0dd52d4b8af96fee1dc628783 (diff)
downloadQt-b3005a52a7a2c90721886e48c792a97ddc8e564d.zip
Qt-b3005a52a7a2c90721886e48c792a97ddc8e564d.tar.gz
Qt-b3005a52a7a2c90721886e48c792a97ddc8e564d.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qmlgraphicsparticles/data/particles.qml2
-rw-r--r--tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlgraphicsparticles/data/particles.qml b/tests/auto/declarative/qmlgraphicsparticles/data/particles.qml
index dccd2c7..c58927e 100644
--- a/tests/auto/declarative/qmlgraphicsparticles/data/particles.qml
+++ b/tests/auto/declarative/qmlgraphicsparticles/data/particles.qml
@@ -8,7 +8,7 @@ Rectangle{
objectName: "particles"
width:1; height:1; anchors.centerIn: parent; opacity: 1
lifeSpan: 100; lifeSpanDeviation: 20; count:1000;
- fadeInDuration: 20; fadeOutDuration: 20;
+ fadeInDuration: 20; fadeOutDuration: 20; count: -1; emissionRate: 1000
angle: 0; angleDeviation: 360; velocity: 500; velocityDeviation:30
source: "particle.png"
}
diff --git a/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp b/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp
index e50437a..ed68eaf 100644
--- a/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp
+++ b/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp
@@ -91,8 +91,11 @@ void tst_QmlGraphicsParticles::properties()
particles->setVelocityDeviation(100.0);
QCOMPARE(particles->velocityDeviation(), 100.0);
- particles->setEmitting(false);
- QCOMPARE(particles->emitting(), false);
+ particles->setEmissionVariance(0.5);
+ QCOMPARE(particles->emissionVariance(),0.5);
+
+ particles->setEmissionRate(12);
+ QCOMPARE(particles->emissionRate(), 12);
}
void tst_QmlGraphicsParticles::runs()