diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-10-28 17:13:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-31 02:34:30 +0100 |
commit | f935b98b20b7ed2232083567164247a146c84236 (patch) | |
tree | d05abd8cc678b39033fc32e41884dba669e7f362 /tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp | |
parent | 5029a99118f4266bd06e0d594413575830de24a0 (diff) | |
download | qtbase-f935b98b20b7ed2232083567164247a146c84236.tar.gz |
Remove debugging code from QPathClipper 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: I36c0624cccf70853a697a2395259b387fa334134
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp')
-rw-r--r-- | tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp b/tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp index 6acaf5e5c3..1fa279dbc7 100644 --- a/tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp +++ b/tests/auto/gui/painting/qpathclipper/tst_qpathclipper.cpp @@ -513,27 +513,6 @@ void tst_QPathClipper::clipTest(int subjectIndex, int clipIndex, QPathClipper::O op == QPathClipper::BoolOr ? "or" : "sub"; sprintf(str, "Expected: %d, actual: %d, subject: %d, clip: %d, op: %s\n", int(expected), int(inResult), subjectIndex, clipIndex, opStr); - - // debugging -#if 0 - QRect rect = bounds.toAlignedRect(); - - QPainter p(&img); - p.scale(scale, scale); - p.translate(-bounds.topLeft()); - - p.setPen(Qt::NoPen); - p.setBrush(QColor(0x700ff00)); - p.drawPath(result); - - p.setPen(Qt::blue); - p.drawPoint(point); - p.end(); - - char str2[256]; - sprintf(str2, "fail-%d-%d-%s.png", subjectIndex, clipIndex, opStr); - img.save(str2); -#endif QFAIL(str); } } |