From: Alan Alpert Date: Tue, 10 Jan 2012 04:48:47 +0000 (+1000) Subject: Fix QQuickAge test X-Git-Tag: upstream/5.2.1~2925 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=724751cee2569b9a867786492de273ed00121c0a;p=platform%2Fupstream%2Fqtdeclarative.git Fix QQuickAge test 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 --- diff --git a/tests/auto/particles/qquickage/qquickage.pro b/tests/auto/particles/qquickage/qquickage.pro index e03e3d4..99c52df 100644 --- a/tests/auto/particles/qquickage/qquickage.pro +++ b/tests/auto/particles/qquickage/qquickage.pro @@ -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 diff --git a/tests/auto/particles/qquickage/tst_qquickage.cpp b/tests/auto/particles/qquickage/tst_qquickage.cpp index 017518d..4335016 100644 --- a/tests/auto/particles/qquickage/tst_qquickage.cpp +++ b/tests/auto/particles/qquickage/tst_qquickage.cpp @@ -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