QTestlib: Make QImage comparison more verbose.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 19 Dec 2011 10:33:07 +0000 (11:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Dec 2011 21:59:28 +0000 (22:59 +0100)
commitbc8f25c7e6ab73441c46ea41362a054843b42ec3
treebdb3157531f5471be1e319af6ab4a0bda9df0678
parent5d4acbab0e243aa944f9b365fb6d72073bb1da70
QTestlib: Make QImage comparison more verbose.

Introduce a specialization for qCompare(QImage,QImage) that
checks isNull, size and format and outputs verbose messages.

Check isNull, size similarly for QPixmap.

Add an autotest:
- Add test to cmptest and make it a GUI application since
  QImage requires QGuiApplication.
- Make testlib/selftests capable of running X11-GUI applications
  by passing DISPLAY.
- Ignore stderr output for cmptest
- Add test data

Change-Id: I2b29c7822fbeedf2b22c90889739ed7ff859ce92
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
src/testlib/qtest_gui.h
tests/auto/testlib/selftests/cmptest/cmptest.pro
tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
tests/auto/testlib/selftests/expected_cmptest.lightxml
tests/auto/testlib/selftests/expected_cmptest.txt
tests/auto/testlib/selftests/expected_cmptest.xml
tests/auto/testlib/selftests/expected_cmptest.xunitxml
tests/auto/testlib/selftests/tst_selftests.cpp