X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Futc-Dali-DebugRendering.cpp;h=9b733f206500a3298a9e21c80db43777deb16eea;hb=c398078ee3fe4d2edb6e410a33d9e03106d059d0;hp=2887613261b179b9a292a9ca0c9fd73f9b7de4b5;hpb=ce600f9ad5029388cd484f92203437e9c9117933;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp index 2887613..9b733f2 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp @@ -292,16 +292,32 @@ int UtcDaliDebugRenderingGetVisual3(void) // Test that image view with empty property map don't make visual even DebugRendering is enabled. map.Clear(); - ImageView imageView = ImageView::New(); - imageView.SetProperty(Control::Property::BACKGROUND, map); - imageView.SetProperty(ImageView::Property::IMAGE, map); - - application.GetScene().Add(imageView); + ImageView imageView1 = ImageView::New(); + imageView1.SetProperty(Control::Property::BACKGROUND, map); + imageView1.SetProperty(ImageView::Property::IMAGE, map); + + // Test that image view with empty property value don't make visual even DebugRendering is enabled. + Property::Value emptyValue; + ImageView imageView2 = ImageView::New(); + imageView2.SetProperty(Control::Property::BACKGROUND, emptyValue); + imageView2.SetProperty(ImageView::Property::IMAGE, emptyValue); + + // Test that image view with invalid property value don't make visual even DebugRendering is enabled. + Property::Value invalidValue(static_cast(3)); + ImageView imageView3 = ImageView::New(); + imageView3.SetProperty(Control::Property::BACKGROUND, invalidValue); + imageView3.SetProperty(ImageView::Property::IMAGE, invalidValue); + + application.GetScene().Add(imageView1); + application.GetScene().Add(imageView2); + application.GetScene().Add(imageView3); application.SendNotification(); application.Render(); - DALI_TEST_EQUALS( imageView.GetRendererCount(), 0u, TEST_LOCATION ); + DALI_TEST_EQUALS( imageView1.GetRendererCount(), 0u, TEST_LOCATION ); + DALI_TEST_EQUALS( imageView2.GetRendererCount(), 0u, TEST_LOCATION ); + DALI_TEST_EQUALS( imageView3.GetRendererCount(), 0u, TEST_LOCATION ); EnvironmentVariable::SetTestingEnvironmentVariable(false); END_TEST; @@ -404,4 +420,4 @@ int UtcDaliDebugRenderingRenderText(void) } END_TEST; -} \ No newline at end of file +}