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=4c1e449d76f4ff4017d3a0927cefeee7dd442a71;hp=5671523b62d97638b1955b653bd5c1bc369d72dd;hb=8177827cf40d243367b4c92ea8d5e3c40d42f3ae;hpb=f598d4089fd0447e4dcdbea99e5ef2b3266f4b72 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp index 5671523..4c1e449 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp @@ -251,11 +251,11 @@ int UtcDaliToolkitTextLabelSetPropertyP(void) fontStyleMapSet.Insert( "weight", "thin" ); fontStyleMapSet.Insert( "width", "expanded" ); fontStyleMapSet.Insert( "slant", "oblique" ); + const std::string strFontStyle = "{\"weight\":\"thin\",\"width\":\"expanded\",\"slant\":\"oblique\"}"; label.SetProperty( TextLabel::Property::FONT_STYLE, "{\"weight\":\"thin\",\"width\":\"expanded\",\"slant\":\"oblique\"}" ); - fontStyleMapGet = label.GetProperty( TextLabel::Property::FONT_STYLE ); - DALI_TEST_EQUALS( fontStyleMapGet.Count(), fontStyleMapSet.Count(), TEST_LOCATION ); - DALI_TEST_EQUALS( DaliTestCheckMaps( fontStyleMapGet, fontStyleMapSet ), true, TEST_LOCATION ); + std::string getFontStyle = label.GetProperty( TextLabel::Property::FONT_STYLE ); + DALI_TEST_EQUALS( getFontStyle, strFontStyle, TEST_LOCATION ); label.SetProperty( TextLabel::Property::POINT_SIZE, 10.f ); DALI_TEST_EQUALS( label.GetProperty( TextLabel::Property::POINT_SIZE ), 10.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );