Fix QQuickAge test
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 10 Jan 2012 04:48:47 +0000 (14:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jan 2012 06:35:02 +0000 (07:35 +0100)
With the consistent timing bug fixed (ages ago), test should be stable.
A problem leading to failures in sustained has also been fixed (assumed
that the particle group size would be approximately 500, but this is not
necessarily true).

Task-number: QTBUG-22088

Change-Id: Ifdb0f0e08266f9e44782c6b8fc8c56200c0a1d46
Reviewed-by: Martin Jones <martin.jones@nokia.com>
tests/auto/particles/qquickage/qquickage.pro
tests/auto/particles/qquickage/tst_qquickage.cpp

index e03e3d4..99c52df 100644 (file)
@@ -7,7 +7,5 @@ testDataFiles.files = data
 testDataFiles.path = .
 DEPLOYMENT += testDataFiles
 
-CONFIG += insignificant_test
-
 QT += core-private gui-private v8-private declarative-private quick-private opengl-private testlib
 
index 017518d..4335016 100644 (file)
@@ -145,7 +145,7 @@ void tst_qquickage::test_sustained()
     ensureAnimTime(600, system->m_animation);
     //TODO: Ensure some particles have lived to 0.4s point despite unified timer
 
-    QVERIFY(extremelyFuzzyCompare(system->groupData[0]->size(), 500, 10));
+    //Can't verify size, because particles never die. It will constantly grow.
     foreach (QQuickParticleData *d, system->groupData[0]->data) {
         if (d->t == -1)
             continue; //Particle data unused