未验证 提交 4cb6bedd 编写于 作者: O openharmony_ci 提交者: Gitee

!610 修改拼写错误

Merge pull request !610 from 郝烁/master
......@@ -267,7 +267,7 @@ public:
}
/**
* @brief Obtains the height of this image.
* @brief Obtains the height of this button.
*
* @return Returns the image height.
* @since 1.0
......@@ -281,7 +281,7 @@ public:
}
/**
* @brief Sets the width for this image.
* @brief Sets the width for this button.
*
* @param width Indicates the width to set.
* @since 1.0
......
......@@ -117,7 +117,7 @@ public:
* @since 1.0
* @version 1.0
*/
void SetLablePosition(int16_t x, int16_t y)
void SetLabelPosition(int16_t x, int16_t y)
{
offset_.x = x;
offset_.y = y;
......
......@@ -175,7 +175,7 @@ UIView* TestCaseListAdapter::GetView(UIView* inView, int16_t index)
item->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 24); // 24: means font size
item->SetViewIndex(index);
item->SetAlign(TEXT_ALIGNMENT_LEFT);
item->SetLablePosition(24, 0); // 24: lable x-coordinate
item->SetLabelPosition(24, 0); // 24: lable x-coordinate
item->SetImageSrc(TEST_RIGHT_ARROW, TEST_RIGHT_ARROW);
// 2: half of button height; 18: half px of image height
item->SetImagePosition(item->GetWidth() - TEXT_DISTANCE_TO_LEFT_SIDE, TESTCASE_BUTTON_HEIGHT / 2 - 18);
......
......@@ -144,7 +144,7 @@ void UITestApp::InitBackBtn()
backBtn_->Resize(163, 64); // 163: button width; 64: button height
backBtn_->SetText("Back");
backBtn_->SetViewId(UI_TEST_BACK_BUTTON_ID);
backBtn_->SetLablePosition(72, 0); // 72: button label x-coordinate
backBtn_->SetLabelPosition(72, 0); // 72: button label x-coordinate
backBtn_->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 24); // 24: means font size
backBtn_->SetImageSrc(TEST_BACK_LEFT_ARROW, TEST_BACK_LEFT_ARROW);
// 27: button Image x-coordinate; 18: half px of image height
......
......@@ -83,7 +83,7 @@ HWTEST_F(UILabelButtonTest, UILabelButtonSetText_001, TestSize.Level1)
}
/**
* @tc.name: UILabelButtonSetLablePosition_001
* @tc.desc: Verify SetLablePosition function.
* @tc.desc: Verify SetLabelPosition function.
* @tc.type: FUNC
* @tc.require: AR000EEMQ5
*/
......@@ -96,7 +96,7 @@ HWTEST_F(UILabelButtonTest, UILabelButtonSetLablePosition_001, TestSize.Level1)
const int16_t posX = 10;
const int16_t posY = 20;
labelBtn_->SetLablePosition(posX, posY);
labelBtn_->SetLabelPosition(posX, posY);
EXPECT_EQ(labelBtn_->GetLabelPosition().x, posX);
EXPECT_EQ(labelBtn_->GetLabelPosition().y, posY);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册