aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-18 10:02:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-18 10:02:27 +0100
commit2528fce0a8d40772534cb03cd47e7db306327f15 (patch)
tree9f68b5db36d78177cd89d836cdadd4822e9d083f /tests/auto
parentf97f339f0bebceb00c01cc92acdbe045506c81c8 (diff)
parentba9ca0e3d64c46fc63cdbc62f3e4a96e36a842f8 (diff)
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp b/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
index 1fed2ecda8..2ecb3c4725 100644
--- a/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
+++ b/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
@@ -81,6 +81,13 @@ void tst_qquickrectangle::gradient()
QCOMPARE(stops.at(&stops, 1)->position(), 1.0);
QCOMPARE(stops.at(&stops, 1)->color(), QColor("white"));
+ QGradientStops gradientStops = grad->gradientStops();
+ QCOMPARE(gradientStops.count(), 2);
+ QCOMPARE(gradientStops.at(0).first, 0.0);
+ QCOMPARE(gradientStops.at(0).second, QColor("gray"));
+ QCOMPARE(gradientStops.at(1).first, 1.0);
+ QCOMPARE(gradientStops.at(1).second, QColor("white"));
+
QMetaObject::invokeMethod(rect, "resetGradient");
grad = rect->gradient();