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-ControlImpl.cpp;h=4a29efce8bf598d6ed67d251ac09631892013803;hp=2ed0c4c30a18adbb94161f274783faebc5128599;hb=f4a28993f3f77f15015e5c9b4e1bedd06e23b926;hpb=ccd53048e482f41b00ad1daa7664b3781d6b7626 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp index 2ed0c4c..4a29efc 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp @@ -1118,11 +1118,23 @@ int UtcDaliControlImplRegisterUnregisterVisual(void) // Register index with a color visual dummyImpl.RegisterVisual( index, visual ); + tet_infoline( "Add control with visual to stage and check renderer count is 1" ); + Stage::GetCurrent().Add( dummy ); + application.SendNotification(); + application.Render(); + DALI_TEST_CHECK( dummyImpl.GetVisual( index ) == visual ); + DALI_TEST_EQUALS( dummy.GetRendererCount(), 1, TEST_LOCATION ); // Unregister visual dummyImpl.UnregisterVisual( index ); + tet_infoline( "Remove control with visual from stage and check renderer count is 0" ); + Stage::GetCurrent().Remove( dummy ); + application.SendNotification(); + application.Render(); + + DALI_TEST_EQUALS( dummy.GetRendererCount(), 0, TEST_LOCATION ); DALI_TEST_CHECK( !dummyImpl.GetVisual( index ) ); END_TEST;