From a37419877148084d95d6a8b62413310fa74e0335 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 12 Mar 2015 12:20:31 +0100 Subject: Adapt GaussianBlur autotest to the new default values. Change-Id: I27c405af55384b5ea9a5c823bfed9fb5e8ba2161 Reviewed-by: Laszlo Agocs --- tests/auto/tst_qtgraphicaleffects.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp index eebf746..6ba29f3 100644 --- a/tests/auto/tst_qtgraphicaleffects.cpp +++ b/tests/auto/tst_qtgraphicaleffects.cpp @@ -406,13 +406,12 @@ void tst_qtgraphicaleffects::gaussianBlur() QVERIFY(obj != 0); // Default values - QCOMPARE(obj->property("radius").toDouble(), 0.0); - QCOMPARE(obj->property("samples").toInt(), 0); + QCOMPARE(obj->property("radius").toDouble(), 4.0); + QCOMPARE(obj->property("samples").toInt(), 9); QCOMPARE(obj->property("transparentBorder").toBool(), false); double res = obj->property("deviation").toDouble(); - QVERIFY(res < 0.3000 + 0.0001); - QVERIFY(res > 0.3000 - 0.0001); + QVERIFY(res > 0.0); QCOMPARE(obj->property("cached").toBool(), false); -- cgit v1.2.3