summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2015-03-12 12:20:31 +0100
committerGunnar Sletta <gunnar@sletta.org>2015-03-13 09:07:26 +0000
commita37419877148084d95d6a8b62413310fa74e0335 (patch)
tree2eba5be56d367b7e4c8a14b702077e9d1876bd4d
parent81a27fa85f5656d3784d7d4fdcd99d3c66ebb446 (diff)
downloadqtgraphicaleffects-a37419877148084d95d6a8b62413310fa74e0335.tar.gz
Adapt GaussianBlur autotest to the new default values.
Change-Id: I27c405af55384b5ea9a5c823bfed9fb5e8ba2161 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--tests/auto/tst_qtgraphicaleffects.cpp7
1 files 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);