summaryrefslogtreecommitdiffstats
path: root/tests/auto/qicon/tst_qicon.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-01 10:40:56 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-01 10:43:59 (GMT)
commitdde7e6835ddaa8e1531de57887686c6c4f89d83d (patch)
tree600fba053aa2ae9b0bb6225dc587011d0b34044c /tests/auto/qicon/tst_qicon.cpp
parent91c7b2d6cfa4f8ac63d12c1da131e1813a3c690c (diff)
downloadQt-dde7e6835ddaa8e1531de57887686c6c4f89d83d.zip
Qt-dde7e6835ddaa8e1531de57887686c6c4f89d83d.tar.gz
Qt-dde7e6835ddaa8e1531de57887686c6c4f89d83d.tar.bz2
Fix tst_QIcon::isNull
The test tries to load a file from an unsuported format. The problem is that tga is a supported format if KDE plugins are installed It is unlikely that cpp will ever be a supported image format Reviewed-by: paul
Diffstat (limited to 'tests/auto/qicon/tst_qicon.cpp')
-rw-r--r--tests/auto/qicon/tst_qicon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qicon/tst_qicon.cpp b/tests/auto/qicon/tst_qicon.cpp
index 96d1d6c..f5baeaa 100644
--- a/tests/auto/qicon/tst_qicon.cpp
+++ b/tests/auto/qicon/tst_qicon.cpp
@@ -242,7 +242,7 @@ void tst_QIcon::isNull() {
const QString prefix = QLatin1String(SRCDIR) + QLatin1String("/");
// test string constructor with existing file but unsupported format
- QIcon iconUnsupportedFormat = QIcon(prefix + "image.tga");
+ QIcon iconUnsupportedFormat = QIcon(prefix + "tst_qicon.cpp");
QVERIFY(!iconUnsupportedFormat.isNull());
QVERIFY(!iconUnsupportedFormat.actualSize(QSize(32, 32)).isValid());