QCOMPARE(d->endSize, 32.f);
QVERIFY(d->t <= ((qreal)system->timeInt/1000.0) - 0.5f + EPSILON);
}
+ delete view;
}
void tst_qquickage::test_jump()
QCOMPARE(d->endSize, 32.f);
QVERIFY(d->t <= ((qreal)system->timeInt/1000.0) - 0.4f + EPSILON);
}
+ delete view;
}
void tst_qquickage::test_onceOff()
QCOMPARE(d->endSize, 32.f);
QVERIFY(d->t <= ((qreal)system->timeInt/1000.0) - 0.4f + EPSILON);
}
+ delete view;
}
void tst_qquickage::test_sustained()
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyCompare(d->t, ((qreal)system->timeInt/1000.0) - 0.4f));
}
+ delete view;
}
QTEST_MAIN(tst_qquickage);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickangleddirection);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickcumulativedirection);
QCOMPARE(d->color.a, (uchar)0);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
void tst_qquickcustomaffector::test_move()
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickcustomaffector);
if (d->r != 0.0 )
oneNonZero = true;
}
+ delete view;
QVERIFY(oneNonZero);//Zero is a valid value, but it also needs to be set to a random number
}
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+
//Just border
QCOMPARE(system->groupData[1]->size(), 500);
foreach (QQuickParticleData *d, system->groupData[1]->data) {
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickellipseextruder);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
void tst_qquickfriction::test_threshold()
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickfriction);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickgravity);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickgroupgoal);
QCOMPARE(d->frameCount, 1.0f);
QCOMPARE(d->animT, -1.0f);
}
+ delete view;
}
QCOMPARE(d->frameCount, 1.0f);
QCOMPARE(d->animT, -1.0f);
}
+ delete view;
}
QCOMPARE(d->frameCount, 1.0f);
QCOMPARE(d->animT, -1.0f);
}
+ delete view;
}
QCOMPARE(d->animT, -1.0f);
//TODO: This performance level doesn't alter particleData, but goes straight to shaders. Find something to test
}
+ delete view;
}
QCOMPARE(d->animWidth, 31.0f);
QCOMPARE(d->animHeight, 30.0f);
}
+ delete view;
}
QTEST_MAIN(tst_qquickimageparticle);
QVERIFY(d->delegate);
QVERIFY(qobject_cast<QQuickImage*>(d->delegate));
}
+ delete view;
}
QTEST_MAIN(tst_qquickitemparticle);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquicklineextruder);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickmaskextruder);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickparticlegroup);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
QVERIFY(extremelyFuzzyCompare(stillAlive, 500, 5));//Small simulation variance is permissible.
}
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickpointattractor);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickpointdirection);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickrectangleextruder);
QCOMPARE(d->animIdx, 1.f);//Spawns at 0, affector moves it.
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickspritegoal);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquicktargetdirection);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquicktrailemitter);
QCOMPARE(d->endSize, 32.f);
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
}
+ delete view;
}
QTEST_MAIN(tst_qquickturbulence);
if (d->vy != 0.0f)
vyChanged = true;
}
+ delete view;
QVERIFY(vxChanged);
QVERIFY(vyChanged);
}