File indexing completed on 2025-01-05 04:49:45
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 0009 #include <QObject> 0010 0011 class TodoEditTest : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 TodoEditTest(); 0016 0017 private Q_SLOTS: 0018 void shouldNotEmitWhenMessageIsNotChanged(); 0019 void shouldHaveDefaultValuesOnCreation(); 0020 void shouldEmitCollectionChanged(); 0021 void shouldEmitMessageChanged(); 0022 void shouldNotEmitWhenCollectionIsNotChanged(); 0023 void shouldHaveSameValueAfterSet(); 0024 void shouldHaveASubject(); 0025 void shouldEmptySubjectWhenMessageIsNull(); 0026 void shouldEmptySubjectWhenMessageHasNotSubject(); 0027 void shouldSelectLineWhenPutMessage(); 0028 void shouldEmitCollectionChangedWhenChangeComboboxItem(); 0029 void shouldEmitTodoWhenPressEnter(); 0030 void shouldEmitNotEmitTodoWhenTextIsEmpty(); 0031 void shouldTodoHasCorrectSubject(); 0032 void shouldClearAllWhenCloseWidget(); 0033 void shouldEmitCollectionChangedWhenCurrentCollectionWasChanged(); 0034 void shouldClearLineAfterEmitNewNote(); 0035 void shouldEmitCorrectCollection(); 0036 void shouldHideWidgetWhenClickOnCloseButton(); 0037 void shouldHideWidgetWhenPressEscape(); 0038 void shouldHideWidgetWhenSaveClicked(); 0039 void shouldSaveCollectionSettings(); 0040 void shouldSaveCollectionSettingsWhenCloseWidget(); 0041 void shouldNotEmitTodoWhenMessageIsNull(); 0042 void shouldHaveLineEditFocus(); 0043 void shouldEmitNotEmitTodoWhenTextTrimmedIsEmpty(); 0044 void shouldSaveCollectionSettingsWhenDeleteWidget(); 0045 void shouldSetFocusWhenWeCallTodoEdit(); 0046 void shouldShowMessageWidget(); 0047 void shouldHideMessageWidget(); 0048 void shouldHideMessageWidgetWhenAddNewMessage(); 0049 void shouldHideMessageWidgetWhenCloseWidget(); 0050 void shouldEnabledSaveOpenEditorButton(); 0051 void shouldDisabledSaveOpenEditorButtonWhenCollectionComboBoxIsEmpty(); 0052 };