+
+int UtcDaliSuperBlurViewSetProperty(void)
+{
+ ToolkitTestApplication application;
+
+ tet_infoline(" UtcDaliSuperBlurViewSetProperty ");
+
+ SuperBlurView blurView = SuperBlurView::New( BLUR_LEVELS );
+ // create image renderers for the original image and each blurred image
+ Stage::GetCurrent().Add( blurView );
+ blurView.SetSize( 100.f, 100.f );
+
+ tet_infoline(" Set property map. Set height and width large enough to avoid atlassing");
+ int width(512);
+ int height(513);
+ LoadBitmapResource( application.GetPlatform(), width, height );
+
+ Property::Map propertyMap;
+ propertyMap["filename"] = TEST_IMAGE_FILE_NAME ;
+ propertyMap["width"] = width;
+ propertyMap["height"] = height;
+
+ // Will create ResourceImage
+ blurView.SetProperty(SuperBlurView::Property::IMAGE, propertyMap);
+ Wait(application);
+
+ // start multiple guassian blur call, each guassian blur creates two render tasks
+ DALI_TEST_CHECK( Stage::GetCurrent().GetRenderTaskList().GetTaskCount() == 1+BLUR_LEVELS*2);
+
+ Wait(application);
+
+ END_TEST;
+}
+
+
+int UtcDaliSuperBlurViewGetProperty(void)
+{
+ ToolkitTestApplication application;
+
+ tet_infoline(" UtcDaliSuperBlurViewSetProperty ");
+
+ SuperBlurView blurView = SuperBlurView::New( BLUR_LEVELS );
+ blurView.SetSize( 100.f, 100.f );
+
+ tet_infoline(" Set property map.");
+ int width(512);
+ int height(513); // Value large enough to avoid future atlassing
+ LoadBitmapResource( application.GetPlatform(), width, height );
+
+ Property::Map propertyMap;
+ propertyMap["filename"] = TEST_IMAGE_FILE_NAME ;
+ propertyMap["width"] = width;
+ propertyMap["height"] = height;
+
+ // Will create ResourceImage
+ blurView.SetProperty(SuperBlurView::Property::IMAGE, propertyMap);
+ Wait(application);
+
+ // create image renderers for the original image and each blurred image
+ Stage::GetCurrent().Add( blurView );
+
+ Property::Value imageProperty = blurView.GetProperty(SuperBlurView::Property::IMAGE);
+ Property::Map* map = imageProperty.GetMap();
+ DALI_TEST_CHECK( map != NULL );
+ if( map )
+ {
+ Property::Map& mapRef = *map;
+ DALI_TEST_EQUALS( mapRef["filename"], TEST_IMAGE_FILE_NAME, TEST_LOCATION );
+ }
+
+ END_TEST;
+}
+
+