+int UtcDaliControlResourcesReady02(void)
+{
+ ToolkitTestApplication application;
+ tet_infoline( "Change a resource during ResourceReady callback" );
+
+ gResourceReadySignalFired = false;
+
+ Control control = Control::New();
+ control.SetProperty( Actor::Property::SIZE, Vector2( 200.f, 200.f ) );
+ control.ResourceReadySignal().Connect( &ResourceReadySignal );
+
+ Property::Map propertyMap;
+ propertyMap.Insert( ImageVisual::Property::URL, "invalid.jpg" );
+ control.SetProperty( Control::Property::BACKGROUND, propertyMap );
+
+ application.GetScene().Add( control );
+
+ application.SendNotification();
+ application.Render();
+
+ DALI_TEST_EQUALS( Test::WaitForEventThreadTrigger( 1 ), true, TEST_LOCATION );
+
+ application.SendNotification();
+ application.Render();
+
+ DALI_TEST_EQUALS( control.IsResourceReady(), true, TEST_LOCATION );
+ DALI_TEST_EQUALS( gResourceReadySignalFired, true, TEST_LOCATION );
+ gResourceReadySignalFired = false;
+
+ END_TEST;
+}
+