summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qsizepolicy
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/qsizepolicy
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/qsizepolicy')
-rw-r--r--tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp b/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp
index d6bc580bb3..0f8c9d1c9e 100644
--- a/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp
+++ b/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp
@@ -44,6 +44,7 @@ class tst_QSizePolicy : public QObject
Q_OBJECT
private Q_SLOTS:
+ void cleanup() { QVERIFY(QApplication::topLevelWidgets().isEmpty()); }
void qtest();
void defaultValues();
void getSetCheck_data() { data(); }