+ underlineMapSet.Clear();
+
+ underlineDisabledMapGet.Clear();
+ underlineDisabledMapGet.Insert("enable", false);
+ underlineDisabledMapGet.Insert("color", Color::GREEN);
+ underlineDisabledMapGet.Insert("height", 2);
+ underlineDisabledMapGet.Insert("type", Text::Underline::DASHED);
+ underlineDisabledMapGet.Insert("dashWidth", 2);
+ underlineDisabledMapGet.Insert("dashGap", 1);
+
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+
+ application.SendNotification();
+ application.Render();
+
+ underlineMapGet = label.GetProperty<Property::Map>(TextLabel::Property::UNDERLINE);
+ DALI_TEST_EQUALS(underlineMapGet.Count(), underlineDisabledMapGet.Count(), TEST_LOCATION);
+ DALI_TEST_EQUALS(DaliTestCheckMaps(underlineMapGet, underlineDisabledMapGet), true, TEST_LOCATION);
+
+ // Check the double underline property
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", true);
+ underlineMapSet.Insert("color", Color::RED);
+ underlineMapSet.Insert("height", 1);
+ underlineMapSet.Insert("type", Text::Underline::DOUBLE);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+
+ application.SendNotification();
+ application.Render();
+
+ underlineMapGet = label.GetProperty<Property::Map>(TextLabel::Property::UNDERLINE);
+ DALI_TEST_EQUALS(underlineMapGet.Count(), underlineMapSet.Count(), TEST_LOCATION);
+ DALI_TEST_EQUALS(DaliTestCheckMaps(underlineMapGet, underlineMapSet), true, TEST_LOCATION);
+
+ underlineMapSet.Clear();
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::ENABLE, true);
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::COLOR, Color::GREEN);
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::HEIGHT, 2);
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::TYPE, Text::Underline::DOUBLE);
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::DASH_WIDTH, 2);
+ underlineMapSet.Insert(Toolkit::DevelText::Underline::Property::DASH_GAP, 1);
+
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+
+ application.SendNotification();
+ application.Render();
+
+ underlineMapGet = label.GetProperty<Property::Map>(TextLabel::Property::UNDERLINE);
+ DALI_TEST_EQUALS(underlineMapGet.Count(), underlineMapSet.Count(), TEST_LOCATION);
+ underlineIndicesConversionTable = {"enable", "color", "height", "type", "dashWidth", "dashGap"};
+ DALI_TEST_EQUALS(DaliTestCheckMaps(underlineMapGet, underlineMapSet, underlineIndicesConversionTable), true, TEST_LOCATION);
+
+ underlineMapSet.Clear();
+
+ underlineDisabledMapGet.Clear();
+ underlineDisabledMapGet.Insert("enable", false);
+ underlineDisabledMapGet.Insert("color", Color::GREEN);
+ underlineDisabledMapGet.Insert("height", 2);
+ underlineDisabledMapGet.Insert("type", Text::Underline::DOUBLE);
+ underlineDisabledMapGet.Insert("dashWidth", 2);
+ underlineDisabledMapGet.Insert("dashGap", 1);
+
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineDisabledMapGet);