aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2015-03-13 20:39:04 +0100
committerGunnar Sletta <gunnar@sletta.org>2015-03-24 12:13:41 +0000
commit9a5401be1da2fe2ba9227c4008fc086e0fce9301 (patch)
treeb6de0069187a50323588d913d6f553cbb95661a6 /tests
parentdb18dcf6dfc7d1ca830e503502438bce5775c5f4 (diff)
Adapt QtGraphicalEffects autotest to check for the new values.
Change-Id: Iff577c9400cf2b3de9b97c8b898b4c971a2b9514 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/tst_qtgraphicaleffects.cpp26
1 files changed, 11 insertions, 15 deletions
diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp
index 6ba29f3..01a4bc5 100644
--- a/tests/auto/tst_qtgraphicaleffects.cpp
+++ b/tests/auto/tst_qtgraphicaleffects.cpp
@@ -435,16 +435,15 @@ void tst_qtgraphicaleffects::dropShadow()
QVERIFY(obj != 0);
// Default values
- QCOMPARE(obj->property("radius").toDouble(), 0.0);
- QCOMPARE(obj->property("samples").toInt(), 0);
- QCOMPARE(obj->property("horizontalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("verticalOffset").toDouble(), 0.0);
+ QCOMPARE(obj->property("radius").toDouble(), 4.0);
+ QCOMPARE(obj->property("samples").toInt(), 9);
+ QCOMPARE(obj->property("horizontalOffset").toDouble(), 10.0);
+ QCOMPARE(obj->property("verticalOffset").toDouble(), 10.0);
QCOMPARE(obj->property("cached").toBool(), false);
QCOMPARE(obj->property("source").toInt(), 0);
QCOMPARE(obj->property("color").toString(), QString("#000000"));
QCOMPARE(obj->property("spread").toDouble(), 0.0);
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
- QCOMPARE(obj->property("fast").toBool(), false);
+ QCOMPARE(obj->property("transparentBorder").toBool(), true);
delete obj;
}
@@ -549,13 +548,12 @@ void tst_qtgraphicaleffects::glow()
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("cached").toBool(), false);
- QCOMPARE(obj->property("spread").toDouble(), 0.0);
+ QCOMPARE(obj->property("spread").toDouble(), 0.5);
QCOMPARE(obj->property("color").toString(), QString("#ffffff"));
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
- QCOMPARE(obj->property("fast").toBool(), false);
+ QCOMPARE(obj->property("transparentBorder").toBool(), true);
delete obj;
}
@@ -767,11 +765,9 @@ void tst_qtgraphicaleffects::maskedBlur()
// Default values
QCOMPARE(obj->property("source").toInt(), 0);
QCOMPARE(obj->property("maskSource").toInt(), 0);
- 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("cached").toBool(), false);
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
- QCOMPARE(obj->property("fast").toBool(), false);
delete obj;
}