aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml')
-rw-r--r--tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml b/tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml
index 2c6d4cc28f..996c06c7da 100644
--- a/tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml
+++ b/tests/auto/qmltest/shadersource/tst_DynamicallyCreatedSource.qml
@@ -67,6 +67,13 @@ Item {
when: root.source != undefined
function test_endresult() {
+ if ((Qt.platform.pluginName === "offscreen")
+ || (Qt.platform.pluginName === "minimal"))
+ skip("grabImage does not work on offscreen/minimal platforms");
+
+ if ((Qt.platform.pluginName === "xcb"))
+ skip("grabImage crashes on the xcb platform");
+
var image = grabImage(root);
compare(image.red(0,0), 255);
compare(image.green(0,0), 0);