X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDRO_tests%2Ftest_HYDROGUI_BathymetryPrs.cxx;h=47f4cec2cd5ae06bf9ce9b46f54a024eb99f3fc7;hb=6074577ddf7ed43a22093a51d50d53b99adaea5e;hp=7d2b8b7c0b466c2d12bf06684877807c167a4332;hpb=48bfcd1e053392987891871922ca81297e91797c;p=modules%2Fhydro.git diff --git a/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx b/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx index 7d2b8b7c..47f4cec2 100644 --- a/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx +++ b/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx @@ -42,6 +42,7 @@ void test_HYDROGUI_BathymetryPrs::createBathPrs() { myBathPrs = new HYDROGUI_ShapeBathymetry( 0, TestViewer::context(), myBath ); myBathPrs->Build(); + myBathPrs->getAISObject()->SetAutoHilight( Standard_False ); double min, max; myBathPrs->GetRange( min, max ); @@ -112,6 +113,10 @@ void test_HYDROGUI_BathymetryPrs::test_selection() TestViewer::setKey( "bathy_selection" ); CPPUNIT_ASSERT_IMAGES + select( 5, 5, 6, 6 ); + TestViewer::setKey( "bathy_prs" ); + CPPUNIT_ASSERT_IMAGES + //QTest::qWait( 50000 ); aDoc->Close(); @@ -253,6 +258,22 @@ void test_HYDROGUI_BathymetryPrs::test_text_presentation() TestViewer::setKey( "bathy_text_labels" ); CPPUNIT_ASSERT_IMAGES; + // Disable text labels + myBathPrs->TextLabels( false ); + vp->fitAll(); + qApp->processEvents(); + TestViewer::setKey( "bathy_prs" ); + CPPUNIT_ASSERT_IMAGES; + + // Special case: flag=false + non-empty selection + select( x1, y1, x2, y2 ); + myBathPrs->TextLabels( false ); + vp->fitAll(); + qApp->processEvents(); + TestViewer::setKey( "bathy_prs" ); + CPPUNIT_ASSERT_IMAGES; + + //QTest::qWait( 50000 ); aDoc->Close();