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>2012-04-18 19:31:05 +0400
committerFelix Geyer <debfx@fobos.de>2012-04-18 19:31:05 +0400
commit134f9a663ee75bda662c2ef9b2ba8fb7d80ad0b7 (patch)
tree12f444f11f3a4e80fa2b979b61c71705927283d4 /tests/TestModified.cpp
parent433e8c450853f236d818cf3b5322a9b16ea15811 (diff)
Test that modified() is emitted when deleting Groups and Entries.
Diffstat (limited to 'tests/TestModified.cpp')
-rw-r--r--tests/TestModified.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/TestModified.cpp b/tests/TestModified.cpp
index 75c9b9e0f..6e144f7c3 100644
--- a/tests/TestModified.cpp
+++ b/tests/TestModified.cpp
@@ -89,9 +89,17 @@ void TestModified::testSignals()
g4->setParent(g3);
QCOMPARE(spyModified.count(), ++spyCount);
+ delete g4;
+ QCOMPARE(spyModified.count(), ++spyCount);
+
+ delete entry2;
+ QCOMPARE(spyModified2.count(), ++spyCount2);
+
+ QCOMPARE(spyModified.count(), spyCount);
QCOMPARE(spyModified2.count(), spyCount2);
delete db;
+ delete db2;
}
void TestModified::testGroupSets()