QMimeDatabase: use unique QTest data tag names
Change-Id: I5f0b270df344b0a8511d48f3cde34643f3115445 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
d7e8d5bb1b
commit
28c974ba97
|
|
@ -228,8 +228,8 @@ void tst_QMimeDatabase::mimeTypeForFileName_data()
|
|||
QTest::newRow("case-sensitive uppercase match") << "textfile.C" << "text/x-c++src";
|
||||
QTest::newRow("case-sensitive lowercase match") << "textfile.c" << "text/x-csrc";
|
||||
QTest::newRow("case-sensitive long-extension match") << "foo.PS.gz" << "application/x-gzpostscript";
|
||||
QTest::newRow("case-sensitive-only match") << "core" << "application/x-core";
|
||||
QTest::newRow("case-sensitive-only match") << "Core" << "application/octet-stream"; // #198477
|
||||
QTest::newRow("case-sensitive-only-match-core") << "core" << "application/x-core";
|
||||
QTest::newRow("case-sensitive-only-match-Core") << "Core" << "application/octet-stream"; // #198477
|
||||
|
||||
QTest::newRow("desktop file") << "foo.desktop" << "application/x-desktop";
|
||||
QTest::newRow("old kdelnk file is x-desktop too") << "foo.kdelnk" << "application/x-desktop";
|
||||
|
|
@ -610,13 +610,13 @@ void tst_QMimeDatabase::suffixes_data()
|
|||
QTest::addColumn<QString>("preferredSuffix");
|
||||
|
||||
QTest::newRow("mimetype with a single pattern") << "application/pdf" << "*.pdf" << "pdf";
|
||||
QTest::newRow("mimetype with multiple patterns") << "application/x-kpresenter" << "*.kpr;*.kpt" << "kpr";
|
||||
QTest::newRow("mimetype-with-multiple-patterns-kpr") << "application/x-kpresenter" << "*.kpr;*.kpt" << "kpr";
|
||||
// The preferred suffix for image/jpeg is *.jpg, as per https://bugs.kde.org/show_bug.cgi?id=176737
|
||||
QTest::newRow("jpeg") << "image/jpeg" << "*.jpe;*.jpg;*.jpeg" << "jpg";
|
||||
QTest::newRow("mimetype with many patterns") << "application/vnd.wordperfect" << "*.wp;*.wp4;*.wp5;*.wp6;*.wpd;*.wpp" << "wp";
|
||||
QTest::newRow("oasis text mimetype") << "application/vnd.oasis.opendocument.text" << "*.odt" << "odt";
|
||||
QTest::newRow("oasis presentation mimetype") << "application/vnd.oasis.opendocument.presentation" << "*.odp" << "odp";
|
||||
QTest::newRow("mimetype with multiple patterns") << "text/plain" << "*.asc;*.txt;*,v" << "txt";
|
||||
QTest::newRow("mimetype-multiple-patterns-text-plain") << "text/plain" << "*.asc;*.txt;*,v" << "txt";
|
||||
QTest::newRow("mimetype with uncommon pattern") << "text/x-readme" << "README*" << QString();
|
||||
QTest::newRow("mimetype with no patterns") << "application/x-ole-storage" << QString() << QString();
|
||||
QTest::newRow("default_mimetype") << "application/octet-stream" << QString() << QString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue