Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f684315e
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f684315e
编写于
2月 16, 2022
作者:
L
liu-xu01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ACEcommit
Signed-off-by:
N
liu-xu01
<
liuxu126@huawei.com
>
上级
cbf22139
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
46 addition
and
33 deletion
+46
-33
ace/ace_ets_component/entry/src/main/ets/MainAbility/test/EllipseJsunit.test.ets
...ntry/src/main/ets/MainAbility/test/EllipseJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
+1
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
+1
-0
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
...ry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
+1
-0
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
+3
-2
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
...try/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
+2
-2
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
...entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
+1
-0
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
+1
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
...entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
+2
-2
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
+1
-0
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
+10
-10
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets
...est/entry/src/main/ets/MainAbility/test/GridItem.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
...t/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
...try/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
...ry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
+3
-3
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
...st/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
...st/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
+1
-0
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
+1
-0
ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/TextAreaJsunit.test.ets
...try/src/main/ets/MainAbility/test/TextAreaJsunit.test.ets
+1
-1
ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/TextInputJsunit.test.ets
...ry/src/main/ets/MainAbility/test/TextInputJsunit.test.ets
+2
-2
ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js
...standard/src/main/js/default/test/basicabilityapi.test.js
+0
-1
未找到文件。
ace/ace_ets_component/entry/src/main/ets/MainAbility/test/EllipseJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -52,8 +52,8 @@ export default function ellipseJsunit() {
let strJson = getInspectorByKey('ellipse');
let obj = JSON.parse(strJson);
console.info("[testEllipse02] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.height).assertEqual('200.00
0000
px');
expect(obj.$attrs.width).assertEqual('200.00
0000
px');
expect(obj.$attrs.height).assertEqual('200.00px');
expect(obj.$attrs.width).assertEqual('200.00px');
console.info('testEllipse02 END');
done();
});
...
...
@@ -80,8 +80,8 @@ export default function ellipseJsunit() {
let strJson = getInspectorByKey('ellipse');
let obj = JSON.parse(strJson);
console.info("[testEllipse02] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.height).assertEqual('500.00
0000
px');
expect(obj.$attrs.width).assertEqual('500.00
0000
px');
expect(obj.$attrs.height).assertEqual('500.00px');
expect(obj.$attrs.width).assertEqual('500.00px');
console.info('testEllipse02 END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -79,8 +79,8 @@ export default function badgeJsunit() {
console.log("yr badge0 style.fontSize" + style.fontSize);
console.log("yr badge0 style.badgeSize" + style.badgeSize);
expect(style.color).assertEqual('#FFFFFFFF');
expect(style.fontSize).assertEqual('16.00
0000
fp');
expect(style.badgeSize).assertEqual('20.00
0000
fp');
expect(style.fontSize).assertEqual('16.00fp');
expect(style.badgeSize).assertEqual('20.00fp');
console.log("badge0 style : " + JSON.stringify(obj.$attrs.style))
console.info('testGetInspectorByKey END');
done();
...
...
@@ -101,8 +101,8 @@ export default function badgeJsunit() {
console.log("yr badge1 position-'BadgePosition.RightTop'" + JSON.stringify(obj.$attrs.position))
console.log("yr badge0 style.fontSize" + style.fontSize);
console.log("yr badge0 style.badgeSize" + style.badgeSize);
expect(style.fontSize).assertEqual('16.00
0000
fp');
expect(style.badgeSize).assertEqual('20.00
0000
fp');
expect(style.fontSize).assertEqual('16.00fp');
expect(style.badgeSize).assertEqual('20.00fp');
console.info('new Badge1 END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -68,7 +68,7 @@ export default function blankJsunit() {
console.log("cd blank min" + JSON.stringify(obj.$attrs.min));
console.log("cd blank color" + JSON.stringify(obj.$attrs.color));
expect(obj.$type).assertEqual('Blank')
expect(obj.$attrs.min).assertEqual('100.00
0000
vp')
expect(obj.$attrs.min).assertEqual('100.00vp')
console.info('cd BlankGetInspectorByKey END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function buttonJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Button state success " + JSON.stringify(pages));
if (!("Button" == pages.name)) {
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function datapanelJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get DataPanel state success " + JSON.stringify(pages));
if (!("DataPanel" == pages.name)) {
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function flexJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Flex state success " + JSON.stringify(pages));
if (!("Flex" == pages.name)) {
...
...
@@ -95,7 +96,7 @@ export default function flexJsunit() {
expect(obj.$attrs.constructor.wrap).assertEqual('FlexWrap.Wrap')
console.log("yr flex1 wrap-'FlexWrap.Wrap':" + JSON.stringify(obj.$attrs.constructor.wrap));
expect(obj.$attrs.ItemAlign.Start).assertEqual('ItemAlign.Start')
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.
ItemAlign.Start
));
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.
constructor.alignItems
));
expect(obj.$attrs.constructor.justifyContent).assertEqual('FlexAlign.Start');
console.log("yr flex1 justifyContent-'FlexAlign.Start':" + JSON.stringify(obj.$attrs.constructor.justifyContent));
expect(obj.$attrs.constructor.alignContent).assertEqual("FlexAlign.Center");
...
...
@@ -117,7 +118,7 @@ export default function flexJsunit() {
expect(obj.$attrs.constructor.direction).assertEqual('FlexDirection.RowReverse');
console.log("yr flex2 direction-'FlexDirection.RowReverse':" + JSON.stringify(obj.$attrs.constructor.direction));
expect(obj.$attrs.ItemAlign.Start).assertEqual('ItemAlign.Start')
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.
ItemAlign.Start
));
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.
constructor.alignItems
));
expect(obj.$attrs.constructor.justifyContent).assertEqual('FlexAlign.End');
console.log("yr flex2 justifyContent-'FlexAlign.End':" + JSON.stringify(obj.$attrs.constructor.justifyContent));
expect(obj.$attrs.constructor.alignContent).assertEqual("FlexAlign.End");
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -75,8 +75,8 @@ export default function progressJsunit() {
expect(obj.$attrs.value).assertEqual(3.000000.toFixed(6))
expect(obj.$type).assertEqual('Progress')
expect(obj.$attrs.color).assertEqual("#FF0000FF")
expect(obj.$attrs.width).assertEqual("50.00
0000
vp")
expect(obj.$attrs.height).assertEqual("70.00
0000
vp")
expect(obj.$attrs.width).assertEqual("50.00vp")
expect(obj.$attrs.height).assertEqual("70.00vp")
expect(obj.$attrs.total).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.style).assertEqual("ProgressStyle.Linear")
console.info('testGetProgressAttr END');
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function ratingJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Rating state success " + JSON.stringify(pages));
if (!("Rating" == pages.name)) {
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -72,7 +72,7 @@ export default function ScrollJsunit() {
expect(obj.$type).assertEqual('Scroll');
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Vertical')
expect(obj.$attrs.scrollBarColor).assertEqual('#FFFFC0CB')
expect(obj.$attrs.scrollBarWidth).assertEqual('20.00
0000
px')
expect(obj.$attrs.scrollBarWidth).assertEqual('20.00px')
console.info('cd ScorllGetInspectorByKey END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -88,7 +88,7 @@ export default function sliderJsunit() {
expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6))
expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6))
expect(obj.$attrs.constructor.step).assertEqual(1.000000.toFixed(6))
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.Out
s
et")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.Out
S
et")
console.info('testGetSliderAttr1 END');
done();
});
...
...
@@ -108,7 +108,7 @@ export default function sliderJsunit() {
console.info("slider1 style" + JSON.stringify(obj.$attrs.constructor.style))
expect(obj.$attrs.constructor.showTips).assertEqual("true")
expect(obj.$attrs.constructor.showSteps).assertEqual("true")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.In
s
et")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.In
S
et")
console.info('testGetSliderAttr2 END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function spanJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Span state success " + JSON.stringify(pages));
if (!("Span" == pages.name)) {
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -73,10 +73,10 @@ export default function textJsunit() {
console.log("cd text opacity" + JSON.stringify(obj.$attrs.opacity));
console.log("cd text align" + JSON.stringify(obj.$attrs.align));
console.log("cd text markAnchor type1" + typeof ({
"x": "50.00
0000vp", "y": "50.0000
00vp"
"x": "50.00
vp", "y": "50.
00vp"
}));
console.log("cd text markAnchor1" + JSON.stringify({
"x": "50.00
0000vp", "y": "50.0000
00vp"
"x": "50.00
vp", "y": "50.
00vp"
}));
console.log("cd text markAnchor type" + typeof (obj.$attrs.markAnchor));
console.log("cd text markAnchor" + JSON.stringify(obj.$attrs.markAnchor));
...
...
@@ -115,30 +115,30 @@ export default function textJsunit() {
console.log("cd text aspectRatio" + JSON.stringify(obj.$attrs.aspectRatio));
console.log("cd text fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$type).assertEqual('Text')
expect(obj.$attrs.width).assertEqual('200.00
0000
vp')
expect(obj.$attrs.padding).assertEqual('5.00
0000
vp')
expect(obj.$attrs.margin).assertEqual('10.00
0000
px')
expect(obj.$attrs.width).assertEqual('200.00vp')
expect(obj.$attrs.padding).assertEqual('5.00vp')
expect(obj.$attrs.margin).assertEqual('10.00px')
expect(obj.$attrs.opacity).assertEqual(1)
expect(obj.$attrs.align).assertEqual("Alignment.Center")
expect(JSON.stringify(obj.$attrs.markAnchor)).assertEqual(JSON.stringify({
"x": "50.00
0000vp", "y": "50.0000
00vp"
"x": "50.00
vp", "y": "50.
00vp"
}))
expect(JSON.stringify(obj.$attrs.offset)).assertEqual(JSON.stringify({
"x": "50.00
0000vp", "y": "50.0000
00vp"
"x": "50.00
vp", "y": "50.
00vp"
}))
expect(obj.$attrs.flexGrow).assertEqual(5)
expect(obj.$attrs.flexShrink).assertEqual(2)
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.Auto")
expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Dashed")
expect(obj.$attrs.borderRadius).assertEqual("10.00
0000
vp")
expect(obj.$attrs.borderWidth).assertEqual("4.00
0000
px")
expect(obj.$attrs.borderRadius).assertEqual("10.00vp")
expect(obj.$attrs.borderWidth).assertEqual("4.00px")
expect(obj.$attrs.borderColor).assertEqual("#FF0000FF")
expect(obj.$attrs.backgroundColor).assertEqual("#FFFFC0CB")
expect(obj.$attrs.enabled).assertEqual(false)
expect(obj.$attrs.zIndex).assertEqual(1)
expect(obj.$attrs.fontColor).assertEqual("#FF000000")
expect(obj.$attrs.visibility).assertEqual("Visibility.Visible")
expect(obj.$attrs.fontSize).assertEqual("15.00
0000
px")
expect(obj.$attrs.fontSize).assertEqual("15.00px")
expect(obj.$attrs.minFontSize).assertEqual("15")
expect(obj.$attrs.letterSpacing).assertEqual("15")
expect(obj.$attrs.maxFontSize).assertEqual("15")
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function gridItemJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get GridItem state success " + JSON.stringify(pages));
if (!("GridItem" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function gridJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Grid state success " + JSON.stringify(pages));
if (!("Grid" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -37,6 +37,7 @@ export default function linkJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Link state success " + JSON.stringify(pages));
if (!("Link" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function listItemJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get ListItem state success " + JSON.stringify(pages));
if (!("ListItem" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function listJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get List state success " + JSON.stringify(pages));
if (!("List" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function navigatorJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Navigator state success " + JSON.stringify(pages));
if (!("Navigator" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -77,9 +77,9 @@ export default function panelJsunit() {
expect(obj.$attrs.type).assertEqual('PanelType.Foldable')
expect(obj.$attrs.mode).assertEqual('PanelMode.Half')
expect(obj.$attrs.dragBar).assertEqual('true')
expect(obj.$attrs.fullHeight).assertEqual('500.00
0000
vp')
expect(obj.$attrs.halfHeight).assertEqual('250.00
0000
vp')
expect(obj.$attrs.miniHeight).assertEqual('100.00
0000
vp')
expect(obj.$attrs.fullHeight).assertEqual('500.00vp')
expect(obj.$attrs.halfHeight).assertEqual('250.00vp')
expect(obj.$attrs.miniHeight).assertEqual('100.00vp')
console.info('++++++++++++++++ Panel TestCase 1 End ++++++++++++++++');
done();
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -36,6 +36,7 @@ export default function rowJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Row state success " + JSON.stringify(pages));
if (!("Row" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -37,6 +37,7 @@ export default function tabJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Tab state success " + JSON.stringify(pages));
if (!("Tab" == pages.name)) {
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -37,6 +37,7 @@ export default function videoJsunit() {
}
try {
router.clear();
await sleep(1);
let pages = router.getState();
console.info("get Video state success " + JSON.stringify(pages));
if (!("Video" == pages.name)) {
...
...
ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/TextAreaJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -72,7 +72,7 @@ export default function textAreaJsunit() {
expect(obj.$attrs.placeholderColor).assertEqual('#FFC0C0C0')
expect(obj.$attrs.textAlign).assertEqual('TextAlign.Start')
expect(obj.$attrs.caretColor).assertEqual('#FF000000')
expect(obj.$attrs.fontSize).assertEqual('40.00
0000
fp')
expect(obj.$attrs.fontSize).assertEqual('40.00fp')
expect(obj.$attrs.fontWeight).assertEqual('FontWeight.Bold')
expect(obj.$attrs.fontColor).assertEqual('#FFFF0000')
expect(obj.$attrs.fontFamily).assertEqual('cursive')
...
...
ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/TextInputJsunit.test.ets
浏览文件 @
f684315e
...
...
@@ -86,8 +86,8 @@ export default function textInputJsunit() {
expect(obj.$attrs.fontWeight).assertEqual('FontWeight.Bold')
expect(obj.$attrs.fontFamily).assertEqual('cursive')
expect(obj.$attrs.fontStyle).assertEqual('FontStyle.Italic')
expect(obj.$attrs.fontSize).assertEqual('40.00
0000
fp')
expect(obj.$attrs.height).assertEqual('60.00
0000
vp')
expect(obj.$attrs.fontSize).assertEqual('40.00fp')
expect(obj.$attrs.height).assertEqual('60.00vp')
expect(obj.$attrs.placeholderFont).assertContain('FontStyle.Normal')
console.info('testTextInput010 End');
done();
...
...
ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js
浏览文件 @
f684315e
...
...
@@ -405,7 +405,6 @@ describe('basicabilityapi', function () {
console
.
info
(
"
[configuration.getLocale] countryOrRegion:
"
+
localeInfo
.
countryOrRegion
);
console
.
info
(
"
[configuration.getLocale] dir:
"
+
localeInfo
.
dir
);
expect
(
localeInfo
.
language
).
assertEqual
(
'
zh
'
);
expect
(
localeInfo
.
countryOrRegion
).
assertEqual
(
'
CN
'
);
expect
(
localeInfo
.
dir
).
assertEqual
(
'
ltr
'
);
console
.
info
(
'
testConfigurationGetLocale END
'
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录