aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp')
-rw-r--r--tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp b/tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp
index 80def8b1a5..b8cda61842 100644
--- a/tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp
+++ b/tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp
@@ -64,6 +64,9 @@ void tst_qsgrectangleextruder::test_basic()
QCOMPARE(system->groupData[0]->size(), 500);
foreach (QSGParticleData *d, system->groupData[0]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
QVERIFY(d->x >= 0.f);
QVERIFY(d->x <= 100.f);
QVERIFY(d->y >= 0.f);
@@ -80,6 +83,9 @@ void tst_qsgrectangleextruder::test_basic()
QCOMPARE(system->groupData[1]->size(), 500);
foreach (QSGParticleData *d, system->groupData[1]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
if (!myFuzzyCompare(d->x, 0.f) && !myFuzzyCompare(d->x, 100.f)){
QVERIFY(d->x >= 0.f);
QVERIFY(d->x <= 100.f);