diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-01-19 15:02:48 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-01-24 09:14:28 +0000 |
commit | 6d5050d383692b80a78fe7563c5f78c0b7631f73 (patch) | |
tree | 1365caa02eaeb7b63afa39fc597e5d0549749963 | |
parent | 12f52b963e4826f2dcf3565f7bab633ae264f4d6 (diff) |
Skip borderImageMesh test with the software backend
ShaderEffect (and BorderImageMesh) do not do anything with the software
backend so the results of a scene with an effect in it cannot possibly
be compared with the output from another (non-effect) scene.
Fixes: QTBUG-100046
Change-Id: Ie2504971f423f68d5be381a71de459ca81af7894
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit c96fbe3e565a88427141160932115c09a1bdeef9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp b/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp index 6c8e637291..e963082a1a 100644 --- a/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp +++ b/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp @@ -591,11 +591,18 @@ void tst_qquickborderimage::progressAndStatusChanges() #if QT_CONFIG(opengl) void tst_qquickborderimage::borderImageMesh() { + if ((QGuiApplication::platformName() == QLatin1String("offscreen")) + || (QGuiApplication::platformName() == QLatin1String("minimal"))) + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); + QQuickView *window = new QQuickView; window->setSource(testFileUrl("nonmesh.qml")); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); + if (window->rendererInterface()->graphicsApi() == QSGRendererInterface::Software) + QSKIP("Software backend has no ShaderEffect supported, skipping test"); + QImage nonmesh = window->grabWindow(); window->setSource(testFileUrl("mesh.qml")); |