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-ImageView.cpp;h=edaeec19eab450505f11d00a39a6f3ce6a081967;hp=6a0d8fc8fe21aad7d662b858deb159982dbd7118;hb=42e6d93abfd4fc9ced3b9f366ebbc32228aa490b;hpb=65c40fb2f2ea1c8b677be4ad1cee04d271869d0b diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp index 6a0d8fc..edaeec1 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp @@ -785,9 +785,25 @@ int UtcDaliImageViewAsyncLoadingEncodedBufferWithAtlasing(void) Property::Map imageMap; imageMap[ImageVisual::Property::URL] = url.GetUrl(); + imageMap[ImageVisual::Property::DESIRED_HEIGHT] = 600; + imageMap[ImageVisual::Property::DESIRED_WIDTH] = 600; + imageMap[ImageVisual::Property::ATLASING] = true; + + // No atlasing with big image + ImageView imageView_bigdesired = ImageView::New(); + imageView_bigdesired.SetProperty(ImageView::Property::IMAGE, imageMap); + imageView_bigdesired.SetProperty(Toolkit::Control::Property::PADDING, Extents(10u, 10u, 10u, 10u)); + + imageMap[ImageVisual::Property::DESIRED_HEIGHT] = 0; + imageMap[ImageVisual::Property::DESIRED_WIDTH] = 0; + + // No atlasing with zero desired size + ImageView imageView_nodesired = ImageView::New(); + imageView_nodesired.SetProperty(ImageView::Property::IMAGE, imageMap); + imageView_nodesired.SetProperty(Toolkit::Control::Property::PADDING, Extents(10u, 10u, 10u, 10u)); + imageMap[ImageVisual::Property::DESIRED_HEIGHT] = 34; imageMap[ImageVisual::Property::DESIRED_WIDTH] = 34; - imageMap[ImageVisual::Property::ATLASING] = true; ImageView imageView = ImageView::New(); imageView.SetProperty(ImageView::Property::IMAGE, imageMap); @@ -795,10 +811,15 @@ int UtcDaliImageViewAsyncLoadingEncodedBufferWithAtlasing(void) // By default, Aysnc loading is used // loading is not started if the actor is offScene - application.GetScene().Add(imageView); + application.GetScene().Add(imageView_bigdesired); + application.GetScene().Add(imageView_nodesired); application.SendNotification(); application.Render(16); + + // loading started, this waits for the loader thread for max 30 seconds + DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION); + application.Render(16); application.SendNotification(); @@ -849,6 +870,7 @@ int UtcDaliImageViewSyncLoadingEncodedBuffer(void) // Sync loading is used Property::Map syncLoadingMap; syncLoadingMap["url"] = url.GetUrl(); + syncLoadingMap["alphaMaskUrl"] = gImage_34_RGBA; syncLoadingMap["desiredHeight"] = 34; syncLoadingMap["desiredWidth"] = 34; syncLoadingMap["synchronousLoading"] = true;