From: isn Date: Mon, 28 Nov 2016 12:47:18 +0000 (+0300) Subject: debug of tests [colorScale] (2) X-Git-Tag: v1.6~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e22a4b2d641470d68cb8a274b554a003ea27eeb;p=modules%2Fhydro.git debug of tests [colorScale] (2) --- diff --git a/src/HYDRO_tests/test_HYDROData_DTM.cxx b/src/HYDRO_tests/test_HYDROData_DTM.cxx index b3fd50f7..175b42b8 100644 --- a/src/HYDRO_tests/test_HYDROData_DTM.cxx +++ b/src/HYDRO_tests/test_HYDROData_DTM.cxx @@ -553,6 +553,7 @@ void test_HYDROData_DTM::test_presentation() HYDROGUI_ShapeBathymetry* aBathPrs = new HYDROGUI_ShapeBathymetry( 0, aContext, DTM ); aBathPrs->update( true, false ); + bool ColorScaleIsDisp = TestViewer::ColorScaleIsDisplayed(); TestViewer::showColorScale( true ); Handle_Aspect_ColorScale aCS = TestViewer::colorScale(); aCS->SetMin( 0.0 ); @@ -563,6 +564,7 @@ void test_HYDROData_DTM::test_presentation() QImage aDTMPrs = draw_DTM( aBathPrs, 0.5, 600, 600 ); CPPUNIT_ASSERT_IMAGES2( &aDTMPrs, "DTM_1" ); delete aBathPrs; + TestViewer::showColorScale( ColorScaleIsDisp ); aDoc->Close(); }