test: mark tst_qwindowsurface as expected failure on qpa

This test fails on qpa because QPixmap::grabWindow is not implemented
for that platform.

Task-number: QTBUG-20863
Change-Id: I19afdac231922113c1b491dee27c2ea91e121b85
Reviewed-on: http://codereview.qt.nokia.com/3123
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
This commit is contained in:
Rohan McGovern 2011-08-18 11:30:32 +10:00 committed by Qt by Nokia
parent 8455b13fee
commit 4482dcda21

View File

@ -119,6 +119,9 @@ static void VERIFY_COLOR(const QRegion &region, const QColor &color)
const QPixmap pixmap = QPixmap::grabWindow(QDesktopWidget().winId(),
rect.left(), rect.top(),
rect.width(), rect.height());
#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-20863 QPixmap::grabWindow unimplemented for qpa", Abort);
#endif
QCOMPARE(pixmap.size(), rect.size());
QPixmap expectedPixmap(pixmap); /* ensure equal formats */
expectedPixmap.fill(color);