File indexing completed on 2025-01-19 04:46:55

0001 /*
0002   SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class NoteEditTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     NoteEditTest();
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 shouldEmitNoteWhenPressEnter();
0030     void shouldEmitNotEmitNoteWhenTextIsEmpty();
0031     void shouldNoteHasCorrectSubject();
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 shouldNotEmitNoteWhenMessageIsNull();
0042     void shouldHaveLineEditFocus();
0043     void shouldEmitNotEmitNoteWhenTextTrimmedIsEmpty();
0044     void shouldSaveCollectionSettingsWhenDeleteWidget();
0045     void shouldSetFocusWhenWeCallNoteEdit();
0046     void shouldShouldEnabledSaveEditorButton();
0047 };