tests: XFAIL tst_QScreen::grabWindow() on Wayland

Task-number: QTBUG-100792
Pick-to: 6.3 6.2
Change-Id: I1dc257abdc34c586c4c1eda96a43ea75395b1e4a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
bb10
Liang Qi 2022-02-11 14:21:24 +01:00
parent ae9fefe3c8
commit d55c049c7c
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ void tst_QScreen::grabWindow()
QImage grabbedImage = pixmap.toImage();
const QSize grabbedSize = grabbedImage.size();
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QEXPECT_FAIL("", "Wayland: Screen grabbing not implemented, See QTBUG-100792.", Abort);
QCOMPARE(grabbedSize, expectedGrabSize);
QPoint pixelOffset = QPoint(0, 0);