application.GetPlatform().ResetTrace();
ticket = imageFactory.Reload( *req.Get() );
+ DALI_TEST_CHECK( ticket );
application.SendNotification();
application.Render();
EmulateImageLoaded( application, 80, 80 );
ticket = imageFactory.Reload( *req.Get() );
+ DALI_TEST_CHECK( ticket );
application.SendNotification();
application.Render();
DALI_TEST_EQUALS( fValue, 4.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
- Any value2 = 0.f;
+ value1 = 9.f; // Test operator=( const Type& ).
- value2 = 9.f; // Test operator=( const Type& ).
-
- value2.Get( fValue );
+ value1.Get( fValue );
DALI_TEST_EQUALS( fValue, 9.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
Test::TestCustomActor custom = Test::TestCustomActor::NewNegoSize();
float width = 300.0f;
- float v = 0.0f;
application.SendNotification();
application.Render();
- v = custom.TestGetHeightForWidthBase( width );
+ float v = custom.TestGetHeightForWidthBase( width );
DALI_TEST_CHECK( v == width );
Test::TestCustomActor custom = Test::TestCustomActor::NewNegoSize();
float height = 300.0f;
- float v = 0.0f;
application.SendNotification();
application.Render();
- v = custom.TestGetWidthForHeightBase( height );
+ float v = custom.TestGetWidthForHeightBase( height );
DALI_TEST_CHECK( v == height );
application.SendNotification();
application.Render();
- float v = 9.99f;
- v = custom.TestCalculateChildSizeBase( child, Dali::Dimension::ALL_DIMENSIONS );
+ float v = custom.TestCalculateChildSizeBase( child, Dali::Dimension::ALL_DIMENSIONS );
DALI_TEST_CHECK( v == 0.0f );
END_TEST;
Test::TestCustomActor custom = Test::TestCustomActor::NewNegoSize();
custom.SetResizePolicy(Dali::ResizePolicy::FIT_TO_CHILDREN, Dali::Dimension::ALL_DIMENSIONS);
- bool v = false;
+ bool v = custom.TestRelayoutDependentOnChildrenBase( Dali::Dimension::ALL_DIMENSIONS );
+ DALI_TEST_CHECK( v == true );
- v = custom.TestRelayoutDependentOnChildrenBase( Dali::Dimension::ALL_DIMENSIONS );
application.SendNotification();
application.Render();
- DALI_TEST_CHECK( v == true );
-
custom.SetResizePolicy(Dali::ResizePolicy::FIXED, Dali::Dimension::ALL_DIMENSIONS);
v = custom.TestRelayoutDependentOnChildrenBase( Dali::Dimension::WIDTH );
+ DALI_TEST_CHECK( v == false );
+
+ // why is this here?
application.SendNotification();
application.Render();
- DALI_TEST_CHECK( v == false );
END_TEST;
}
}
FloatFunctorFloat( const FloatFunctorFloat& copyMe )
+ : mLastReceivedValue (copyMe.mLastReceivedValue )
{
++mTotalInstanceCount;
++mCurrentInstanceCount;
DALI_TEST_EQUALS( returnValue, FloatFunctorVoid::DEFAULT_RETURN_VALUE, TEST_LOCATION );
// Test double emission
- returnValue = 0.0f;
returnValue = signals.mFloatSignalVoid.Emit();
DALI_TEST_EQUALS( FloatFunctorVoid::mCallbackCount, 2, TEST_LOCATION );
DALI_TEST_EQUALS( returnValue, FloatFunctorVoid::DEFAULT_RETURN_VALUE, TEST_LOCATION );