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>bb10
parent
b2ed01891d
commit
3e05a987b1
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue