aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp')
-rw-r--r--tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp b/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
index c7710199..b5dd7f2f 100644
--- a/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
+++ b/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
@@ -125,6 +125,10 @@ void tst_qquickninepatchimage::ninePatch()
// Bottom-left
painter.drawImage(0, generatedImage.height() - blueRect.height(), blueRect);
+ if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
+ || (QGuiApplication::platformName() == QLatin1String("minimal")))
+ QEXPECT_FAIL("", "Grabbing does not work on offscreen/minimal platforms", Abort);
+
QCOMPARE(ninePatchImageGrab, generatedImage);
}