Show
Ignore:
Timestamp:
01/24/08 15:11:54 (1 year ago)
Author:
cneumann
Message:

fixed: aspect sync for child/parent fields

missing editSField/editMField calls

added: simple test program for MT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGGenericInterfaceTest.cpp

    r1033 r1041  
    158158    CHECK_EQUAL(n0->getChildren()[1], n2); 
    159159     
    160     // insert a child 
     160    // insert a child, n0 -- [n1, n3, n2] 
    161161    childEH->insert(1, n3); 
    162162     
     
    169169    CHECK_EQUAL(n3->getParent(), n0); 
    170170     
    171     // remove a child by index 
     171    // remove a child by index, n0 -- [n3, n2] 
    172172    childEH->sub(0); 
    173173     
     
    177177    CHECK(n1->getParent() == NullFC); 
    178178     
    179     // attempt to remove a child that is not there 
     179    // attempt to remove a child that is not there, n0 -- [n3, n2] 
    180180    childEH->subObject(n1); 
    181181     
     
    184184    CHECK_EQUAL(n0->getChildren()[1], n2); 
    185185     
    186     // remove a child by object 
     186    // remove a child by object, n0 -- [n3] 
    187187    childEH->subObject(n2); 
    188188     
     
    191191    CHECK(n2->getParent() == NullFC); 
    192192     
    193     // replace by index 
     193    // replace by index, n0 -- [n1] 
    194194    childEH->replace(0, n1); 
    195195     
     
    199199    CHECK(n1->getParent() == n0    ); 
    200200     
    201     // replace by object 
     201    // replace by object, n0 -- [n2] 
    202202    childEH->replaceObject(n1, n2); 
    203203