Commit fc3ca5e4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename it too

parent a2b17332
......@@ -4,7 +4,7 @@ ecm_add_test(webengineaccesskeyanchortest.cpp ../webengineaccesskeyanchor.cpp .
LINK_LIBRARIES Qt5::Test KF5::MessageViewer
)
ecm_add_test(mailwebengineaccesskeyanchorfromhtmltest.cpp ../webengineaccesskeyanchor.cpp ../webengineaccesskeyutils.cpp
ecm_add_test(webengineaccesskeyanchorfromhtmltest.cpp ../webengineaccesskeyanchor.cpp ../webengineaccesskeyutils.cpp
TEST_NAME webengineaccesskeyanchorfromhtmltest
NAME_PREFIX "messageviewer-webengine-"
LINK_LIBRARIES Qt5::Test KF5::MessageViewer Qt5::WebEngine Qt5::WebEngineWidgets
......
......@@ -15,7 +15,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "mailwebengineaccesskeyanchorfromhtmltest.h"
#include "webengineaccesskeyanchorfromhtmltest.h"
#include "../webengineaccesskeyutils.h"
#include <QTest>
#include <QHBoxLayout>
......@@ -77,13 +77,13 @@ void TestWebEngineAccessKey::loadFinished(bool b)
Q_DECLARE_METATYPE(QVector<MessageViewer::WebEngineAccessKeyAnchor>)
MailWebEngineAccessKeyAnchorFromHtmlTest::MailWebEngineAccessKeyAnchorFromHtmlTest(QObject *parent)
WebEngineAccessKeyAnchorFromHtmlTest::WebEngineAccessKeyAnchorFromHtmlTest(QObject *parent)
: QObject(parent)
{
qRegisterMetaType<QVector<MessageViewer::WebEngineAccessKeyAnchor> >();
}
void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldNotShowAccessKeyWhenHtmlAsNotAnchor()
void WebEngineAccessKeyAnchorFromHtmlTest::shouldNotShowAccessKeyWhenHtmlAsNotAnchor()
{
TestWebEngineAccessKey w;
QSignalSpy accessKeySpy(&w, SIGNAL(accessKeySearchFinished(QVector<MessageViewer::WebEngineAccessKeyAnchor>)));
......@@ -94,7 +94,7 @@ void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldNotShowAccessKeyWhenHtmlAsN
QCOMPARE(resultLst.count(), 0);
}
void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldReturnOneAnchor()
void WebEngineAccessKeyAnchorFromHtmlTest::shouldReturnOneAnchor()
{
TestWebEngineAccessKey w;
QSignalSpy accessKeySpy(&w, SIGNAL(accessKeySearchFinished(QVector<MessageViewer::WebEngineAccessKeyAnchor>)));
......@@ -105,7 +105,7 @@ void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldReturnOneAnchor()
QCOMPARE(resultLst.count(), 1);
}
void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldReturnTwoAnchor()
void WebEngineAccessKeyAnchorFromHtmlTest::shouldReturnTwoAnchor()
{
TestWebEngineAccessKey w;
QSignalSpy accessKeySpy(&w, SIGNAL(accessKeySearchFinished(QVector<MessageViewer::WebEngineAccessKeyAnchor>)));
......@@ -116,4 +116,4 @@ void MailWebEngineAccessKeyAnchorFromHtmlTest::shouldReturnTwoAnchor()
QCOMPARE(resultLst.count(), 2);
}
QTEST_MAIN(MailWebEngineAccessKeyAnchorFromHtmlTest)
QTEST_MAIN(WebEngineAccessKeyAnchorFromHtmlTest)
......@@ -42,11 +42,11 @@ private:
QWebEngineView *mEngineView;
};
class MailWebEngineAccessKeyAnchorFromHtmlTest : public QObject
class WebEngineAccessKeyAnchorFromHtmlTest : public QObject
{
Q_OBJECT
public:
explicit MailWebEngineAccessKeyAnchorFromHtmlTest(QObject *parent = Q_NULLPTR);
explicit WebEngineAccessKeyAnchorFromHtmlTest(QObject *parent = Q_NULLPTR);
private Q_SLOTS:
void shouldNotShowAccessKeyWhenHtmlAsNotAnchor();
void shouldReturnOneAnchor();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment