Remove obsolete test.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 07:28:36 +0000 (17:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 03:58:28 +0000 (04:58 +0100)
The commit that disabled this test a few days after it was originally
comitted (bda80c4b in the grafted history) makes it clear that this
test was never valid.

Change-Id: Ib0090fc35d0b9251d7b7367de2c71a66a332c567
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp

index 80c1bdb..5e22340 100644 (file)
@@ -536,14 +536,6 @@ void tst_QApplication::lastWindowClosed()
     QCOMPARE(spy.count(), 1);
     spy.clear();
 
-#if 0
-    // everything is closed, so doing this should not emit lastWindowClosed() again
-    QMetaObject::invokeMethod(dialog, "close", Qt::QueuedConnection);
-    QTimer::singleShot(1000, &app, SLOT(quit()));
-    app.exec();
-    QCOMPARE(spy.count(), 0);
-#endif
-
     delete dialog;
 
     // show 3 windows, close them, should only get lastWindowClosed once