summaryrefslogtreecommitdiffstats
path: root/tests/auto/qimage/tst_qimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qimage/tst_qimage.cpp')
-rw-r--r--tests/auto/qimage/tst_qimage.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp
index ee4ece2..3b04d56 100644
--- a/tests/auto/qimage/tst_qimage.cpp
+++ b/tests/auto/qimage/tst_qimage.cpp
@@ -51,8 +51,12 @@
#include <qpainter.h>
#include <private/qdrawhelper_p.h>
+
//TESTED_CLASS=
//TESTED_FILES=
+#if defined(Q_OS_SYMBIAN)
+# define SRCDIR ""
+#endif
Q_DECLARE_METATYPE(QImage::Format)
@@ -260,8 +264,11 @@ void tst_QImage::formatHandlersInput_data()
{
QTest::addColumn<QString>("testFormat");
QTest::addColumn<QString>("testFile");
-
+ #ifdef Q_OS_SYMBIAN
+ const QString prefix = QLatin1String(SRCDIR) + "images/";
+ #else
const QString prefix = QLatin1String(SRCDIR) + "/images/";
+ #endif
// add a new line here when a file is added
QTest::newRow("ICO") << "ICO" << prefix + "image.ico";
@@ -280,7 +287,6 @@ void tst_QImage::formatHandlersInput()
{
QFETCH(QString, testFormat);
QFETCH(QString, testFile);
-
QList<QByteArray> formats = QImageReader::supportedImageFormats();
// qDebug("Image input formats : %s", formats.join(" | ").latin1());
@@ -292,7 +298,7 @@ void tst_QImage::formatHandlersInput()
}
}
if (formatSupported) {
-// qDebug(QImage::imageFormat(testFile));
+// qDebug(QImage::imageFormat(testFile));
QCOMPARE(testFormat.toLatin1().toLower(), QImageReader::imageFormat(testFile));
} else {
QString msg = "Format not supported : ";
@@ -1464,10 +1470,12 @@ void tst_QImage::smoothScale3()
void tst_QImage::smoothScaleBig()
{
-#ifndef Q_OS_WINCE
- int bigValue = 200000;
+#if defined(Q_OS_WINCE)
+ int bigValue = 2000;
+#elif defined(Q_OS_SYMBIAN)
+ int bigValue = 2000;
#else
- int bigValue = 2000;
+ int bigValue = 200000;
#endif
QImage tall(4, bigValue, QImage::Format_ARGB32);
tall.fill(0x0);