Skip to content

Commit

Permalink
Wayland: Skip test that queries window position
Browse files Browse the repository at this point in the history
The client does not know its global window position on Wayland,
so testing for this will not work.

Pick-to: 6.4
Fixes: QTBUG-100888
Change-Id: Ibdfc84f1b33d25223dbd740603ce4783c21afc70
Reviewed-by: Inho Lee <[email protected]>
  • Loading branch information
eskilblomfeldt committed Aug 25, 2022
1 parent 2ca83a1 commit e803190
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,9 @@ void tst_QWindow::modalWindowModallity()

void tst_QWindow::modalWindowPosition()
{
if (isPlatformWayland())
QSKIP("Window position not queryable on Wayland");

QWindow window;
window.setTitle(QLatin1String(QTest::currentTestFunction()));
window.setGeometry(QRect(m_availableTopLeft + QPoint(100, 100), m_testWindowSize));
Expand All @@ -2257,8 +2260,6 @@ void tst_QWindow::modalWindowPosition()
window.setModality(Qt::WindowModal);
window.show();
QVERIFY(QTest::qWaitForWindowExposed(&window));
if (isPlatformWayland())
QEXPECT_FAIL("", "Wayland: This fails. See QTBUG-100888.", Abort);
QCOMPARE(window.geometry(), origGeo);
}

Expand Down

0 comments on commit e803190

Please sign in to comment.