File indexing completed on 2025-01-05 04:49:29
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "zoomtextplugineditortest.h" 0008 #include "../zoomtextplugineditor.h" 0009 #include <KActionCollection> 0010 #include <QTest> 0011 0012 ZoomTextPluginEditorTest::ZoomTextPluginEditorTest(QObject *parent) 0013 : QObject(parent) 0014 { 0015 } 0016 0017 ZoomTextPluginEditorTest::~ZoomTextPluginEditorTest() = default; 0018 0019 void ZoomTextPluginEditorTest::shouldHaveDefaultValue() 0020 { 0021 ZoomTextPluginEditor plugin; 0022 QVERIFY(plugin.createInterface(new KActionCollection(this))); 0023 QVERIFY(!plugin.hasConfigureDialog()); 0024 QVERIFY(plugin.hasPopupMenuSupport()); 0025 QVERIFY(!plugin.hasToolBarSupport()); 0026 } 0027 0028 QTEST_MAIN(ZoomTextPluginEditorTest) 0029 0030 #include "moc_zoomtextplugineditortest.cpp"