X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TextLabel.cpp;h=4c1e449d76f4ff4017d3a0927cefeee7dd442a71;hb=8177827cf40d243367b4c92ea8d5e3c40d42f3ae;hp=5671523b62d97638b1955b653bd5c1bc369d72dd;hpb=6efee146b4c4e40df991b9e3425f97c66150df10;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 );