Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correction for hydro_test
[modules/hydro.git]
/
src
/
HYDRO_tests
/
test_HYDROGUI_BathymetryPrs.cxx
diff --git
a/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx
b/src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx
index 4eec4f63173378f981a88b2a0eba9f1427932e45..99c2ea2ed31680e5243801b6fd39d876a9e23c81 100644
(file)
--- a/
src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx
+++ b/
src/HYDRO_tests/test_HYDROGUI_BathymetryPrs.cxx
@@
-63,8
+63,8
@@
void test_HYDROGUI_BathymetryPrs::updateColors()
void test_HYDROGUI_BathymetryPrs::test_presentation()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_presentation()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
-
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
+
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-95,7
+95,7
@@
void select( int x1, int y1, int x2, int y2 )
void test_HYDROGUI_BathymetryPrs::test_selection()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_selection()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-126,7
+126,7
@@
void test_HYDROGUI_BathymetryPrs::test_selection()
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-149,7
+149,7
@@
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
double min, max;
myBathPrs->GetRange( min, max );
double min, max;
myBathPrs->GetRange( min, max );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 17
7.78
, min, EPS );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 17
5.56
, min, EPS );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 182.70, max, EPS );
TestViewer::colorScale()->GetRange( min, max );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 182.70, max, EPS );
TestViewer::colorScale()->GetRange( min, max );
@@
-185,7
+185,7
@@
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
void test_HYDROGUI_BathymetryPrs::test_rescale_by_visible()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_visible()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-232,7
+232,7
@@
void test_HYDROGUI_BathymetryPrs::test_rescale_by_visible()
void test_HYDROGUI_BathymetryPrs::test_text_presentation()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_text_presentation()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-283,7
+283,7
@@
void test_HYDROGUI_BathymetryPrs::test_text_presentation()
void test_HYDROGUI_BathymetryPrs::test_rescale_default()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_rescale_default()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );
@@
-340,7
+340,7
@@
void test_HYDROGUI_BathymetryPrs::test_rescale_default()
void test_HYDROGUI_BathymetryPrs::test_fit_on_selected()
{
TestViewer::eraseAll( true, true );
void test_HYDROGUI_BathymetryPrs::test_fit_on_selected()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
importTestBath( aDoc );
TestViewer::showColorScale( false );