diff options
author | Liang Qi <liang.qi@qt.io> | 2024-01-02 11:13:41 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2024-01-10 17:36:03 +0100 |
commit | cf0d34bf18cc1dcac0bdfbed5b2be10c79902543 (patch) | |
tree | d0f490cf86a2672fa779a4601c4f722d428be878 /tests/auto/gui | |
parent | d14a1ceffb87b6b62b6a79625be190d40ca9630d (diff) |
tests: XFAIL tst_QShortcut::windowShortcut() on Wayland
Pick-to: 6.7
Task-number: QTBUG-120334
Change-Id: I6cafda6fa8f8c9b20a6695b982413057ddf56dd2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r-- | tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp b/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp index 29954e6dcc..7509d58426 100644 --- a/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp +++ b/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp @@ -48,6 +48,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()); |