tests: skip tst_QGuiApplication::topLevelAt() on Wayland

This amends 189f9873ae3f23377708fbf9880398fd6a078715 .

Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-121015
Change-Id: I66d2a2b0162b9c7b488af840ff5d3a881b657782
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Liang Qi 2024-01-17 10:20:43 +01:00
parent 02a556674f
commit d4f7d2aeab

View File

@ -1329,6 +1329,9 @@ void tst_QGuiApplication::topLevelAt()
char *argv[] = { const_cast<char*>("tst_qguiapplication") };
QGuiApplication app(argc, argv);
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QSKIP("QGuiApplication::topLevelAt() is not Wayland compliant, see also QTBUG-121015");
QWindow bottom;
bottom.setObjectName("Bottom");
bottom.setFlag(Qt::FramelessWindowHint);