Skip mirroring tests with software adaptation
Results are false positives for test failures when run due to small differences in smoothing and scaling. Change-Id: I95a75b6dd5d4bc97f0fc24167510477b11ab4b9e Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
parent
4f501e364e
commit
ad5b72ab28
|
@ -179,7 +179,11 @@ void tst_qquickanimatedimage::mirror_running()
|
|||
QImage frame0_expected = frame0.transformed(transform);
|
||||
QImage frame1_expected = frame1.transformed(transform);
|
||||
|
||||
if (window.devicePixelRatio() != 1.0 && window.rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
|
||||
QSKIP("QTBUG-53823");
|
||||
QCOMPARE(frame0_flipped, frame0_expected);
|
||||
if (window.devicePixelRatio() != 1.0 && window.rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
|
||||
QSKIP("QTBUG-53823");
|
||||
QCOMPARE(frame1_flipped, frame1_expected);
|
||||
|
||||
delete anim;
|
||||
|
@ -212,6 +216,8 @@ void tst_qquickanimatedimage::mirror_notRunning()
|
|||
screenshot = window.grabWindow();
|
||||
|
||||
screenshot.save("screen.png");
|
||||
if (window.devicePixelRatio() != 1.0 && window.rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
|
||||
QSKIP("QTBUG-53823");
|
||||
QCOMPARE(screenshot, expected);
|
||||
|
||||
// mirroring should not change the current frame or playing status
|
||||
|
|
|
@ -246,6 +246,11 @@ void tst_qquickborderimage::mirror()
|
|||
|
||||
image->setProperty("mirror", true);
|
||||
screenshot = window->grabWindow();
|
||||
|
||||
window->show();
|
||||
QTest::qWaitForWindowExposed(window);
|
||||
if (window->rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
|
||||
QSKIP("QTBUG-53823");
|
||||
QCOMPARE(screenshot, srcPixmap);
|
||||
|
||||
delete window;
|
||||
|
|
Loading…
Reference in New Issue