File indexing completed on 2024-05-26 05:15:15
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 namespace CalendarSupport 0012 { 0013 class NoteEditDialogTest : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 NoteEditDialogTest(); 0018 0019 private Q_SLOTS: 0020 void shouldHaveDefaultValuesOnCreation(); 0021 void shouldEmitCollectionChanged(); 0022 void shouldNotEmitWhenCollectionIsNotChanged(); 0023 void shouldHaveSameValueAfterSet(); 0024 void shouldHaveFilledText(); 0025 void shouldHaveRichText(); 0026 void shouldDefaultCollectionIsValid(); 0027 void shouldEmitCollectionChangedWhenCurrentCollectionWasChanged(); 0028 void shouldEmitCorrectCollection(); 0029 0030 void shouldNotEmitNoteWhenTitleIsEmpty(); 0031 void shouldNotEmitNoteWhenTextIsEmpty(); 0032 0033 void shouldNoteHasCorrectText(); 0034 void shouldNoteHasCorrectTitle(); 0035 void shouldNoteHasCorrectTextFormat(); 0036 0037 void shouldShouldEnabledSaveEditorButton(); 0038 }; 0039 }