int UtcDaliPopupSetTitle(void)
{
- // TODO
+ ToolkitTestApplication application; // Exceptions require ToolkitTestApplication
+ tet_infoline(" UtcDaliPopupSetTitle");
+
+ // Create the Popup actor
+ Popup popup = Popup::New();
+ Stage::GetCurrent().Add( popup );
+ // Put in show state so it's layer is connected to popup (for ancestor check).
+ popup.SetState(Popup::POPUP_SHOW, 0.0f);
+
+ popup.SetTitle("title");
+
+ DALI_TEST_CHECK( popup.GetTitle() == "title" );
+
END_TEST;
}
int UtcDaliRadioButtonLabelActor(void)
{
- // TODO
+ ToolkitTestApplication application;
+
+ TextLabel actor1 = TextLabel::New( "test actor 1" );
+
+ RadioButton radioButton = RadioButton::New( actor1 );
+ DALI_TEST_CHECK( actor1 == radioButton.GetLabel() );
+
+ TextLabel actor2 = TextLabel::New( "test actor 2" );
+ radioButton.SetLabel( actor2 );
+ DALI_TEST_CHECK( actor2 == radioButton.GetLabel() );
+
END_TEST;
}