MyStruct* myStruct3 = myClass.GetPointer();
const MyStruct* myStruct4 = myClass.GetPointer();
+ if( myStruct3 == NULL )
+ {
+ tet_result( TET_FAIL );
+ END_TEST;
+ }
+
+ if( myStruct4 == NULL )
+ {
+ tet_result( TET_FAIL );
+ END_TEST;
+ }
+
DALI_TEST_EQUALS( myStruct1.mFloatValue, 3.25f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
DALI_TEST_EQUALS( myStruct2.mFloatValue, 3.25f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
DALI_TEST_EQUALS( myStruct3->mFloatValue, 3.25f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
// testApp out of scope it should have been disconnected
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 0 );
+ delete button;
+
END_TEST;
}
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 0 );
+ delete button;
+
END_TEST;
}
testApp.DisconnectAll();
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 0 );
+ delete button;
+
END_TEST;
}
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 1 );
+ delete button;
+
END_TEST;
}
tet_result(TET_PASS);
}
+ delete button;
+
END_TEST;
}
button->DownSignal().Disconnect(&testApp,&TestApp::OnButtonPress);
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 0 );
- END_TEST;
+ delete button;
+ END_TEST;
}
tet_result( TET_PASS );
}
- END_TEST;
+ delete button;
+ END_TEST;
}
TestApp testApp;
button->DownSignal().Connect(&testApp,&TestApp::OnButtonPress);
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 1 );
+
+ delete button;
+
END_TEST;
}
TestButton* button = new TestButton(1);
DALI_TEST_CHECK( button->DownSignal().GetConnectionCount( ) == 0 );
+
+ delete button;
+
END_TEST;
}
int* ptr = NULL;
for( unsigned int i = 0; i < acidCount; ++i )
{
- ++ptr;
pairvector.PushBack( std::make_pair( i, i ) );
doublevector.PushBack( (double)i );
intptrvector.PushBack( (int*)ptr );
try
{
float& w = testVector[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)
try
{
const float& w = testVector2[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)
try
{
float& w = testVector[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)
try
{
const float& w = testVector2[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)
try
{
float& w = testVector[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)
try
{
const float& w = testVector2[4];
- if(w==0.0f);
tet_result(TET_FAIL);
}
catch (Dali::DaliException& e)