tst_QProgressDialog: enable topLevelWindows() check in cleanup()
Detects widget leaks. Change-Id: Ia2287debc96a5b87b224b887661679eba8622dc0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
f5b9c38a9f
commit
41dae1e33a
@ -42,7 +42,7 @@
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
#include <qcoreapplication.h>
|
||||
#include <qapplication.h>
|
||||
#include <qdebug.h>
|
||||
#include <qprogressdialog.h>
|
||||
#include <qlabel.h>
|
||||
@ -53,6 +53,7 @@ class tst_QProgressDialog : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
private Q_SLOTS:
|
||||
void cleanup();
|
||||
void autoShow_data();
|
||||
void autoShow();
|
||||
void getSetCheck();
|
||||
@ -60,6 +61,11 @@ private Q_SLOTS:
|
||||
void QTBUG_31046();
|
||||
};
|
||||
|
||||
void tst_QProgressDialog::cleanup()
|
||||
{
|
||||
QVERIFY(QApplication::topLevelWindows().empty());
|
||||
}
|
||||
|
||||
void tst_QProgressDialog::autoShow_data()
|
||||
{
|
||||
QTest::addColumn<int>("min");
|
||||
|
Loading…
Reference in New Issue
Block a user