summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimageprovider
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-08-25 05:31:00 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-08-25 05:31:00 (GMT)
commitb4bf4f754ba65da3ea751dd5508d29244a4b4db2 (patch)
tree8e60970e0510da8bef0f8129fbaa210075555ce3 /tests/auto/declarative/qdeclarativeimageprovider
parent675188b766b7b0f7eb65c2e9f3ee7d6017e63453 (diff)
downloadQt-b4bf4f754ba65da3ea751dd5508d29244a4b4db2.zip
Qt-b4bf4f754ba65da3ea751dd5508d29244a4b4db2.tar.gz
Qt-b4bf4f754ba65da3ea751dd5508d29244a4b4db2.tar.bz2
Setting one dimension of the sourceSize should set the other dimension.
The implicit width and height should also be set to the sourceSize. Task-number: 13002
Diffstat (limited to 'tests/auto/declarative/qdeclarativeimageprovider')
-rw-r--r--tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp b/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
index 4a9224e..6d5a357 100644
--- a/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
+++ b/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
@@ -221,8 +221,8 @@ void tst_qdeclarativeimageprovider::runTest(bool async, QDeclarativeImageProvide
TRY_WAIT(obj->status() == QDeclarativeImage::Ready);
else
QVERIFY(obj->status() == QDeclarativeImage::Ready);
- QCOMPARE(obj->width(), 100.0);
- QCOMPARE(obj->height(), 100.0);
+ QCOMPARE(obj->width(), qreal(size.width()));
+ QCOMPARE(obj->height(), qreal(size.height()));
QCOMPARE(obj->pixmap().width(), size.width());
QCOMPARE(obj->pixmap().height(), size.height());
QCOMPARE(obj->fillMode(), QDeclarativeImage::Stretch);