summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmimetype/tst_qmimetype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmimetype/tst_qmimetype.cpp')
-rw-r--r--tests/auto/qmimetype/tst_qmimetype.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/tests/auto/qmimetype/tst_qmimetype.cpp b/tests/auto/qmimetype/tst_qmimetype.cpp
index f1b4c19..d2e5eb6 100644
--- a/tests/auto/qmimetype/tst_qmimetype.cpp
+++ b/tests/auto/qmimetype/tst_qmimetype.cpp
@@ -60,11 +60,10 @@ void tst_qmimetype::initTestCase()
static QString qMimeTypeName()
{
- return QString::fromLatin1("image/png");
+ static const QString result ("No name of the MIME type");
+ return result;
}
-// ------------------------------------------------------------------------------------------------
-
#if 0
static QString qMimeTypeDisplayName()
{
@@ -72,22 +71,18 @@ static QString qMimeTypeDisplayName()
}
#endif
-// ------------------------------------------------------------------------------------------------
-
static QString qMimeTypeGenericIconName()
{
- return QString::fromLatin1("/usr/share/icons/oxygen/64x64/mimetypes/image-x-generic.png");
+ static const QString result ("No file name of an icon image that represents the MIME type");
+ return result;
}
-// ------------------------------------------------------------------------------------------------
-
static QString qMimeTypeIconName()
{
- return QString::fromLatin1("/usr/share/icons/oxygen/64x64/mimetypes/image-x.png");
+ static const QString result ("No file name of an icon image that represents the MIME type");
+ return result;
}
-// ------------------------------------------------------------------------------------------------
-
static QStringList buildQMimeTypeFilenameExtensions()
{
QStringList result;
@@ -95,8 +90,6 @@ static QStringList buildQMimeTypeFilenameExtensions()
return result;
}
-// ------------------------------------------------------------------------------------------------
-
static QStringList qMimeTypeGlobPatterns()
{
static const QStringList result (buildQMimeTypeFilenameExtensions());
@@ -245,7 +238,7 @@ void tst_qmimetype::test_suffixes()
)
);
- // Verify that the FilenameExtensions are part of the equality test:
+ // Verify that the Suffixes are part of the equality test:
QCOMPARE(instantiatedQMimeType.globPatterns(), qMimeTypeGlobPatterns());
QCOMPARE(instantiatedQMimeType.suffixes(), QStringList() << QString::fromLatin1("png"));