Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2013-11-22 16:27:49 +0400
committerFelix Geyer <debfx@fobos.de>2013-11-22 16:32:13 +0400
commitf2dfef8c41b263901d5b5c44bc68f42117ede933 (patch)
tree59098b952ba0dfb646ed6e758bb56ca62191f0af /tests/TestGroup.cpp
parentcb804eb143922d0ac7b7272345b75f125de5ba22 (diff)
Add flags to Entry::clone() for customized cloning.
Diffstat (limited to 'tests/TestGroup.cpp')
-rw-r--r--tests/TestGroup.cpp6
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());