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
Merge branch 'BR_PY3' of https://git.forge.pleiade.edf.fr/git/modules-salome.hydro...
[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 6d63658f26597f296aa18943bf3bade33d90504e..a6dfe1cee142267e911d840a1231824f28322f44 100644
(file)
--- a/
src/HYDRO_tests/test_HYDROData_Stream.cxx
+++ b/
src/HYDRO_tests/test_HYDROData_Stream.cxx
@@
-77,7
+77,7
@@
void test_HYDROData_Stream::test_alt_object()
{
TestViewer::eraseAll( true, true );
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
@@
-99,7
+99,7
@@
void test_HYDROData_Stream::test_params_sync()
{
TestViewer::eraseAll( true, true );
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
Handle(HYDROData_Stream) aStream =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
@@
-153,7
+153,7
@@
void test_HYDROData_Stream::test_dump()
TestViewer::eraseAll( true, true );
// Case 1. Without hydraulic axis
TestViewer::eraseAll( true, true );
// Case 1. Without hydraulic axis
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
Handle(HYDROData_Stream) aStream1 =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
Handle(HYDROData_Stream) aStream1 =
Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
@@
-243,7
+243,7
@@
void test_HYDROData_Stream::test_presentation()
{
TestViewer::eraseAll( true, true );
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
fname += "/Profiles.xyz";
TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
fname += "/Profiles.xyz";
@@
-293,9
+293,9
@@
void test_HYDROData_Stream::test_lism_1()
TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
fname += "/study_lism_1.cbf";
TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
fname += "/study_lism_1.cbf";
- CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString()
, 1
) );
+ CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString() ) );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
HYDROData_SequenceOfObjects profiles;
HYDROData_Iterator it( aDoc, KIND_PROFILE );
HYDROData_SequenceOfObjects profiles;
HYDROData_Iterator it( aDoc, KIND_PROFILE );