From 4482dcda21bb765ad817384ab44180e9f0dcef3a Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 18 Aug 2011 11:30:32 +1000 Subject: 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 Reviewed-by: Kalle Lehtonen --- tests/auto/qwindowsurface/tst_qwindowsurface.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/auto/qwindowsurface/tst_qwindowsurface.cpp b/tests/auto/qwindowsurface/tst_qwindowsurface.cpp index 11f7240ae7..5810ec3580 100644 --- a/tests/auto/qwindowsurface/tst_qwindowsurface.cpp +++ b/tests/auto/qwindowsurface/tst_qwindowsurface.cpp @@ -119,6 +119,9 @@ static void VERIFY_COLOR(const QRegion ®ion, 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); -- cgit v1.2.3