提交 1f5439dc 编写于 作者: L liqiang

change testcase text description

Change-Id: If9fd594e9757e6bf56318070d097e5e576287efa
上级 50ef4fc3
......@@ -609,7 +609,7 @@ void UITestBorderMarginPadding::UIKit_UITestBorderMarginPadding_Test_015()
UIQrcode* qrcode = new UIQrcode();
qrcode->SetStyle(style_);
qrcode->Resize(60, 60); // 60: height
qrcode->SetQrcodeInfo("Hello\n 鸿蒙轻量级GUI");
qrcode->SetQrcodeInfo("Hello\n HarmonyOS Lite GUI");
listScroll_->Add(qrcode);
}
......
......@@ -276,7 +276,7 @@ void UITestFont::UIKitFontMultiLanguage001()
#else
label->SetFontId(F_ROBOTOCONDENSED_REGULAR_30_4);
#endif
label->SetText("Hello, 鸿蒙轻量级GUI");
label->SetText("Hello, HarmonyOS Lite GUI");
container_->Add(label);
positionY_ += LABEL_HEIGHT + GAP;
}
......@@ -305,7 +305,7 @@ void UITestFont::UIKitFontMultiLanguage002()
#else
label->SetFontId(F_ROBOTOCONDENSED_REGULAR_30_4);
#endif
label->SetText("Hello\n 鸿蒙轻量级GUI");
label->SetText("Hello\n HarmonyOS Lite GUI");
container_->Add(label);
positionY_ += LABEL_HEIGHT * 2 + GAP; // 2 : double
}
......
......@@ -98,7 +98,7 @@ void UITestLabel::UIKit_UILabel_Test_Display_001()
uiViewGroupFrame->SetStyle(STYLE_BORDER_RADIUS, VIEW_STYLE_BORDER_RADIUS);
uiViewGroupFrame->SetStyle(STYLE_BACKGROUND_OPA, 0);
uiLabel = new UILabel();
uiLabel->SetText("鸿蒙轻量级图形子系统");
uiLabel->SetText("HarmonyOS Lite 图形子系统");
uiLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 26); // 26: font size
uiLabel->SetPosition(0, 141, 280, 336); // 141: y-coordinate; 280: width; 336: height
uiViewGroupFrame->Add(uiLabel);
......@@ -234,14 +234,14 @@ bool UITestLabel::OnClick(UIView& view, const ClickEvent& event)
} else if (&view == labelBeyondBtn1_) {
uiLabel->Resize(288, 35); // 288: width; 35: height
uiLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, FONT_DEFAULT_SIZE);
uiLabel->SetText("鸿蒙轻量级图形子系统,鸿蒙轻量级图形子系统 ");
uiLabel->SetText("HarmonyOS Lite 图形子系统,HarmonyOS Lite 图形子系统 ");
uiLabel->SetLineBreakMode(UILabel::LINE_BREAK_CLIP);
} else if (&view == labelBeyondBtn2_) {
uiLabel->Resize(288, 35); // 288: width; 35: height
uiLabel->SetText("鸿蒙轻量级图形子系统,鸿蒙轻量级图形子系统 ");
uiLabel->SetText("HarmonyOS Lite 图形子系统,HarmonyOS Lite 图形子系统 ");
uiLabel->SetLineBreakMode(UILabel::LINE_BREAK_ELLIPSIS);
} else if (&view == labelBeyondBtn3_) {
uiLabel->SetText("鸿蒙轻量级图形子系统,鸿蒙轻量级图形子系统 ");
uiLabel->SetText("HarmonyOS Lite 图形子系统,HarmonyOS Lite 图形子系统 ");
uiLabel->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE);
} else {
ExpandClick(view, event);
......@@ -270,10 +270,10 @@ void UITestLabel::ExpandClick(UIView& view, const ClickEvent& event) const
} else if (&view == labelDirectionBtn2_) {
uiLabel->SetDirect(TEXT_DIRECT_RTL);
} else if (&view == labelSizeBtn1_) {
uiLabel->SetText("鸿蒙轻量级图形子系统,鸿蒙轻量级图形子系统 ");
uiLabel->SetText("HarmonyOS Lite 图形子系统,HarmonyOS Lite 图形子系统 ");
uiLabel->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
} else if (&view == labelSizeBtn2_) {
uiLabel->SetText("鸿蒙轻量级图形子系统,鸿蒙轻量级图形子系统 ");
uiLabel->SetText("HarmonyOS Lite 图形子系统,HarmonyOS Lite 图形子系统 ");
uiLabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP);
}
}
......
......@@ -75,7 +75,7 @@ void UITestQrcode::UIKitUIQrcodeTestDisplay001()
UIQrcode* qrcode = new UIQrcode();
qrcode->SetPosition(20, 30, 60, 60); // 20 x 30 y 150 width 60 height
const char* str = "Hello\n 鸿蒙轻量级GUI";
const char* str = "Hello\n HarmonyOS Lite GUI";
qrcode->SetQrcodeInfo(str);
group->Add(qrcode);
container_->Add(group);
......@@ -90,7 +90,7 @@ void UITestQrcode::UIKitUIQrcodeTestDisplay002()
UIQrcode* qrcode = new UIQrcode();
qrcode->SetPosition(20, 30); // 20 x 30 y
const char* str = "Hello\n 鸿蒙轻量级GUI";
const char* str = "Hello\n HarmonyOS Lite GUI";
qrcode->SetQrcodeInfo(str);
qrcode->SetWidth(120); // 120 width
qrcode->SetHeight(250); // 250 height
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册