diff --git a/graphic_lite/ui/style_posix/src/style_test.cpp b/graphic_lite/ui/style_posix/src/style_test.cpp index 0de1994b564f4038ff5ffc5de3f8cc14518c66ab..022be6005394c051ac657af7c6a073f12d84bf10 100755 --- a/graphic_lite/ui/style_posix/src/style_test.cpp +++ b/graphic_lite/ui/style_posix/src/style_test.cpp @@ -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); } /** diff --git a/graphic_lite/ui/ui_text_posix/src/ui_text_test.cpp b/graphic_lite/ui/ui_text_posix/src/ui_text_test.cpp index 721bf1c654ea0c64b894e0fb1968ef134d1fc8eb..c0d02f651bc683347670621ae6df89ed7c5e36ca 100755 --- a/graphic_lite/ui/ui_text_posix/src/ui_text_test.cpp +++ b/graphic_lite/ui/ui_text_posix/src/ui_text_test.cpp @@ -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); }