Remove dead code from tst_QMessageBox::staticSourceCompat()
Remove if (0) clause. Task-number: QTBUG-118489 Pick-to: 6.7 6.6 6.5 Change-Id: Ie1c72e9c7cacb90d9e4d85763cd2f6967a7572cd Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
1a7db3ab11
commit
09eb99f011
|
|
@ -512,18 +512,6 @@ QT_WARNING_DISABLE_DEPRECATED
|
|||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 1);
|
||||
QCOMPARE(ret, 1);
|
||||
QVERIFY(closeHelper.done());
|
||||
|
||||
if (0) { // don't run these tests since the dialog won't close!
|
||||
closeHelper.start(Qt::Key_Escape);
|
||||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 1);
|
||||
QCOMPARE(ret, -1);
|
||||
QVERIFY(closeHelper.done());
|
||||
|
||||
closeHelper.start(Qt::Key_Escape);
|
||||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 0, 1);
|
||||
QCOMPARE(ret, 1);
|
||||
QVERIFY(closeHelper.done());
|
||||
}
|
||||
#endif // QT_DEPRECATED_SINCE(6, 2)
|
||||
QT_WARNING_POP
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue