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-PushButton.cpp;h=0d259d92bbfa4b680d636c6a8f1dcca3112bb8dc;hp=84a020ef3c4bfae9cd44fbedc5352b704abae837;hb=1c30e27a6363cb89217671b1efa5ce1c38b9afbe;hpb=6e824d3bfb11cab305d0d8375b202076d59222b0 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp b/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp index 84a020e..0d259d9 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp @@ -314,18 +314,11 @@ int UtcDaliPushButtonSetLabelText(void) application.SendNotification(); application.Render(); - TextView textView; - pushButton.SetLabel( STR ); - textView = TextView::DownCast( pushButton.GetLabel() ); - DALI_TEST_CHECK( STR == textView.GetText() ); - - TextView text = TextView::New( STR ); - pushButton.SetLabel( text ); + TextLabel label = TextLabel::DownCast( pushButton.GetLabel() ); + DALI_TEST_CHECK( STR == label.GetProperty( TextLabel::Property::TEXT ) ); - textView = TextView::DownCast( pushButton.GetLabel() ); - DALI_TEST_CHECK( STR == textView.GetText() ); END_TEST; }