X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-ImageView.cpp;h=596d09a4f74ba88c3597a2fdb89a22d7ddb172da;hb=refs%2Fchanges%2F75%2F120675%2F5;hp=721bfecf87e8c2505b16010d881079bad19e41db;hpb=c57e053b5795783ad92b0fd7f8fbaba6b6d9322a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp index 721bfec..596d09a 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -452,7 +453,15 @@ int UtcDaliImageViewAsyncLoadingWithAtlasing(void) callStack.Reset(); callStack.Enable(true); - ImageView imageView = ImageView::New( gImage_34_RGBA, ImageDimensions( 34, 34 ) ); + Property::Map imageMap; + + imageMap[ ImageVisual::Property::URL ] = gImage_34_RGBA; + imageMap[ ImageVisual::Property::DESIRED_HEIGHT ] = 34; + imageMap[ ImageVisual::Property::DESIRED_WIDTH ] = 34; + imageMap[ DevelImageVisual::Property::ATLASING] = true; + + ImageView imageView = ImageView::New(); + imageView.SetProperty( ImageView::Property::IMAGE, imageMap ); // By default, Aysnc loading is used // loading is not started if the actor is offStage @@ -493,6 +502,7 @@ int UtcDaliImageViewAsyncLoadingWithAtlasing02(void) asyncLoadingMap[ "desiredHeight" ] = 34; asyncLoadingMap[ "desiredWidth" ] = 34; asyncLoadingMap[ "synchronousLoading" ] = false; + asyncLoadingMap[ "atlasing" ] = true; ImageView imageView = ImageView::New(); imageView.SetProperty( ImageView::Property::IMAGE, asyncLoadingMap ); @@ -527,6 +537,7 @@ int UtcDaliImageViewSyncLoading(void) Property::Map syncLoadingMap; syncLoadingMap[ ImageVisual::Property::SYNCHRONOUS_LOADING ] = true; + syncLoadingMap[ DevelImageVisual::Property::ATLASING ] = true; // Sync loading, no atlasing for big size image { @@ -536,6 +547,7 @@ int UtcDaliImageViewSyncLoading(void) syncLoadingMap[ ImageVisual::Property::URL ] = gImage_600_RGB; imageView.SetProperty( ImageView::Property::IMAGE, syncLoadingMap ); + // BitmapLoader is used, and the loading is started immediately even the actor is not on stage. BitmapLoader loader = BitmapLoader::GetLatestCreated(); DALI_TEST_CHECK( loader ); @@ -598,6 +610,7 @@ int UtcDaliImageViewSyncLoading02(void) syncLoadingMap[ "desiredHeight" ] = 34; syncLoadingMap[ "desiredWidth" ] = 34; syncLoadingMap[ "synchronousLoading" ] = true; + syncLoadingMap[ "atlasing" ] = true; imageView.SetProperty( ImageView::Property::IMAGE, syncLoadingMap ); // loading is started even if the actor is offStage