diff options
author | Felix Geyer <debfx@fobos.de> | 2012-04-18 19:31:05 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2012-04-18 19:31:05 +0400 |
commit | 134f9a663ee75bda662c2ef9b2ba8fb7d80ad0b7 (patch) | |
tree | 12f444f11f3a4e80fa2b979b61c71705927283d4 /tests/TestModified.cpp | |
parent | 433e8c450853f236d818cf3b5322a9b16ea15811 (diff) |
Test that modified() is emitted when deleting Groups and Entries.
Diffstat (limited to 'tests/TestModified.cpp')
-rw-r--r-- | tests/TestModified.cpp | 8 |
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() |