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-TextLabel.cpp;h=5e77ebb77432d9a8097982e21b814c159c421e2e;hp=370fde08d7c1a79d413ab5d07cf45a532594dbf7;hb=3a289377436005f632a2dca8916706879b7e3a28;hpb=75fdb5f9730fa6f6723c517691c9778fb646d082 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp index 370fde0..5e77ebb 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp @@ -50,6 +50,7 @@ const char* const PROPERTY_NAME_SHADOW_COLOR = "shadowColor"; const char* const PROPERTY_NAME_UNDERLINE_ENABLED = "underlineEnabled"; const char* const PROPERTY_NAME_UNDERLINE_COLOR = "underlineColor"; const char* const PROPERTY_NAME_UNDERLINE_HEIGHT = "underlineHeight"; +const char* const PROPERTY_NAME_ENABLE_MARKUP = "enableMarkup"; const int DEFAULT_RENDERING_BACKEND = Dali::Toolkit::Text::DEFAULT_RENDERING_BACKEND; @@ -150,6 +151,7 @@ int UtcDaliToolkitTextLabelGetPropertyP(void) DALI_TEST_CHECK( label.GetPropertyIndex( PROPERTY_NAME_UNDERLINE_ENABLED ) == TextLabel::Property::UNDERLINE_ENABLED ); DALI_TEST_CHECK( label.GetPropertyIndex( PROPERTY_NAME_UNDERLINE_COLOR ) == TextLabel::Property::UNDERLINE_COLOR ); DALI_TEST_CHECK( label.GetPropertyIndex( PROPERTY_NAME_UNDERLINE_HEIGHT) == TextLabel::Property::UNDERLINE_HEIGHT ); + DALI_TEST_CHECK( label.GetPropertyIndex( PROPERTY_NAME_ENABLE_MARKUP) == TextLabel::Property::ENABLE_MARKUP ); END_TEST; } @@ -211,6 +213,11 @@ int UtcDaliToolkitTextLabelSetPropertyP(void) DALI_TEST_CHECK( label2 ); DALI_TEST_EQUALS( label2.GetProperty( TextLabel::Property::TEXT ), std::string("New text"), TEST_LOCATION ); + // Check the enable markup property. + DALI_TEST_CHECK( !label.GetProperty( TextLabel::Property::ENABLE_MARKUP ) ); + label.SetProperty( TextLabel::Property::ENABLE_MARKUP, true ); + DALI_TEST_CHECK( label.GetProperty( TextLabel::Property::ENABLE_MARKUP ) ); + END_TEST; }