Changeset View
Changeset View
Standalone View
Standalone View
tests/units/presentation/artifacteditormodeltest.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 65 | { | |||
---|---|---|---|---|---|
77 | QVERIFY(!model.isDone()); | 77 | QVERIFY(!model.isDone()); | ||
78 | QVERIFY(model.startDate().isNull()); | 78 | QVERIFY(model.startDate().isNull()); | ||
79 | QVERIFY(model.dueDate().isNull()); | 79 | QVERIFY(model.dueDate().isNull()); | ||
80 | QCOMPARE(model.recurrence(), Domain::Task::NoRecurrence); | 80 | QCOMPARE(model.recurrence(), Domain::Task::NoRecurrence); | ||
81 | QVERIFY(model.attachmentModel() != nullptr); | 81 | QVERIFY(model.attachmentModel() != nullptr); | ||
82 | QVERIFY(model.delegateText().isNull()); | 82 | QVERIFY(model.delegateText().isNull()); | ||
83 | QVERIFY(!model.hasSaveFunction()); | 83 | QVERIFY(!model.hasSaveFunction()); | ||
84 | QVERIFY(!model.hasDelegateFunction()); | 84 | QVERIFY(!model.hasDelegateFunction()); | ||
85 | auto am = model.attachmentModel(); | ||||
86 | QCOMPARE(am->rowCount(), 0); | ||||
85 | } | 87 | } | ||
86 | 88 | | |||
87 | void shouldHaveTaskProperties() | 89 | void shouldHaveTaskProperties() | ||
88 | { | 90 | { | ||
89 | // GIVEN | 91 | // GIVEN | ||
90 | Presentation::ArtifactEditorModel model; | 92 | Presentation::ArtifactEditorModel model; | ||
91 | QSignalSpy textSpy(&model, &Presentation::ArtifactEditorModel::textChanged); | 93 | QSignalSpy textSpy(&model, &Presentation::ArtifactEditorModel::textChanged); | ||
92 | QSignalSpy titleSpy(&model, &Presentation::ArtifactEditorModel::titleChanged); | 94 | QSignalSpy titleSpy(&model, &Presentation::ArtifactEditorModel::titleChanged); | ||
▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines |