tst_QMimeDatabase: rename test to indicate what it really is
This test is calling mimeTypeForFileNameAndData(), so it doesn't actually use the files. Change-Id: I570832c9ac8b4e03bde8fffd173f77f138ef3434 Reviewed-by: Igor Kushnir <igorkuo@gmail.com> Reviewed-by: David Faure <david.faure@kdab.com>bb10
parent
c609b8dba0
commit
bfe42ebdeb
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "tst_qmimedatabase.h"
|
||||
#include <qmimedatabase.h>
|
||||
|
||||
#include "qstandardpaths.h"
|
||||
|
|
@ -546,7 +547,7 @@ void tst_QMimeDatabase::mimeTypeForData()
|
|||
QCOMPARE(buffer.pos(), qint64(0));
|
||||
}
|
||||
|
||||
void tst_QMimeDatabase::mimeTypeForFileAndContent_data()
|
||||
void tst_QMimeDatabase::mimeTypeForFileNameAndData_data()
|
||||
{
|
||||
QTest::addColumn<QString>("name");
|
||||
QTest::addColumn<QByteArray>("data");
|
||||
|
|
@ -565,7 +566,7 @@ void tst_QMimeDatabase::mimeTypeForFileAndContent_data()
|
|||
QTest::newRow("text.xls, found by extension, user is in control") << QString::fromLatin1("text.xls") << oleData << "application/vnd.ms-excel";
|
||||
}
|
||||
|
||||
void tst_QMimeDatabase::mimeTypeForFileAndContent()
|
||||
void tst_QMimeDatabase::mimeTypeForFileNameAndData()
|
||||
{
|
||||
QFETCH(QString, name);
|
||||
QFETCH(QByteArray, data);
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ private slots:
|
|||
void mimeTypeForUrl();
|
||||
void mimeTypeForData_data();
|
||||
void mimeTypeForData();
|
||||
void mimeTypeForFileAndContent_data();
|
||||
void mimeTypeForFileAndContent();
|
||||
void mimeTypeForFileNameAndData_data();
|
||||
void mimeTypeForFileNameAndData();
|
||||
void allMimeTypes();
|
||||
void suffixes_data();
|
||||
void suffixes();
|
||||
|
|
|
|||
Loading…
Reference in New Issue