提交 f340578a 编写于 作者: O openharmony_ci 提交者: Gitee

!265 修改lineSpace为lineHeight

Merge pull request !265 from wangtiantian/lineHeight
...@@ -253,8 +253,8 @@ HWTEST_F(StyleTest, Graphic_Style_Test_SetStyle_1800, Function | MediumTest | Le ...@@ -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) HWTEST_F(StyleTest, Graphic_Style_Test_SetStyle_1900, Function | MediumTest | Level0)
{ {
styleVar->SetStyle(STYLE_LINE_SPACE, 4); styleVar->SetStyle(STYLE_LINE_HEIGHT, 4);
EXPECT_EQ(styleVar->GetStyle(STYLE_LINE_SPACE), 4); EXPECT_EQ(styleVar->GetStyle(STYLE_LINE_HEIGHT), 4);
} }
/** /**
......
...@@ -116,7 +116,7 @@ HWTEST_F(UITextTest, Graphic_UITextTest_Test_GetEllipsisIndex_0700, Function | M ...@@ -116,7 +116,7 @@ HWTEST_F(UITextTest, Graphic_UITextTest_Test_GetEllipsisIndex_0700, Function | M
Style style; Style style;
style.letterSpace_ = 3; style.letterSpace_ = 3;
style.lineSpace_ = 4; style.lineHeight_ = 4;
EXPECT_NE(textVar->GetEllipsisIndex(rect, style), 0); EXPECT_NE(textVar->GetEllipsisIndex(rect, style), 0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册