diff options
author | Felix Geyer <debfx@fobos.de> | 2013-11-22 16:27:49 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2013-11-22 16:32:13 +0400 |
commit | f2dfef8c41b263901d5b5c44bc68f42117ede933 (patch) | |
tree | 59098b952ba0dfb646ed6e758bb56ca62191f0af /tests/TestGroup.cpp | |
parent | cb804eb143922d0ac7b7272345b75f125de5ba22 (diff) |
Add flags to Entry::clone() for customized cloning.
Diffstat (limited to 'tests/TestGroup.cpp')
-rw-r--r-- | tests/TestGroup.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestGroup.cpp b/tests/TestGroup.cpp index 22845af11..65d4eeda3 100644 --- a/tests/TestGroup.cpp +++ b/tests/TestGroup.cpp @@ -441,8 +441,11 @@ void TestGroup::testClone() Entry* originalGroupEntry = new Entry(); originalGroupEntry->setGroup(originalGroup); - originalGroupEntry->setTitle("GroupEntry"); + originalGroupEntry->setTitle("GroupEntryOld"); originalGroupEntry->setIcon(43); + originalGroupEntry->beginUpdate(); + originalGroupEntry->setTitle("GroupEntry"); + originalGroupEntry->endUpdate(); Group* subGroup = new Group(); subGroup->setParent(originalGroup); @@ -465,6 +468,7 @@ void TestGroup::testClone() QVERIFY(clonedGroupEntry->uuid() != originalGroupEntry->uuid()); QCOMPARE(clonedGroupEntry->title(), QString("GroupEntry")); QCOMPARE(clonedGroupEntry->iconNumber(), 43); + QCOMPARE(clonedGroupEntry->historyItems().size(), 0); Group* clonedSubGroup = clonedGroup->children().at(0); QVERIFY(clonedSubGroup->uuid() != subGroup->uuid()); |