tests: XFAIL tst_QShortcut::windowShortcut() on Wayland

Task-number: QTBUG-120334
Change-Id: I6cafda6fa8f8c9b20a6695b982413057ddf56dd2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit cf0d34bf18cc1dcac0bdfbed5b2be10c79902543)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Liang Qi 2024-01-02 11:13:41 +01:00 committed by Qt Cherry-pick Bot
parent 08d282b451
commit 0b04acd1f0

View File

@ -42,6 +42,10 @@ void tst_QShortcut::windowShortcut()
new QShortcut(Qt::CTRL | Qt::Key_Q, &w, SLOT(close()));
w.show();
QVERIFY(QTest::qWaitForWindowExposed(&w));
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QEXPECT_FAIL("", "It failed on Wayland, QTBUG-120334", Abort);
QTRY_VERIFY(QGuiApplication::applicationState() == Qt::ApplicationActive);
QTest::sendKeyEvent(QTest::Click, &w, Qt::Key_Q, 'q', Qt::ControlModifier);
QTRY_VERIFY(!w.isVisible());