X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-PushButton.cpp;h=f059594bcfe246b8bb75f37fee1ad059e2cb7ad3;hb=24b3e26d147f772b0396937442484ff75b327aa7;hp=723d35db14eeb7f303dfbc4965428bb85e9e039a;hpb=998d982768c7f211d948cfd7921ec27ff739ce49;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp b/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp index 723d35d..f059594 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-PushButton.cpp @@ -73,9 +73,6 @@ const Dali::TouchPoint pointMotionOut( 0, TouchPoint::Motion, 10, 10 ); const Dali::TouchPoint pointDownOutside( 0, TouchPoint::Down, 10, 10 ); const Dali::TouchPoint pointUpOutside( 0, TouchPoint::Up, 10, 10 ); -static bool gOnTouchPointInterrupted = false; - - Image CreateSolidColorImage( const Vector4& color, unsigned int width, unsigned int height ) { BitmapImage imageData = BitmapImage::New( width, height, Pixel::RGBA8888 ); @@ -254,8 +251,8 @@ int UtcDaliPushButtonSetGetAutorepeatingDelayValues02(void) } catch( Dali::DaliException& e ) { - tet_printf("Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str()); - DALI_TEST_EQUALS(e.mCondition, "initialAutoRepeatingDelay > 0.f", TEST_LOCATION); + DALI_TEST_PRINT_ASSERT( e ); + DALI_TEST_EQUALS(e.condition, "initialAutoRepeatingDelay > 0.f", TEST_LOCATION); assert1 = true; } @@ -265,8 +262,8 @@ int UtcDaliPushButtonSetGetAutorepeatingDelayValues02(void) } catch( Dali::DaliException& e ) { - tet_printf("Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str()); - DALI_TEST_EQUALS(e.mCondition, "nextAutoRepeatingDelay > 0.f", TEST_LOCATION); + DALI_TEST_PRINT_ASSERT( e ); + DALI_TEST_EQUALS(e.condition, "nextAutoRepeatingDelay > 0.f", TEST_LOCATION); assert2 = true; } @@ -423,18 +420,8 @@ int UtcDaliPushButtonSetLabelText(void) application.SendNotification(); application.Render(); - TextView textView; - pushButton.SetLabelText( STR ); - textView = TextView::DownCast( pushButton.GetLabelText() ); - DALI_TEST_CHECK( STR == textView.GetText() ); - - TextView text = TextView::New( STR ); - pushButton.SetLabelText( text ); - - textView = TextView::DownCast( pushButton.GetLabelText() ); - DALI_TEST_CHECK( STR == textView.GetText() ); END_TEST; }