File indexing completed on 2024-06-23 04:40:29
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include <QObject> 0009 0010 class TranslatorWidgetTest : public QObject 0011 { 0012 Q_OBJECT 0013 public: 0014 TranslatorWidgetTest(); 0015 0016 private Q_SLOTS: 0017 void shouldHaveDefaultValuesOnCreation(); 0018 void shouldEnableTranslateButtonWhenTextToTranslateIsNotEmpty(); 0019 void shouldDisableTranslateButtonAndClearTextWhenClickOnClearButton(); 0020 void shouldInvertLanguageWhenClickOnInvertButton(); 0021 void shouldHideWidgetWhenPressEscape(); 0022 void shouldEmitTranslatorWasClosedSignalWhenCloseIt(); 0023 };