Skip to content

Commit

Permalink
tests: XFAIL tst_QScreen::grabWindow() on Wayland
Browse files Browse the repository at this point in the history
Task-number: QTBUG-100792
Change-Id: I1dc257abdc34c586c4c1eda96a43ea75395b1e4a
Reviewed-by: Tor Arne Vestbø <[email protected]>
(cherry picked from commit d55c049)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
liangqi authored and Qt Cherry-pick Bot committed Feb 17, 2022
1 parent e242975 commit 1c0a6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/auto/gui/kernel/qscreen/tst_qscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,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);
Expand Down

0 comments on commit 1c0a6f7

Please sign in to comment.