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:
Andy Nichols 2016-06-03 13:51:46 +02:00
parent 4f501e364e
commit ad5b72ab28
2 changed files with 11 additions and 0 deletions

View File

@ -179,7 +179,11 @@ void tst_qquickanimatedimage::mirror_running()
QImage frame0_expected = frame0.transformed(transform); QImage frame0_expected = frame0.transformed(transform);
QImage frame1_expected = frame1.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); QCOMPARE(frame0_flipped, frame0_expected);
if (window.devicePixelRatio() != 1.0 && window.rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
QSKIP("QTBUG-53823");
QCOMPARE(frame1_flipped, frame1_expected); QCOMPARE(frame1_flipped, frame1_expected);
delete anim; delete anim;
@ -212,6 +216,8 @@ void tst_qquickanimatedimage::mirror_notRunning()
screenshot = window.grabWindow(); screenshot = window.grabWindow();
screenshot.save("screen.png"); screenshot.save("screen.png");
if (window.devicePixelRatio() != 1.0 && window.rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
QSKIP("QTBUG-53823");
QCOMPARE(screenshot, expected); QCOMPARE(screenshot, expected);
// mirroring should not change the current frame or playing status // mirroring should not change the current frame or playing status

View File

@ -246,6 +246,11 @@ void tst_qquickborderimage::mirror()
image->setProperty("mirror", true); image->setProperty("mirror", true);
screenshot = window->grabWindow(); screenshot = window->grabWindow();
window->show();
QTest::qWaitForWindowExposed(window);
if (window->rendererInterface()->graphicsApi() == QSGRendererInterface::Software)
QSKIP("QTBUG-53823");
QCOMPARE(screenshot, srcPixmap); QCOMPARE(screenshot, srcPixmap);
delete window; delete window;