提交 15c08fe1 编写于 作者: W wangtiantian 提交者: Gitee

IssueNo:#I3NT0R

Description:support lineHeight
Sig:graphic
Feature or Bugfix:Feature
Binary Source:No
Signed-off-by: Nwangtiantian <wang_thinking@163.com>
上级 fadd2939
......@@ -253,8 +253,8 @@ HWTEST_F(StyleTest, Graphic_Style_Test_SetStyle_1800, Function | MediumTest | Le
*/
HWTEST_F(StyleTest, Graphic_Style_Test_SetStyle_1900, Function | MediumTest | Level0)
{
styleVar->SetStyle(STYLE_LINE_SPACE, 4);
EXPECT_EQ(styleVar->GetStyle(STYLE_LINE_SPACE), 4);
styleVar->SetStyle(STYLE_LINE_HEIGHT, 4);
EXPECT_EQ(styleVar->GetStyle(STYLE_LINE_HEIGHT), 4);
}
/**
......
......@@ -116,7 +116,7 @@ HWTEST_F(UITextTest, Graphic_UITextTest_Test_GetEllipsisIndex_0700, Function | M
Style style;
style.letterSpace_ = 3;
style.lineSpace_ = 4;
style.lineHeight_ = 4;
EXPECT_NE(textVar->GetEllipsisIndex(rect, style), 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册