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
refs# #1339 debug
[modules/hydro.git]
/
src
/
HYDRO_tests
/
test_HYDROData_Stream.cxx
diff --git
a/src/HYDRO_tests/test_HYDROData_Stream.cxx
b/src/HYDRO_tests/test_HYDROData_Stream.cxx
index 3341e77ac61923f81be4bec325cf3419e7261a80..86c3d676350d726c6a92a78809a782d6c3ada00c 100644
(file)
--- a/
src/HYDRO_tests/test_HYDROData_Stream.cxx
+++ b/
src/HYDRO_tests/test_HYDROData_Stream.cxx
@@
-73,6
+73,8
@@
void test_HYDROData_Stream::test_alt_object()
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
CPPUNIT_ASSERT_EQUAL( false, (bool)aStream.IsNull() );
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
CPPUNIT_ASSERT_EQUAL( false, (bool)aStream.IsNull() );
+ CPPUNIT_ASSERT_EQUAL( true, (bool)aStream->GetAltitudeObject().IsNull() );
+ CPPUNIT_ASSERT_EQUAL( false, (bool)aStream->DTM().IsNull() );
CPPUNIT_ASSERT_EQUAL( false, (bool)aStream->GetAltitudeObject().IsNull() );
CPPUNIT_ASSERT_EQUAL( KIND_DTM, aStream->getAltitudeObjectType() );
CPPUNIT_ASSERT_EQUAL( false, (bool)aStream->GetAltitudeObject().IsNull() );
CPPUNIT_ASSERT_EQUAL( KIND_DTM, aStream->getAltitudeObjectType() );
@@
-89,8
+91,7
@@
void test_HYDROData_Stream::test_params_sync()
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
- Handle(HYDROData_DTM) aDTM =
- Handle(HYDROData_DTM)::DownCast( aStream->GetAltitudeObject() );
+ Handle(HYDROData_DTM) aDTM = aStream->DTM();
CPPUNIT_ASSERT_EQUAL( false, (bool)aDTM.IsNull() );
Handle(HYDROData_Profile) aProfile1 =
CPPUNIT_ASSERT_EQUAL( false, (bool)aDTM.IsNull() );
Handle(HYDROData_Profile) aProfile1 =
@@
-259,7
+260,7
@@
void test_HYDROData_Stream::test_presentation()
TopoDS_Shape aPrs3d = aStream->GetShape3D();
TopoDS_Shape aPrs2d = aStream->GetTopShape();
TopoDS_Shape aPrs3d = aStream->GetShape3D();
TopoDS_Shape aPrs2d = aStream->GetTopShape();
- TestViewer::show( aPrs2d, 0, true, "stream_dtm_2d" );
+ TestViewer::show( aPrs2d, 0, true, "stream_dtm_2d"
, 1, 1
);
CPPUNIT_ASSERT_IMAGES;
TestViewer::eraseAll( true );
CPPUNIT_ASSERT_IMAGES;
TestViewer::eraseAll( true );