aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qquickturbulence
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-10-31 11:47:13 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-31 04:29:03 +0100
commitf32e5f51dd00a0ff6d5864e150d5daa894fe8404 (patch)
treeaf1df471ecd4363e35302572340e19439c40b037 /tests/auto/particles/qquickturbulence
parentf0e6418fc1c237c1c1d71834c26a396f0b8ab28e (diff)
Stabilize Particles tests some more
Odd timings can lead to slight variances in the particle groups size, this is allowable in autotests. Also fixes incorrect use of extremelyFuzzyCompare in tst_qquickage. Change-Id: Ibea3a2b2a3a31ab1fe6d908c1676d865db9ba968 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/particles/qquickturbulence')
-rw-r--r--tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp b/tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp
index 29faec2381..519307ebf2 100644
--- a/tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp
+++ b/tests/auto/particles/qquickturbulence/tst_qquickturbulence.cpp
@@ -67,7 +67,7 @@ void tst_qquickturbulence::test_basic()
//Note that the noise image built-in provides the 'randomness', so this test should be stable so long as it and the size
//of the Turbulence item remain the same
- QCOMPARE(system->groupData[0]->size(), 500);
+ QVERIFY(extremelyFuzzyCompare(system->groupData[0]->size(), 500, 10));
foreach (QQuickParticleData *d, system->groupData[0]->data) {
if (d->t == -1)
continue; //Particle data unused