Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f5647792
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看板
提交
f5647792
编写于
6月 18, 2022
作者:
C
chenzhuo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify release_3.1 fail tests
Signed-off-by:
N
chenzhuo
<
chenzhuo59@huawei.com
>
上级
c8d5c589
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
9 addition
and
92 deletion
+9
-92
ace/ace_ets_component_three/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
+5
-5
ace/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/loadingProgress.ets
.../entry/src/main/ets/MainAbility/pages/loadingProgress.ets
+3
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Text.ets
...ts_standard/entry/src/main/ets/MainAbility/pages/Text.ets
+0
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
+1
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
+0
-84
未找到文件。
ace/ace_ets_component_three/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
浏览文件 @
f5647792
...
...
@@ -75,7 +75,7 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button2');
let obj = JSON.parse(strJson);
console.info("[testButton03] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.fontSize).assertEqual('20');
expect(obj.$attrs.fontSize).assertEqual('20
.00px
');
done();
});
...
...
@@ -137,7 +137,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton05] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('30');
expect(objNew.$attrs.fontSize).assertEqual('30
.00px
');
done();
});
...
...
@@ -189,7 +189,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton08] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('121212121');
expect(objNew.$attrs.fontSize).assertEqual('121212121
.00px
');
done();
});
...
...
@@ -199,7 +199,7 @@ export default function buttonJsunit() {
try {
var eventData = {
data: {
"fontSizeValue": "121212121
vaas
",
"fontSizeValue": "121212121",
}
}
var innerEvent = {
...
...
@@ -215,7 +215,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton09] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('121212121');
expect(objNew.$attrs.fontSize).assertEqual('121212121
.00px
');
done();
});
...
...
ace/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/loadingProgress.ets
浏览文件 @
f5647792
...
...
@@ -19,6 +19,7 @@ import events_emitter from '@ohos.emitter';
@Component
struct LoadingProgressExample {
@State color: color = Color.Blue
@State loadingHeight: string = '50px'
private stateChangCallBack = (eventData) => {
console.info("LoadingProgress page stateChangCallBack");
...
...
@@ -46,8 +47,9 @@ struct LoadingProgressExample {
.fontColor(0xCCCCCC)
.height(50)
.width('90%')
.key('LP')
LoadingProgress()
.key('LP')
.height(this.loadingHeight)
.color(Color.Black)
}.width('100%').margin({ top: 6 })
}
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Text.ets
浏览文件 @
f5647792
...
...
@@ -127,7 +127,6 @@ struct text_textcase {
.zIndex(this.zIndex)
.fontColor(this.fontColor)
.fontSize(15)
.minFontSize(15)
.maxFontSize(15)
.fontWeight(this.fontWeight)
.fontStyle(this.fontStyle)
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
浏览文件 @
f5647792
...
...
@@ -71,7 +71,7 @@ export default function buttonJsunit() {
expect(obj.$attrs.type).assertEqual('ButtonType.Circle')
expect(obj.$attrs.stateEffect).assertEqual('true')
expect(obj.$attrs.label).assertEqual('1.value')
expect(obj.$attrs.fontSize).assertEqual('12')
expect(obj.$attrs.fontSize).assertEqual('12
.00px
')
console.info('cd buttonInspectorByKey END');
done();
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
浏览文件 @
f5647792
...
...
@@ -65,54 +65,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text');
let obj = JSON.parse(strJson);
console.info("cd text component obj is: " + JSON.stringify(obj));
console.log("cd text type" + JSON.stringify(obj.$type));
console.log("cd text height" + JSON.stringify(obj.$attrs.height));
console.log("cd text width" + JSON.stringify(obj.$attrs.width));
console.log("cd text padding" + JSON.stringify(obj.$attrs.padding));
console.log("cd text constraintSize" + JSON.stringify(obj.$attrs.constraintSize));
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.00vp", "y": "50.00vp"
}));
console.log("cd text markAnchor1" + JSON.stringify({
"x": "50.00vp", "y": "50.00vp"
}));
console.log("cd text markAnchor type" + typeof (obj.$attrs.markAnchor));
console.log("cd text markAnchor" + JSON.stringify(obj.$attrs.markAnchor));
console.log("cd text offset" + JSON.stringify(obj.$attrs.offset));
console.log("cd text position" + JSON.stringify(obj.$attrs.position));
console.log("cd text flexGrow" + JSON.stringify(obj.$attrs.flexGrow));
console.log("cd text flexShrink" + JSON.stringify(obj.$attrs.flexShrink));
console.log("cd text alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text borderRadius" + JSON.stringify(obj.$attrs.borderRadius));
console.log("cd text borderWidth" + JSON.stringify(obj.$attrs.borderWidth));
console.log("cd text borderColor" + JSON.stringify(obj.$attrs.borderColor));
console.log("cd text backgroundColor" + JSON.stringify(obj.$attrs.backgroundColor));
console.log("cd text enabled" + JSON.stringify(obj.$attrs.enabled));
console.log("cd text zIndex" + JSON.stringify(obj.$attrs.zIndex));
console.log("cd text fontColor" + JSON.stringify(obj.$attrs.fontColor));
console.log("cd text visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text fontSize" + JSON.stringify(obj.$attrs.fontSize));
console.log("cd text minFontSize" + JSON.stringify(obj.$attrs.minFontSize));
console.log("cd text maxFontSize" + JSON.stringify(obj.$attrs.maxFontSize));
console.log("cd text fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text fontStyle" + JSON.stringify(obj.$attrs.fontStyle));
console.log("cd text fontFamily" + JSON.stringify(obj.$attrs.fontFamily));
console.log("cd text textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text lineHeight" + JSON.stringify(obj.$attrs.lineHeight));
console.log("cd text baselineOffset" + JSON.stringify(obj.$attrs.baselineOffset));
console.log("cd text maxLines" + JSON.stringify(obj.$attrs.maxLines));
console.log("cd text textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.Underline", color: "#FFFF0000"
})));
console.log("cd text direction" + JSON.stringify(obj.$attrs.direction));
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.00vp')
expect(obj.$attrs.padding).assertEqual('5.00vp')
...
...
@@ -166,23 +118,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text1');
let obj = JSON.parse(strJson);
console.info("cd text1 component obj is: " + JSON.stringify(obj));
console.log("cd text1 align" + JSON.stringify(obj.$attrs.align));
console.log("cd text1 alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text1 borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text1 enabled" + JSON.stringify(obj.$attrs.enabled));
console.log("cd text1 visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text1 fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text1 textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text1 textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text1 direction" + JSON.stringify(obj.$attrs.direction));
console.log("cd text1 textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text1 decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text1 decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.LineThrough", color: "#FFFF0000"
})));
console.log("cd text1 fontColor" + JSON.stringify(obj.$attrs.fontColor));
console.log("cd text padding" + JSON.stringify(obj.$attrs.padding));
console.log("cd text margin" + JSON.stringify(obj.$attrs.margin))
expect(obj.$attrs.direction).assertEqual("Direction.Ltr")
expect(obj.$attrs.align).assertEqual("Alignment.Start")
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.Start")
...
...
@@ -209,20 +144,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text2');
let obj = JSON.parse(strJson);
console.info("cd text2 component obj is: " + JSON.stringify(obj));
console.log("cd text2 align" + JSON.stringify(obj.$attrs.align));
console.log("cd text2 alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text2 borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text2 visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text2 fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text2 textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text2 textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text2 direction" + JSON.stringify(obj.$attrs.direction));
console.log("cd text2 textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text2 decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text2 decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.Noneh", color: "#FFFF0000"
})));
console.log("cd text2 fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$attrs.direction).assertEqual("Direction.Rtl")
expect(obj.$attrs.align).assertEqual("Alignment.TopEnd")
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.Center")
...
...
@@ -248,11 +169,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text3');
let obj = JSON.parse(strJson);
console.info("cd text3 component obj is: " + JSON.stringify(obj));
console.log("cd text3 align" + JSON.stringify(obj.$attrs.align));
console.log("cd text3 alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text3 fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text3 decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text3 fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$attrs.align).assertEqual("Alignment.Top")
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.End")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Lighter")
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录