summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2021-12-08 14:12:11 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-08 20:26:20 +0000
commitf3a261a17ff9c208537c4d426470ae99babbbd26 (patch)
tree5e7193fd9591f144a6110bb351f78c4adadc88e2 /tests
parent9f020b0112847806f9762010615b0a373f63476c (diff)
tests: add a capability check for QWindow::requestActivate() call
This amends b65159a5ea8db05165b2eaab8e180a12f30063e4. Change-Id: I6055004375b440997ea41b3e4538854780202e10 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit c8609d1e7a1f00827a7611182212c3d3bc6e03ff) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/kernel/qwindow/tst_qwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
index faa5722c0d..23ee51501a 100644
--- a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
+++ b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
@@ -2701,6 +2701,9 @@ void tst_QWindow::keepPendingUpdateRequests()
void tst_QWindow::activateDeactivateEvent()
{
+ if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
+ QSKIP("QWindow::requestActivate() is not supported.");
+
class Window : public QWindow
{
public: