Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fd04c3d9
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,发现更多精彩内容 >>
提交
fd04c3d9
编写于
3月 09, 2023
作者:
W
wang-xupeng2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify fail testcases
Signed-off-by:
N
wang-xupeng2
<
wangxupeng2@huawei.com
>
上级
719f9941
变更
25
显示空白变更内容
内联
并排
Showing
25 changed file
with
60 addition
and
61 deletion
+60
-61
arkui/BUILD.gn
arkui/BUILD.gn
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/AppearJsunit.test.ets
...s_component/entry/src/main/ets/test/AppearJsunit.test.ets
+1
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/test/scroll.test.ets
...component_apilack/entry/src/main/ets/test/scroll.test.ets
+1
-1
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/alertDialog.test.ets
...ent_attrlack/entry/src/main/ets/test/alertDialog.test.ets
+2
-2
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/app.test.ets
...s_component_attrlack/entry/src/main/ets/test/app.test.ets
+1
-1
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/checkBoxGroup.test.ets
...t_attrlack/entry/src/main/ets/test/checkBoxGroup.test.ets
+1
-1
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets
...component_attrlack/entry/src/main/ets/test/units.test.ets
+1
-1
arkui/ace_ets_component_five/entry/src/main/ets/MainAbility/pages/ohosMatrix4.ets
...five/entry/src/main/ets/MainAbility/pages/ohosMatrix4.ets
+15
-14
arkui/ace_ets_component_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
...t_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
+1
-3
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/dragEvent.ets
...t_four/entry/src/main/ets/MainAbility/pages/dragEvent.ets
+1
-1
arkui/ace_ets_component_four/entry/src/main/ets/test/DragEventJsunit.test.ets
...ent_four/entry/src/main/ets/test/DragEventJsunit.test.ets
+5
-5
arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets
...mponent_four/entry/src/main/ets/test/ImageJsunit.test.ets
+2
-2
arkui/ace_ets_component_four/entry/src/main/ets/test/PlayModeJsunit.test.ets
...nent_four/entry/src/main/ets/test/PlayModeJsunit.test.ets
+1
-1
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/QrCode.ets
...ent_three/entry/src/main/ets/MainAbility/pages/QrCode.ets
+4
-4
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/timeStamp.ets
..._three/entry/src/main/ets/MainAbility/pages/timeStamp.ets
+1
-1
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
...onent_three/entry/src/main/ets/test/ButtonJsunit.test.ets
+3
-3
arkui/ace_ets_component_three/entry/src/main/ets/test/ScrollCodeJsunit.test.ets
...t_three/entry/src/main/ets/test/ScrollCodeJsunit.test.ets
+2
-2
arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets
...mponent_three/entry/src/main/ets/test/TextJsunit.test.ets
+2
-2
arkui/ace_ets_component_three/entry/src/main/ets/test/TimeStampJsunit.test.ets
...nt_three/entry/src/main/ets/test/TimeStampJsunit.test.ets
+1
-1
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets
...wo/entry/src/main/ets/MainAbility/pages/imageAnimator.ets
+1
-1
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets
...nt_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets
+1
-2
arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets
..._two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets
+4
-4
arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets
...nent_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets
+5
-5
arkui/ace_ets_layout_test/BUILD.gn
arkui/ace_ets_layout_test/BUILD.gn
+2
-2
arkui/ace_ets_layout_test/Test.json
arkui/ace_ets_layout_test/Test.json
+1
-1
未找到文件。
arkui/BUILD.gn
浏览文件 @
fd04c3d9
...
...
@@ -23,7 +23,7 @@ group("arkui") {
"ace_ets_component_two:ActsAceEtsComponentTwoTest",
"ace_ets_component_ui:ActsAceEtsComponentUITest",
"ace_ets_dev:ActsAceDevTest",
"ace_ets_layout_test:A
rkUIAc
tsLayoutTest",
"ace_ets_layout_test:A
ctsAceE
tsLayoutTest",
"ace_ets_standard:ActsAceEtsStTest",
"ace_ets_test:ActsAceEtsTest",
"ace_ets_third_test:ActsAceEtsThirdTest",
...
...
arkui/ace_ets_component/entry/src/main/ets/test/AppearJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -65,6 +65,7 @@ export default function appearJsunit() {
console.info("testAppear01 on appearEvent err : " + JSON.stringify(err));
}
console.info("testAppear01 click result is: " + JSON.stringify(sendEventByKey('appear', 10, "")));
await Utils.sleep(1000);
console.info('[testAppear01] END');
console.info('[testAppear02] START');
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/scroll.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -126,7 +126,7 @@ export default function scrollOnScrollBeginJsunit() {
console.info("[testscrollOnScrollBegin0005] component align strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Scroll');
expect(obj.$attrs.scrollBarWidth).assertEqual("30.00
px
");
expect(obj.$attrs.scrollBarWidth).assertEqual("30.00
vp
");
console.info("[testscrollOnScrollBegin0005] scrollBarWidth value :" + obj.$attrs.scrollBarWidth);
done();
});
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/alertDialog.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -63,7 +63,7 @@ export default function alertDialogCenterStartJsunit() {
var callback = (eventData) => {
console.info("testalertDialogCenterStart0001 get event data is: " + JSON.stringify(eventData));
expect(eventData.data.Result).assertEqual(true);
console.info('testalertDialogCenterStart00
1
1 END');
console.info('testalertDialogCenterStart00
0
1 END');
done();
}
console.info("testalertDialogCenterStart0001 click result is: " + JSON.stringify(sendEventByKey('CenterStartButton', 10, "")));
...
...
@@ -85,7 +85,7 @@ export default function alertDialogCenterStartJsunit() {
let measureOptions = {textContent : "alertDialog-CenterStart"};
let width = measure.measureText(measureOptions);
console.info("++++++++++++++++++++++" + width.toString());
expect(width > 0).assert
Fals
e();
expect(width > 0).assert
Tru
e();
done();
} catch (err) {
console.info("testMeasureText0001 err : " + JSON.stringify(err));
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/app.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -56,7 +56,7 @@ export default function appVersionCodeJsunit() {
}
var callback = (eventData) => {
console.info("testappVersionCode_0011 get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.Code).assertEqual(
"1"
);
expect(eventData.data.Code).assertEqual(
1000000
);
}
console.info("testappVersion click result is: " + JSON.stringify(sendEventByKey('versionCodeText', 10, "")));
events_emitter.on(innerEvent, callback);
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/checkBoxGroup.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -75,7 +75,7 @@ export default function checkBoxGroupPartJsunit() {
}
var callback = (eventData) => {
console.info("testcheckBoxGroup0001 get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.STATUS).assertEqual(
2
);
expect(eventData.data.STATUS).assertEqual(
0
);
done();
}
events_emitter.on(innerEvent, callback);
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -62,7 +62,7 @@ export default function unitsModuleNameJsunit() {
}
var callback = (eventData) => {
console.info("testunitsModuleName0001 get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.ModuleName).assert
Equal(true
);
expect(eventData.data.ModuleName).assert
False(
);
}
events_emitter.on(innerEvent, callback);
} catch (err) {
...
...
arkui/ace_ets_component_five/entry/src/main/ets/MainAbility/pages/ohosMatrix4.ets
浏览文件 @
fd04c3d9
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -20,36 +20,37 @@ import prompt from '@system.prompt'
@Entry
@Component
struct ohosMatrix4 {
@State rotateValue:
object
= {
@State rotateValue:
RotateOptions
= {
x: 1,
y: 1,
z: 1,
centerX:
'50%'
,
centerY:
'50%'
,
centerX:
7
,
centerY:
8
,
angle: 300
}
@State translateValue: object= { x: 100, y: 5 }
@State scaleValue: object= { x: 2, y: 0.5 }
@State transformValue: object= Matrix4.identity().translate({ x: 100, y: 100, z: 30 })
@State transformValue: object= Matrix4.identity().translate({ x: 100, y: 100, z: 30 })
@State transformValue
1
: object= Matrix4.identity().translate({ x: 100, y: 100, z: 30 })
@State matrix1: object= Matrix4.identity().transformPoint([100, 10])
@State matrix2:
objec
t = Matrix4.identity().translate({ x: 300 }).copy()
@State matrix3:
objec
t = Matrix4.identity().scale({ x: 3 }).copy()
@State matrix2:
Matrix4.Matrix4Transi
t = Matrix4.identity().translate({ x: 300 }).copy()
@State matrix3:
Matrix4.Matrix4Transi
t = Matrix4.identity().scale({ x: 3 }).copy()
@State matrix4: object = Matrix4.identity().rotate({x:1, y:1, z:2, angle:30})
@State matrix5: object = Matrix4.identity().scale({x:5, y:1, z:1, centerX:50, centerY:50})
@State matrix6: object = Matrix4.identity().translate({x:100, y:200, z:30})
@State matrix7: Matrix4.Matrix4Transit = Matrix4.identity().translate({ x: 300 }).combine(Matrix4.identity().scale({ x: 3 }));
@State onClickValue:boolean = false;
private stateChangCallBack = (eventData) => {
console.info("transFormExample page state change called:" + JSON.stringify(eventData));
if (eventData != null) {
console.info("eventData value is");
if (eventData.data.matrix2 != null && eventData.data.matrix3 != null) {
console.info("this.matrix2 value is" + Matrix4.identity()
.translate(eventData.data.matrix2)
.copy() + "2" + JSON.stringify(Matrix4.identity().translate(eventData.data.matrix2).copy()));
let matrixV = Matrix4.identity().translate(eventData.data.matrix2);
if (matrixV != null) {
this.matrix2 = Matrix4.identity().translate(eventData.data.matrix2).copy();
console.info("this.matrix3 value is");
this.matrix3 = Matrix4.identity().scale(eventData.data.matrix3).copy();
}
} else {
console.info("this.matrix value is not");
}
...
...
@@ -129,7 +130,7 @@ struct ohosMatrix4 {
}).backgroundColor(0x2788D9).key('rotate5')
Image('/images/bg.jpg')
.padding(5)
.transform(this.matrix
2.combine(this.matrix3)
)
.transform(this.matrix
7
)
.width("40%")
.height(100)
.margin({ top: 5 })
...
...
arkui/ace_ets_component_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -169,9 +169,7 @@ export default function ohosMatrix4Jsunit() {
let objNew = JSON.parse(strJsonNew);
console.info("[test_OhosMatrix4_006] component objNew is: " + JSON.stringify(objNew));
console.info("[test_OhosMatrix4_006] component transform is: " + JSON.stringify(objNew.$attrs.transform));
expect(JSON.stringify(objNew.$attrs.transform)).assertEqual('{"type":"matrix",' +
'"matrix":"0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,' +
'0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,"}');
expect(JSON.stringify(objNew.$attrs.transform)).assertEqual('{"type":"matrix","matrix":"3.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,900.000000,0.000000,0.000000,1.000000,"}');
done();
});
})
...
...
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/dragEvent.ets
浏览文件 @
fd04c3d9
...
...
@@ -156,7 +156,7 @@ struct DragExample {
try {
var backData = {
data: {
"ACTION":
'onDragMove onAction'
"ACTION":
"onDragMove onAction"
}
}
var backEvent = {
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/DragEventJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -86,8 +86,8 @@ export default function dragEventJsunit(){
await Utils.drag(downX, downY, upX, upY, 10)
let callback = (indexEvent) => {
console.info("dragEventTest_0200 get state result is: " + JSON.stringify(indexEvent));
expect(
indexEvent.data.pointX).assertNotEqual(Null
);
expect(
indexEvent.data.pointY).assertNotEqual(Null
);
expect(
Number.isNaN(indexEvent.data.pointX)).assertFalse(
);
expect(
Number.isNaN(indexEvent.data.pointY)).assertFalse(
);
}
let indexEvent = {
eventId: 87,
...
...
@@ -115,7 +115,7 @@ export default function dragEventJsunit(){
await Utils.drag(downX, downY, upX, upY, 10)
let callback = (indexEvent) => {
console.info("dragEventTest_0300 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.ACTION).assertEqual(
'onDragMove onAction'
);
expect(indexEvent.data.ACTION).assertEqual(
"onDragMove onAction"
);
}
let indexEvent = {
eventId: 88,
...
...
@@ -143,7 +143,7 @@ export default function dragEventJsunit(){
await Utils.drag(downX, downY, upX, upY, 10)
let callback = (indexEvent) => {
console.info("dragEventTest_0400 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.ACTION).assertEqual(
'onDragLeave onAction'
);
expect(indexEvent.data.ACTION).assertEqual(
"onDragLeave onAction"
);
}
let indexEvent = {
eventId: 89,
...
...
@@ -171,7 +171,7 @@ export default function dragEventJsunit(){
await Utils.drag(downX, downY, upX, upY, 10)
let callback = (indexEvent) => {
console.info("dragEventTest_0500 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.ACTION).assertEqual(
'onDrop onAction'
);
expect(indexEvent.data.ACTION).assertEqual(
"onDrop onAction"
);
}
let indexEvent = {
eventId: 90,
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -66,12 +66,12 @@ export default function imageJsunit() {
let obj = JSON.parse(strJson);
console.info("imageTest_0200 obj.$attrs.src is: " + obj.$attrs.src);
console.info("imageTest_0200 obj.obj.$type is: " + obj.$type);
var res = obj.$attrs.src.indexOf('
rawfile
/test.png');
var res = obj.$attrs.src.indexOf('
RAWFILE
/test.png');
console.info("imageTest_0200 result is: " + res);
var sres = obj.$attrs.src.slice(res, res + 16);
console.info("imageTest_0200 slice result is: " + sres);
expect(obj.$type).assertEqual('Image');
expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('
rawfile
/test.png');
expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('
RAWFILE
/test.png');
console.info('imageTest_0200 END');
done();
});
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/PlayModeJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -55,7 +55,7 @@ export default function playModeJsunit(){
}
let callback= (indexEvent) => {
console.info("playModeTest_0100 get state result is: " + JSON.stringify(indexEvent))
ex
cep
t(indexEvent.data.playMode).assertEqual(PlayMode.AlternateReverse)
ex
pec
t(indexEvent.data.playMode).assertEqual(PlayMode.AlternateReverse)
}
try {
events_emitter.on(indexEvent, callback);
...
...
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/QrCode.ets
浏览文件 @
fd04c3d9
...
...
@@ -28,9 +28,9 @@ struct QrCode {
var colorValue = eventData.data.color;
if (colorValue != null && colorValue.length != 0) {
this.qrCodeColor = colorValue;
console.info("qrCodeColor:" + qrCodeColor);
console.info("qrCodeColor:" +
this.
qrCodeColor);
} else {
console.info("qrCodeColor is null or empty " + qrCodeColor);
console.info("qrCodeColor is null or empty " +
this.
qrCodeColor);
}
} else {
console.info("qrCode page color not change called:" + JSON.stringify(eventData));
...
...
@@ -42,9 +42,9 @@ struct QrCode {
var backgroundColorValue = eventData.data.backgroundColor;
if (backgroundColorValue != null && backgroundColorValue.length != 0) {
this.qrCodeBackgroundColor = backgroundColorValue;
console.info("qrCodeBackgroundColor:" + qrCodeBackgroundColor);
console.info("qrCodeBackgroundColor:" +
this.
qrCodeBackgroundColor);
} else {
console.info("backgroundColorValue is null or empty " + qrCodeColor);
console.info("backgroundColorValue is null or empty " +
this.
qrCodeColor);
}
} else {
console.info("qrCode page backgroundColorValue not change called:" + JSON.stringify(eventData));
...
...
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/timeStamp.ets
浏览文件 @
fd04c3d9
...
...
@@ -25,7 +25,7 @@ struct ClickExample {
Button('Click').backgroundColor(0x2788D9)
.key('button')
.onClick((event: ClickEvent) => {
this.text = event.timestamp
this.text = event.timestamp
.toString()
console.info(this.text)
try {
var backData = {
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
fd04c3d9
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -332,7 +332,7 @@ export default function buttonJsunit() {
try {
var eventData = {
data: {
"buttonTypeValue":
qaq
,
"buttonTypeValue":
"qaq"
,
}
}
var innerEvent = {
...
...
@@ -403,7 +403,7 @@ export default function buttonJsunit() {
let callback = (indexEvent) => {
console.info("testButton15 get state result is: " + JSON.stringify(indexEvent))
console.info("testButton15 indexEvent.data.fontColorValue is: " + indexEvent.data.fontColorValue)
expect(indexEvent.data.fontColorValue).assertEqual(
'ab996'
)
expect(indexEvent.data.fontColorValue).assertEqual(
"ab996"
)
console.info('[testButton15] END');
done();
}
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/ScrollCodeJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -55,7 +55,7 @@ export default function scrollCodeJsunit() {
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Vertical');
expect(obj.$attrs.scrollBar).assertEqual('BarState.On');
expect(obj.$attrs.scrollBarColor).assertEqual('#FF0000FF');
expect(obj.$attrs.scrollBarWidth).assertEqual('30.00
px
');
expect(obj.$attrs.scrollBarWidth).assertEqual('30.00
vp
');
done();
});
...
...
@@ -159,7 +159,7 @@ export default function scrollCodeJsunit() {
let strJson = getInspectorByKey('ScrollCode');
let obj = JSON.parse(strJson);
console.info("[test_scrollCode_005] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.scrollBarWidth).assertEqual('40.00
px
');
expect(obj.$attrs.scrollBarWidth).assertEqual('40.00
vp
');
done();
});
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -64,12 +64,12 @@ export default function textJsunit() {
console.info("testText_0200 component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("testText_0200 component obj is: " + JSON.stringify(obj));
var res = obj.$attrs.src.indexOf('
rawfile
/test.png');
var res = obj.$attrs.src.indexOf('
RAWFILE
/test.png');
console.info("testText_0200 result is: " + res);
var sres = obj.$attrs.src.slice(res, res + 16);
console.info("testText_0200 slice result is: " + sres);
expect(obj.$type).assertEqual('Image');
expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('
rawfile
/test.png');
expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('
RAWFILE
/test.png');
console.info('testText_0200 END');
done();
});
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/TimeStampJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -50,7 +50,7 @@ export default function timeStampJsunit() {
await Utils.sleep(1500);
let callback = (indexEvent) => {
console.info("timeStampTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(i
ndexEvent.data.Text).assertNotEqual(null
);
expect(i
sNaN(indexEvent.data.Text)).assertFalse(
);
}
let indexEvent = {
eventId: 230,
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets
浏览文件 @
fd04c3d9
...
...
@@ -77,7 +77,7 @@ struct ImageAnimatorExample {
try {
var backData = {
data: {
"string":
'Repeat'
"string":
"Repeat"
}
}
var backEvent = {
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets
浏览文件 @
fd04c3d9
...
...
@@ -32,8 +32,7 @@ struct ScrollBarExample {
this.directionValue = directionObject.directionValue;
}
if (eventData.data.stateValue != null) {
let stateObject = JSON.parse(eventData.data.stateObject);
this.stateValue = stateObject.stateValue;
this.stateValue = eventData.data.stateValue;
}
}
}
...
...
arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets
浏览文件 @
fd04c3d9
...
...
@@ -49,10 +49,10 @@ export default function imageAnimatorJsunit(){
it('imageAnimatorTest_0100', 0, async function (done) {
console.info('imageAnimatorTest_0100 START');
await Utils.sleep(500);
await Utils.sleep(
1
500);
let callback = (indexEvent) => {
console.info("imageAnimatorTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.state).assertEqual(
1
);
console.info("imageAnimatorTest_0100 get state result is: " + JSON.stringify(indexEvent
.data.state
));
expect(indexEvent.data.state).assertEqual(
AnimationStatus.Running
);
done();
}
let indexEvent = {
...
...
@@ -163,7 +163,7 @@ export default function imageAnimatorJsunit(){
await Utils.sleep(1500);
let callback = (indexEvent) => {
console.info("imageAnimatorTest_0600 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.string).assertEqual('
r
epeat');
expect(indexEvent.data.string).assertEqual('
R
epeat');
}
let indexEvent = {
eventId: 114,
...
...
arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets
浏览文件 @
fd04c3d9
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -59,7 +59,7 @@ export default function scrollBarJsunit() {
it('testScrollBar002', 0, async function (done) {
console.info('[testScrollBar002] START');
let object = {
"directionValue":
ScrollBarDirection.Horizontal
"directionValue":
"ScrollBarDirection.Horizontal"
};
try {
var eventData = {
...
...
@@ -101,7 +101,7 @@ export default function scrollBarJsunit() {
try {
let eventData = {
data: {
"stateValue":
"BarState.On"
"stateValue":
BarState.On
}
}
let indexEvent = {
...
...
@@ -118,7 +118,7 @@ export default function scrollBarJsunit() {
console.info("[testScrollBar004] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testScrollBar004] state:" + obj.$attrs.state);
expect(obj.$attrs.state).assertEqual(
'BarState.Off'
);
expect(obj.$attrs.state).assertEqual(
"BarState.On"
);
done();
});
...
...
@@ -144,7 +144,7 @@ export default function scrollBarJsunit() {
console.info("[testScrollBar005] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testScrollBar005] state:" + obj.$attrs.state);
expect(obj.$attrs.state).assertEqual(
'BarState.Off'
);
expect(obj.$attrs.state).assertEqual(
"BarState.Auto"
);
done();
});
})
...
...
arkui/ace_ets_layout_test/BUILD.gn
浏览文件 @
fd04c3d9
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("A
rkUIAc
tsLayoutTest") {
ohos_js_hap_suite("A
ctsAceE
tsLayoutTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("ArkUIActsLayoutTest") {
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "A
rkUIAc
tsLayoutTest"
hap_name = "A
ctsAceE
tsLayoutTest"
}
ohos_app_scope("ace_ets_component_flex_app_profile") {
...
...
arkui/ace_ets_layout_test/Test.json
浏览文件 @
fd04c3d9
...
...
@@ -10,7 +10,7 @@
},
"kits"
:
[{
"test-file-name"
:
[
"A
rkUIAc
tsLayoutTest.hap"
"A
ctsAceE
tsLayoutTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录