Delete view at end of test
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 2 Nov 2011 03:44:06 +0000 (13:44 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 Nov 2011 05:45:49 +0000 (06:45 +0100)
Change-Id: I290536bd975e7e6f6f65cf964604664faf7d3056
Reviewed-by: Martin Jones <martin.jones@nokia.com>
23 files changed:
tests/auto/particles/qquickage/tst_qquickage.cpp
tests/auto/particles/qquickangleddirection/tst_qquickangleddirection.cpp
tests/auto/particles/qquickcumulativedirection/tst_qquickcumulativedirection.cpp
tests/auto/particles/qquickcustomaffector/tst_qquickcustomaffector.cpp
tests/auto/particles/qquickcustomparticle/tst_qquickcustomparticle.cpp
tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp
tests/auto/particles/qquickfriction/tst_qquickfriction.cpp
tests/auto/particles/qquickgravity/tst_qquickgravity.cpp
tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp
tests/auto/particles/qquickimageparticle/tst_qquickimageparticle.cpp
tests/auto/particles/qquickitemparticle/tst_qquickitemparticle.cpp
tests/auto/particles/qquicklineextruder/tst_qquicklineextruder.cpp
tests/auto/particles/qquickmaskextruder/tst_qquickmaskextruder.cpp
tests/auto/particles/qquickparticlegroup/tst_qquickparticlegroup.cpp
tests/auto/particles/qquickparticlesystem/tst_qquickparticlesystem.cpp
tests/auto/particles/qquickpointattractor/tst_qquickpointattractor.cpp
tests/auto/particles/qquickpointdirection/tst_qquickpointdirection.cpp
tests/auto/particles/qquickrectangleextruder/tst_qquickrectangleextruder.cpp
tests/auto/particles/qquickspritegoal/tst_qquickspritegoal.cpp
tests/auto/particles/qquicktargetdirection/tst_qquicktargetdirection.cpp
tests/auto/particles/qquicktrailemitter/tst_qquicktrailemitter.cpp
tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp
tests/auto/particles/qquickwander/tst_qquickwander.cpp

index 74cd297..b787a73 100644 (file)
@@ -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);
index 5310d14..4e3fda3 100644 (file)
@@ -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);
index eeecbe4..22c2d5e 100644 (file)
@@ -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);
index 1b2c431..c33895e 100644 (file)
@@ -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);
index 9333ac4..60977b2 100644 (file)
@@ -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
 }
 
index ea2139c..683eb49 100644 (file)
@@ -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);
index c9070cf..bea3e18 100644 (file)
@@ -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);
index 41c63de..a80c5c5 100644 (file)
@@ -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);
index 80a5689..92f30d9 100644 (file)
@@ -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);
index 45f7123..27b386d 100644 (file)
@@ -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);
index c681e2c..6cfb6c5 100644 (file)
@@ -88,6 +88,7 @@ void tst_qquickitemparticle::test_basic()
         QVERIFY(d->delegate);
         QVERIFY(qobject_cast<QQuickImage*>(d->delegate));
     }
+    delete view;
 }
 
 QTEST_MAIN(tst_qquickitemparticle);
index 4929d02..69d87ac 100644 (file)
@@ -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);
index 5d154d7..c13a776 100644 (file)
@@ -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);
index c3b155a..2548d87 100644 (file)
@@ -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);
index d0e4727..f9bb971 100644 (file)
@@ -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.
 }
 
index a0c1b65..e6b1b6e 100644 (file)
@@ -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);
index 0b83a41..b554ba7 100644 (file)
@@ -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);
index 8e92e8e..d8c17ef 100644 (file)
@@ -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);
index e8b42e6..9bb19d2 100644 (file)
@@ -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);
index 6e21aef..789334e 100644 (file)
@@ -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);
index d5e01a6..89463b6 100644 (file)
@@ -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);
index 519307e..9f4d50c 100644 (file)
@@ -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);
index 54aded8..ac88b58 100644 (file)
@@ -85,6 +85,7 @@ void tst_qquickwander::test_basic()
         if (d->vy != 0.0f)
             vyChanged = true;
     }
+    delete view;
     QVERIFY(vxChanged);
     QVERIFY(vyChanged);
 }