From adb0f009de9ddc603234913a316744d0f8ca417f Mon Sep 17 00:00:00 2001 From: Sami Nurmenniemi Date: Mon, 5 Jun 2017 12:48:40 +0300 Subject: Fix tests for boot2qt The tests for boot2qt were disabled with commit 28063805bf22b77a93f22a4289ca8afa9f1cb201. The tests can be enabled since qtdeclarative now fallbacks to software renderer if OpenGL is not supported. Some tests involving mouse behavior and window grabbing need to be skipped on minimal/offscreen platforms. Task-number: QTBUG-60268 Change-Id: Ib468638df8d5001bf127dd17aee7dcfe38b11780 Reviewed-by: Simon Hausmann --- tests/auto/qquickmenubar/tst_qquickmenubar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/qquickmenubar') diff --git a/tests/auto/qquickmenubar/tst_qquickmenubar.cpp b/tests/auto/qquickmenubar/tst_qquickmenubar.cpp index 932e13bc..19d67eac 100644 --- a/tests/auto/qquickmenubar/tst_qquickmenubar.cpp +++ b/tests/auto/qquickmenubar/tst_qquickmenubar.cpp @@ -77,6 +77,10 @@ void tst_qquickmenubar::delegate() void tst_qquickmenubar::mouse() { + if ((QGuiApplication::platformName() == QLatin1String("offscreen")) + || (QGuiApplication::platformName() == QLatin1String("minimal"))) + QSKIP("Mouse highlight not functional on offscreen/minimal platforms"); + QQmlApplicationEngine engine(testFileUrl("menubar.qml")); QScopedPointer window(qobject_cast(engine.rootObjects().value(0))); -- cgit v1.2.3