+ DALI_TEST_CHECK(label.GetRendererCount() > 1u);
+
+ //DASHED
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", false);
+ underlineMapSet.Insert("color", Color::BLUE);
+ underlineMapSet.Insert("height", 0);
+ underlineMapSet.Insert("type", Text::Underline::DASHED);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+
+ application.GetScene().Add(label);
+
+ application.SendNotification();
+ application.Render();
+
+ // Whether the rendered text is greater than maxTextureSize
+ DALI_TEST_CHECK(label.GetCurrentProperty<Vector3>(Actor::Property::SIZE).height > maxTextureSize);
+
+ // Check if the number of renderers is greater than 1.
+ DALI_TEST_CHECK(label.GetRendererCount() > 1u);
+
+ //DOUBLE
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", false);
+ underlineMapSet.Insert("color", Color::BLUE);
+ underlineMapSet.Insert("height", 0);
+ underlineMapSet.Insert("type", Text::Underline::DOUBLE);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+
+ application.GetScene().Add(label);
+
+ application.SendNotification();
+ application.Render();
+
+ // Whether the rendered text is greater than maxTextureSize
+ DALI_TEST_CHECK(label.GetCurrentProperty<Vector3>(Actor::Property::SIZE).height > maxTextureSize);
+
+ // Check if the number of renderers is greater than 1.
+ DALI_TEST_CHECK(label.GetRendererCount() > 1u);
+
+ // Coverage test for case of layoutSize is bigger than maxTextureSize
+ float max_value = static_cast<float>(std::numeric_limits<uint16_t>::max());
+ label.SetProperty(Actor::Property::SIZE, Vector2(max_value, 30.0f));
+ application.SendNotification();
+ application.Render();
+
+
+ END_TEST;
+}
+
+int UtcDaliToolkitTextlabelStrikethroughExceedsWidthAndHeight(void)
+{
+ ToolkitTestApplication application;
+ tet_infoline(" UtcDaliToolkitTextlabelStrikethroughExceedsWidthAndHeight");
+
+ TextLabel label = TextLabel::New();
+ label.SetProperty(TextLabel::Property::TEXT, "Test");
+ label.SetProperty(TextLabel::Property::FONT_FAMILY, "DejaVu Sans");
+ //Exeeding BufferWidth
+ label.SetProperty(Actor::Property::SIZE, Vector2(200.f, 400.0f));
+ label.SetProperty(TextLabel::Property::HORIZONTAL_ALIGNMENT, HorizontalAlignment::RIGHT);
+ label.SetProperty(TextLabel::Property::POINT_SIZE, 200.f);
+
+ application.GetScene().Add(label);
+ application.SendNotification();
+ application.Render();
+
+ Property::Map strikethroughMapSet;
+ strikethroughMapSet.Clear();
+ strikethroughMapSet.Insert("enable", true);
+ strikethroughMapSet.Insert("color", Color::BLUE);
+ strikethroughMapSet.Insert("height", 2.0f);
+ label.SetProperty(TextLabel::Property::TEXT, "Test1");
+ label.SetProperty(DevelTextLabel::Property::STRIKETHROUGH, strikethroughMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+ application.GetScene().Add(label);
+ application.SendNotification();
+ application.Render();
+ // Check if the number of renderers is 1.
+ DALI_TEST_EQUALS(1, label.GetRendererCount(), TEST_LOCATION);
+
+ label = TextLabel::New();
+ label.SetProperty(TextLabel::Property::TEXT, "Test");
+ label.SetProperty(TextLabel::Property::FONT_FAMILY, "DejaVu Sans");
+
+ //Exeeding BufferHeight
+ label.SetProperty(Actor::Property::SIZE, Vector2(200.f, 100.0f));
+ label.SetProperty(TextLabel::Property::HORIZONTAL_ALIGNMENT, HorizontalAlignment::RIGHT);
+ label.SetProperty(TextLabel::Property::POINT_SIZE, 200.f);
+
+ application.GetScene().Add(label);
+ application.SendNotification();
+ application.Render();
+
+ strikethroughMapSet.Clear();
+ strikethroughMapSet.Insert("enable", true);
+ strikethroughMapSet.Insert("color", Color::BLUE);
+ strikethroughMapSet.Insert("height", 2.0f);
+ label.SetProperty(TextLabel::Property::TEXT, "Test2");
+ label.SetProperty(DevelTextLabel::Property::STRIKETHROUGH, strikethroughMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+ application.GetScene().Add(label);
+ application.SendNotification();
+ application.Render();
+ // Check if the number of renderers is 1.
+ DALI_TEST_EQUALS(1, label.GetRendererCount(), TEST_LOCATION);
+
+ END_TEST;
+}
+
+int UtcDaliToolkitTextlabelUnderlineExceedsWidth(void)
+{
+ ToolkitTestApplication application;
+ tet_infoline(" UtcDaliToolkitTextlabelUnderlineExceedsWidth");
+
+ TextLabel label = TextLabel::New();
+ label.SetProperty(TextLabel::Property::TEXT, "Test");
+ label.SetProperty(TextLabel::Property::FONT_FAMILY, "DejaVu Sans");
+ //Exeeding BufferWidth
+ label.SetProperty(Actor::Property::SIZE, Vector2(200.f, 400.0f));
+ label.SetProperty(TextLabel::Property::HORIZONTAL_ALIGNMENT, HorizontalAlignment::RIGHT);
+ label.SetProperty(TextLabel::Property::POINT_SIZE, 200.f);
+
+ application.GetScene().Add(label);
+ application.SendNotification();
+ application.Render();
+
+ Property::Map underlineMapSet;
+
+ //SOLID
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", true);
+ underlineMapSet.Insert("color", Color::BLUE);
+ underlineMapSet.Insert("height", 1);
+ underlineMapSet.Insert("type", Text::Underline::SOLID);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+
+ application.GetScene().Add(label);
+
+ application.SendNotification();
+ application.Render();
+
+ // Check if the number of renderers is 1.
+ DALI_TEST_EQUALS(1, label.GetRendererCount(), TEST_LOCATION);
+
+ //DASHED
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", true);
+ underlineMapSet.Insert("color", Color::BLUE);
+ underlineMapSet.Insert("height", 1);
+ underlineMapSet.Insert("type", Text::Underline::DASHED);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+
+ application.GetScene().Add(label);
+
+ application.SendNotification();
+ application.Render();
+
+ // Check if the number of renderers is 1.
+ DALI_TEST_EQUALS(1, label.GetRendererCount(), TEST_LOCATION);
+
+ //DOUBLE
+ underlineMapSet.Clear();
+ underlineMapSet.Insert("enable", true);
+ underlineMapSet.Insert("color", Color::BLUE);
+ underlineMapSet.Insert("height", 1);
+ underlineMapSet.Insert("type", Text::Underline::DOUBLE);
+ underlineMapSet.Insert("dashWidth", 2);
+ underlineMapSet.Insert("dashGap", 1);
+ label.SetProperty(TextLabel::Property::UNDERLINE, underlineMapSet);
+ label.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLUE);
+
+ application.GetScene().Add(label);
+
+ application.SendNotification();
+ application.Render();
+
+ // Check if the number of renderers is 1.
+ DALI_TEST_EQUALS(1, label.GetRendererCount(), TEST_LOCATION);