diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-05-29 16:25:13 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-05-29 14:26:21 +0000 |
commit | c61dcfc8d6cf522c8f6ef804d4fd6b1352f19ca3 (patch) | |
tree | 12b7b3ced6f98645a6d084e404425249bb1f428f | |
parent | c94342497120dd8eb640afbeb770c01b0d717634 (diff) |
Remove paint test from tst_QDeclarativeVideoOutput::paintSurface
While RHI is not supported yet.
Change-Id: I8f8864f4bb94ec5c073ce7f718142425d7b9132f
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
-rw-r--r-- | tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp b/tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp index 27c7d85de..b31947738 100644 --- a/tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp +++ b/tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp @@ -378,16 +378,6 @@ void tst_QDeclarativeVideoOutput::paintSurface() QImage img(rgb32ImageData, 2, 2, 8, QImage::Format_RGB32); QVERIFY(surface->present(img)); - - if (QGuiApplication::platformName() == QLatin1String("offscreen") - || QGuiApplication::platformName() == QLatin1String("minimal")) - return; - - QImage capture = window.grabWindow(); - QCOMPARE(capture.pixelColor(0, 0), QColor(rgb32ImageData[2], rgb32ImageData[1], rgb32ImageData[0], rgb32ImageData[3])); - QCOMPARE(capture.pixelColor(1, 0), QColor(rgb32ImageData[6], rgb32ImageData[5], rgb32ImageData[4], rgb32ImageData[7])); - QCOMPARE(capture.pixelColor(0, 1), QColor(rgb32ImageData[10], rgb32ImageData[9], rgb32ImageData[8], rgb32ImageData[11])); - QCOMPARE(capture.pixelColor(1, 1), QColor(rgb32ImageData[14], rgb32ImageData[13], rgb32ImageData[12], rgb32ImageData[15])); } void tst_QDeclarativeVideoOutput::sourceRect() |