summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-31 17:33:42 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-01 04:58:44 +0100
commit3e05a987b1fc9d72aeb8447499d51a7b0174a8e7 (patch)
treeb78d669a8a307c7dda6228ef9961b2e83c5fcf7c /tests/auto/widgets/kernel
parentb2ed01891d41095522edf6f9a69dd412abc7149e (diff)
Remove debug code from QLayout autotest.
Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: Id4efb74a2d3646f3554b643762beefba113c3602 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
-rw-r--r--tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp b/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp
index ea25700568..b25c632a6e 100644
--- a/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp
+++ b/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp
@@ -195,15 +195,11 @@ void tst_QLayout::smartMaxSize()
Qt::Alignment align = alignments[a];
QSize sz = qSmartMaxSize(QSize(sizeHint, 1), QSize(minSize, 1), QSize(maxSize, 1), sizePolicy, align);
int width = sz.width();
-#if 0
- qDebug() << expectedIndex << sizePolicy.horizontalPolicy() << align << minSize << sizeHint << maxSize << width;
-#else
int expectedWidth = expectedWidths[expectedIndex];
if (width != expectedWidth) {
qDebug() << "error at index" << expectedIndex << ":" << sizePolicy.horizontalPolicy() << align << minSize << sizeHint << maxSize << width;
++regressionCount;
}
-#endif
++expectedIndex;
}
}