Delete view at end of test
Change-Id: I290536bd975e7e6f6f65cf964604664faf7d3056 Reviewed-by: Martin Jones <martin.jones@nokia.com>
This commit is contained in:
parent
1c394490f4
commit
62af8d46b2
|
@ -84,6 +84,7 @@ void tst_qquickage::test_kill()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(d->t <= ((qreal)system->timeInt/1000.0) - 0.5f + EPSILON);
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
void tst_qquickage::test_jump()
|
||||
|
@ -109,6 +110,7 @@ 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()
|
||||
|
@ -133,6 +135,7 @@ 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()
|
||||
|
@ -158,6 +161,7 @@ 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);
|
||||
|
|
|
@ -85,6 +85,7 @@ void tst_qquickangleddirection::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickangleddirection);
|
||||
|
|
|
@ -81,6 +81,7 @@ void tst_qquickcumulativedirection::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickcumulativedirection);
|
||||
|
|
|
@ -90,6 +90,7 @@ void tst_qquickcustomaffector::test_basic()
|
|||
QCOMPARE(d->color.a, (uchar)0);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
void tst_qquickcustomaffector::test_move()
|
||||
|
@ -116,6 +117,7 @@ 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);
|
||||
|
|
|
@ -86,6 +86,7 @@ void tst_qquickcustomparticle::test_basic()
|
|||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ void tst_qquickellipseextruder::test_basic()
|
|||
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) {
|
||||
|
@ -113,6 +114,7 @@ void tst_qquickellipseextruder::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickellipseextruder);
|
||||
|
|
|
@ -101,6 +101,7 @@ void tst_qquickfriction::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
void tst_qquickfriction::test_threshold()
|
||||
|
@ -127,6 +128,7 @@ 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);
|
||||
|
|
|
@ -77,6 +77,7 @@ void tst_qquickgravity::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickgravity);
|
||||
|
|
|
@ -82,6 +82,7 @@ void tst_qquickgroupgoal::test_instantTransition()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickgroupgoal);
|
||||
|
|
|
@ -105,6 +105,7 @@ void tst_qquickimageparticle::test_basic()
|
|||
QCOMPARE(d->frameCount, 1.0f);
|
||||
QCOMPARE(d->animT, -1.0f);
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
|
||||
|
@ -148,6 +149,7 @@ void tst_qquickimageparticle::test_colored()
|
|||
QCOMPARE(d->frameCount, 1.0f);
|
||||
QCOMPARE(d->animT, -1.0f);
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
|
||||
|
@ -191,6 +193,7 @@ void tst_qquickimageparticle::test_deformed()
|
|||
QCOMPARE(d->frameCount, 1.0f);
|
||||
QCOMPARE(d->animT, -1.0f);
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
|
||||
|
@ -235,6 +238,7 @@ void tst_qquickimageparticle::test_tabled()
|
|||
QCOMPARE(d->animT, -1.0f);
|
||||
//TODO: This performance level doesn't alter particleData, but goes straight to shaders. Find something to test
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
|
||||
|
@ -278,6 +282,7 @@ void tst_qquickimageparticle::test_sprite()
|
|||
QCOMPARE(d->animWidth, 31.0f);
|
||||
QCOMPARE(d->animHeight, 30.0f);
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickimageparticle);
|
||||
|
|
|
@ -88,6 +88,7 @@ void tst_qquickitemparticle::test_basic()
|
|||
QVERIFY(d->delegate);
|
||||
QVERIFY(qobject_cast<QQuickImage*>(d->delegate));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickitemparticle);
|
||||
|
|
|
@ -96,6 +96,7 @@ void tst_qquicklineextruder::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquicklineextruder);
|
||||
|
|
|
@ -81,6 +81,7 @@ void tst_qquickmaskextruder::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickmaskextruder);
|
||||
|
|
|
@ -82,6 +82,7 @@ void tst_qquickparticlegroup::test_instantTransition()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickparticlegroup);
|
||||
|
|
|
@ -84,6 +84,7 @@ void tst_qquickparticlesystem::test_basic()
|
|||
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.
|
||||
}
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@ void tst_qquickpointattractor::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickpointattractor);
|
||||
|
|
|
@ -83,6 +83,7 @@ void tst_qquickpointdirection::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickpointdirection);
|
||||
|
|
|
@ -106,6 +106,7 @@ void tst_qquickrectangleextruder::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickrectangleextruder);
|
||||
|
|
|
@ -73,6 +73,7 @@ void tst_qquickspritegoal::test_instantTransition()
|
|||
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);
|
||||
|
|
|
@ -81,6 +81,7 @@ void tst_qquicktargetdirection::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquicktargetdirection);
|
||||
|
|
|
@ -98,6 +98,7 @@ void tst_qquicktrailemitter::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquicktrailemitter);
|
||||
|
|
|
@ -79,6 +79,7 @@ void tst_qquickturbulence::test_basic()
|
|||
QCOMPARE(d->endSize, 32.f);
|
||||
QVERIFY(myFuzzyLEQ(d->t, ((qreal)system->timeInt/1000.0)));
|
||||
}
|
||||
delete view;
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickturbulence);
|
||||
|
|
|
@ -85,6 +85,7 @@ void tst_qquickwander::test_basic()
|
|||
if (d->vy != 0.0f)
|
||||
vyChanged = true;
|
||||
}
|
||||
delete view;
|
||||
QVERIFY(vxChanged);
|
||||
QVERIFY(vyChanged);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue