Wayland: Skip test that queries window position
The client does not know its global window position on Wayland, so testing for this will not work. Fixes: QTBUG-100888 Change-Id: Ibdfc84f1b33d25223dbd740603ce4783c21afc70 Reviewed-by: Inho Lee <inho.lee@qt.io> (cherry picked from commit e8031906b596fb58d4426fc1ea2c93d3fcb0d77d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9c94845573
commit
a20d257015
@ -2236,6 +2236,9 @@ void tst_QWindow::modalWindowModallity()
|
|||||||
|
|
||||||
void tst_QWindow::modalWindowPosition()
|
void tst_QWindow::modalWindowPosition()
|
||||||
{
|
{
|
||||||
|
if (isPlatformWayland())
|
||||||
|
QSKIP("Window position not queryable on Wayland");
|
||||||
|
|
||||||
QWindow window;
|
QWindow window;
|
||||||
window.setTitle(QLatin1String(QTest::currentTestFunction()));
|
window.setTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
window.setGeometry(QRect(m_availableTopLeft + QPoint(100, 100), m_testWindowSize));
|
window.setGeometry(QRect(m_availableTopLeft + QPoint(100, 100), m_testWindowSize));
|
||||||
@ -2244,8 +2247,6 @@ void tst_QWindow::modalWindowPosition()
|
|||||||
window.setModality(Qt::WindowModal);
|
window.setModality(Qt::WindowModal);
|
||||||
window.show();
|
window.show();
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&window));
|
QVERIFY(QTest::qWaitForWindowExposed(&window));
|
||||||
if (isPlatformWayland())
|
|
||||||
QEXPECT_FAIL("", "Wayland: This fails. See QTBUG-100888.", Abort);
|
|
||||||
QCOMPARE(window.geometry(), origGeo);
|
QCOMPARE(window.geometry(), origGeo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user