X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TransitionData.cpp;h=c0f7982dbd0a2cda6dbb06f4ac5695d23ba8188f;hp=71851de7a6a1dfca355148cfe27d92c9d03b1a54;hb=ce4bae9bcaabc3b38d016e7ef36cc55357087bc0;hpb=8c79a1d109b9c8980ed73a364a6a7ffd083cf733 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TransitionData.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TransitionData.cpp index 71851de..c0f7982 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TransitionData.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TransitionData.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -246,13 +247,13 @@ int UtcDaliTransitionDataMap1P(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( anim ); Renderer renderer = actor.GetRendererAt(0); - Property::Index mixColorIndex = renderer.GetPropertyIndex( ColorVisual::Property::MIX_COLOR ); + Property::Index mixColorIndex = DevelHandle::GetPropertyIndex( renderer, ColorVisual::Property::MIX_COLOR ); application.SendNotification(); application.Render(0); @@ -309,13 +310,13 @@ int UtcDaliTransitionDataMap2P(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( anim ); Renderer renderer = actor.GetRendererAt(0); - Property::Index mixColorIndex = renderer.GetPropertyIndex( ColorVisual::Property::MIX_COLOR ); + Property::Index mixColorIndex = DevelHandle::GetPropertyIndex( renderer, ColorVisual::Property::MIX_COLOR ); application.SendNotification(); application.Render(0); @@ -372,7 +373,7 @@ int UtcDaliTransitionDataMap3P(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( anim ); @@ -518,7 +519,7 @@ int UtcDaliTransitionDataMapN3(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( !anim ); @@ -559,7 +560,7 @@ int UtcDaliTransitionDataMapN4(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( !anim ); @@ -569,7 +570,7 @@ int UtcDaliTransitionDataMapN4(void) application.SendNotification(); Renderer renderer = actor.GetRendererAt(0); - Property::Index mixColorIdx = renderer.GetPropertyIndex(ColorVisual::Property::MIX_COLOR); + Property::Index mixColorIdx = DevelHandle::GetPropertyIndex( renderer, ColorVisual::Property::MIX_COLOR ); tet_printf( "Test that the property has been set to target value\n"); DALI_TEST_EQUALS(renderer.GetProperty(mixColorIdx), Color::RED, 0.001, TEST_LOCATION); @@ -610,7 +611,7 @@ int UtcDaliTransitionDataMapN5(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( !anim ); @@ -620,7 +621,7 @@ int UtcDaliTransitionDataMapN5(void) application.SendNotification(); Renderer renderer = actor.GetRendererAt(0); - Property::Index mixColorIdx = renderer.GetPropertyIndex(ColorVisual::Property::MIX_COLOR); + Property::Index mixColorIdx = DevelHandle::GetPropertyIndex( renderer, ColorVisual::Property::MIX_COLOR ); tet_printf( "Test that the property has been set to target value\n"); DALI_TEST_EQUALS(renderer.GetProperty(mixColorIdx), Color::RED, 0.001, TEST_LOCATION); @@ -661,7 +662,7 @@ int UtcDaliTransitionDataMapN6(void) visual.SetName( "visual1" ); Property::Index visualIndex = Control::CONTROL_PROPERTY_END_INDEX + 1; - dummyImpl.RegisterVisual( visualIndex, actor, visual ); + dummyImpl.RegisterVisual( visualIndex, visual ); Animation anim = dummyImpl.CreateTransition( transition ); DALI_TEST_CHECK( !anim ); @@ -671,7 +672,7 @@ int UtcDaliTransitionDataMapN6(void) application.SendNotification(); Renderer renderer = actor.GetRendererAt(0); - Property::Index mixColorIdx = renderer.GetPropertyIndex(ColorVisual::Property::MIX_COLOR); + Property::Index mixColorIdx = DevelHandle::GetPropertyIndex( renderer, ColorVisual::Property::MIX_COLOR ); tet_printf( "Test that the property has been set to target value\n"); DALI_TEST_EQUALS(renderer.GetProperty(mixColorIdx), Color::RED, 0.001, TEST_LOCATION);