summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qshortcut
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-11 12:11:22 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-16 14:14:18 +0000
commit8d5516b58541b2ad63497437271f0a4e36ed311d (patch)
tree57f361f0833511e0b0ce55593a39e46d06232505 /tests/auto/widgets/kernel/qshortcut
parent05fa4ac7dfa850c10f0ad37bfff4b649f93a5dde (diff)
Add check for top level widget leaks in kernel test of QtWidgets.
Add a cleanup function for the check and disable animations in tst_qwidgetaction to prevent effect widgets from interfering (vista style animations). Change-Id: I043ecb131c8dcd07b6ef10bc75c9e010ab569e85 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/kernel/qshortcut')
-rw-r--r--tests/auto/widgets/kernel/qshortcut/tst_qshortcut.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qshortcut/tst_qshortcut.cpp b/tests/auto/widgets/kernel/qshortcut/tst_qshortcut.cpp
index 7b9eaa418f..f206a5fe9a 100644
--- a/tests/auto/widgets/kernel/qshortcut/tst_qshortcut.cpp
+++ b/tests/auto/widgets/kernel/qshortcut/tst_qshortcut.cpp
@@ -108,6 +108,7 @@ public slots:
public slots:
void initTestCase();
void cleanupTestCase();
+ void cleanup() { QCOMPARE(QApplication::topLevelWidgets().size(), 1); }
private slots:
void number_data();