diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-08-23 18:27:59 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-08-24 12:26:31 +0200 |
commit | 826177eccab7ee3ac16b456bc57c0f271da14507 (patch) | |
tree | dd5cee1cbbc9d1e538c2a4c6f1a6e096d04d5d03 /tests/auto/quick/qquickimage | |
parent | 5d995ae122aa07486ead849560b74d2b62b883bb (diff) |
Stabilize image and borderimage multiFrame tests
There are various problems on QEMU: color depth may not be 32-bit,
and for some reason grabWindow isn't always working.
Task-number: QTBUG-77817
Change-Id: I10db56e93643722d1d6a85e66b9dd552ee654432
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickimage')
-rw-r--r-- | tests/auto/quick/qquickimage/tst_qquickimage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp index 23635590e4..abc7cd86bd 100644 --- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp +++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp @@ -1145,6 +1145,10 @@ void tst_qquickimage::multiFrame_data() void tst_qquickimage::multiFrame() { + if ((QGuiApplication::platformName() == QLatin1String("offscreen")) + || (QGuiApplication::platformName() == QLatin1String("minimal"))) + QSKIP("Skipping due to grabWindow not functional on offscreen/minimimal platforms"); + QFETCH(QString, qmlfile); QFETCH(bool, asynchronous); Q_UNUSED(asynchronous) @@ -1166,6 +1170,8 @@ void tst_qquickimage::multiFrame() QVERIFY(QTest::qWaitForWindowExposed(&view)); QImage contents = view.grabWindow(); + if (contents.width() < 40) + QSKIP("Skipping due to grabWindow not functional"); // The first frame is a blue ball, approximately qRgba(0x33, 0x6d, 0xcc, 0xff) QRgb color = contents.pixel(16, 16); QVERIFY(qRed(color) < 0xc0); |