Skip to content
Permalink
Browse files

workaround for testExtrudedPolygons

Test fails sometime, apply same workaround than others
  • Loading branch information
vcloarec authored and PeterPetrik committed Mar 9, 2020
1 parent d1c13a9 commit dd6af4cda329030c143ec4927d330934609ab873
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/src/3d/testqgs3drendering.cpp
@@ -322,6 +322,11 @@ void TestQgs3DRendering::testExtrudedPolygons()
engine.setRootEntity( scene );

scene->cameraController()->setLookingAtPoint( QgsVector3D( 0, 0, 250 ), 500, 45, 0 );

// When running the test on Travis, it would initially return empty rendered image.
// Capturing the initial image and throwing it away fixes that. Hopefully we will
// find a better fix in the future.
Qgs3DUtils::captureSceneImage( engine, scene );
QImage img = Qgs3DUtils::captureSceneImage( engine, scene );

QVERIFY( renderCheck( "polygon3d_extrusion", img, 40 ) );

0 comments on commit dd6af4c

Please sign in to comment.
You can’t perform that action at this time.