Remove disabled code from QWidget autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 1 Nov 2011 05:52:34 +0000 (15:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 Nov 2011 04:44:20 +0000 (05:44 +0100)
The removed code was already disabled when first committed in January
2009.

Change-Id: I00a82f2e673fee76869cc76d756c36d081da2d2a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp

index d804b12..67df4df 100644 (file)
@@ -3894,17 +3894,6 @@ void tst_QWidget::setMaximumSize()
     w.setMaximumSize(defaultSize + QSize(50, 50));
     QCOMPARE(w.size(), defaultSize + QSize(50, 50));
     QVERIFY(!w.testAttribute(Qt::WA_Resized));
-
-#if 0
-    //we don't enforce maximum size on show, apparently
-    QSize nonDefaultSize = defaultSize - QSize(5,5);
-    w.setMaximumSize(nonDefaultSize);
-    w.show();
-    QTest::qWait(50);
-    qDebug() << nonDefaultSize << w.size();
-    QVERIFY(w.height() <= nonDefaultSize.height());
-    QVERIFY(w.width() <= nonDefaultSize.width());
-#endif
 }
 
 void tst_QWidget::setFixedSize()