summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimage
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-07-02 06:58:32 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-07-02 06:58:32 (GMT)
commit16cf85e926baf627d5e10e05affa05f3e9755e9c (patch)
tree31c034106d9d4ee4ec6fb8832912167924ff4a72 /tests/auto/declarative/qdeclarativeimage
parent06e8acfd94d61b4239ac5d0ca3f71cc15da7367e (diff)
downloadQt-16cf85e926baf627d5e10e05affa05f3e9755e9c.zip
Qt-16cf85e926baf627d5e10e05affa05f3e9755e9c.tar.gz
Qt-16cf85e926baf627d5e10e05affa05f3e9755e9c.tar.bz2
Fix test for N900 (ARM-specific SVG results).
Diffstat (limited to 'tests/auto/declarative/qdeclarativeimage')
-rw-r--r--tests/auto/declarative/qdeclarativeimage/data/heart-arm.pngbin0 -> 12596 bytes
-rw-r--r--tests/auto/declarative/qdeclarativeimage/data/heart-float.pngbin12621 -> 0 bytes
-rw-r--r--tests/auto/declarative/qdeclarativeimage/data/heart200-arm.png (renamed from tests/auto/declarative/qdeclarativeimage/data/heart200-float.png)bin8063 -> 8063 bytes
-rw-r--r--tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp14
4 files changed, 6 insertions, 8 deletions
diff --git a/tests/auto/declarative/qdeclarativeimage/data/heart-arm.png b/tests/auto/declarative/qdeclarativeimage/data/heart-arm.png
new file mode 100644
index 0000000..3245027
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeimage/data/heart-arm.png
Binary files differ
diff --git a/tests/auto/declarative/qdeclarativeimage/data/heart-float.png b/tests/auto/declarative/qdeclarativeimage/data/heart-float.png
deleted file mode 100644
index 65bd89f..0000000
--- a/tests/auto/declarative/qdeclarativeimage/data/heart-float.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/declarative/qdeclarativeimage/data/heart200-float.png b/tests/auto/declarative/qdeclarativeimage/data/heart200-arm.png
index 786e75d..b16db76 100644
--- a/tests/auto/declarative/qdeclarativeimage/data/heart200-float.png
+++ b/tests/auto/declarative/qdeclarativeimage/data/heart200-arm.png
Binary files differ
diff --git a/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp b/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
index ace6712..df029f5 100644
--- a/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
+++ b/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
@@ -307,11 +307,10 @@ void tst_qdeclarativeimage::svg()
QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart-mac.png"));
#elif defined(Q_OS_WIN32)
QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart-win32.png"));
+#elif defined(QT_ARCH_ARM)
+ QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart-arm.png"));
#else
- if (sizeof(qreal) == sizeof(double))
- QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart.png"));
- else
- QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart-float.png"));
+ QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart.png"));
#endif
obj->setSourceSize(QSize(200,200));
@@ -324,11 +323,10 @@ void tst_qdeclarativeimage::svg()
QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200-mac.png"));
#elif defined(Q_OS_WIN32)
QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200-win32.png"));
+#elif defined(QT_ARCH_ARM)
+ QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200-arm.png"));
#else
- if (sizeof(qreal) == sizeof(double))
- QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200.png"));
- else
- QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200-float.png"));
+ QCOMPARE(obj->pixmap(), QPixmap(SRCDIR "/data/heart200.png"));
#endif
delete obj;
}