1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/*
SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "textparttest.h"
#include "../src/part/textpart.h"
#include <QTest>
TextPartTest::TextPartTest(QObject *parent)
: QObject(parent)
{
}
TextPartTest::~TextPartTest() = default;
void TextPartTest::shouldHaveDefaultValue()
{
MessageComposer::TextPart textpart;
QVERIFY(textpart.warnBadCharset());
QVERIFY(textpart.isWordWrappingEnabled());
QVERIFY(!textpart.hasEmbeddedImages());
QVERIFY(!textpart.isHtmlUsed());
}
QTEST_APPLESS_MAIN(TextPartTest)
#include "moc_textparttest.cpp"
|