Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
73a5af79
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看板
未验证
提交
73a5af79
编写于
8月 08, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 08, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9498 【Progress组件】补充平滑动效的xts
Merge pull request !9498 from sunjiakun/progress_smoothEffect
上级
34717db8
f64e3e2b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
862 addition
and
3 deletion
+862
-3
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/IndexSec.ets
...nent_progress/src/main/ets/TestAbility/pages/IndexSec.ets
+25
-3
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progressSec.ets
..._ets_component_progress/src/main/ets/test/progressSec.ets
+837
-0
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/IndexSec.ets
浏览文件 @
73a5af79
...
...
@@ -45,6 +45,7 @@ struct progressSecTest {
@State progress_capsule_content_string: string = '下载'
@State progress_capsule_enableScanEffect_boolean: boolean = false
@State progress_capsule_showDefaultPercentage_boolean: boolean = false
@State progress_capsule_enableSmoothEffect_boolean: boolean = false
@State progress_ring_strokeWidth_number: number = 4
@State progress_ring_strokeWidth_string: string = '4vp'
...
...
@@ -59,8 +60,14 @@ struct progressSecTest {
@State progress_ring_color_linear_null: LinearGradient = null
@State progress_ring_color_linear_undefined: LinearGradient = undefined
@State progress_ring_enableScanEffect_boolean: boolean = false
@State progress_ring_enableSmoothEffect_boolean: boolean = false
@State progress_linear_enableScanEffect_boolean: boolean = false
@State progress_linear_enableSmoothEffect_boolean: boolean = false
@State progress_scaleRing_enableSmoothEffect_boolean: boolean = false
@State progress_eclipse_enableSmoothEffect_boolean: boolean = false
private stateChangCallBack = (eventData) => {
console.info("progress page state change called:" + JSON.stringify(eventData));
...
...
@@ -88,6 +95,7 @@ struct progressSecTest {
this.progress_capsule_content_string = eventData.data.progress_capsule_content_string;
this.progress_capsule_enableScanEffect_boolean = eventData.data.progress_capsule_enableScanEffect_boolean;
this.progress_capsule_showDefaultPercentage_boolean = eventData.data.progress_capsule_showDefaultPercentage_boolean;
this.progress_capsule_enableSmoothEffect_boolean = eventData.data.progress_capsule_enableSmoothEffect_boolean;
this.progress_ring_strokeWidth_number = eventData.data.progress_ring_strokeWidth_number;
this.progress_ring_strokeWidth_string = eventData.data.progress_ring_strokeWidth_string;
...
...
@@ -102,8 +110,13 @@ struct progressSecTest {
this.progress_ring_color_linear_null = eventData.data.progress_ring_color_linear_null;
this.progress_ring_color_linear_undefined = eventData.data.progress_ring_color_linear_undefined;
this.progress_ring_enableScanEffect_boolean = eventData.data.progress_ring_enableScanEffect_boolean;
this.progress_ring_enableSmoothEffect_boolean = eventData.data.progress_ring_enableSmoothEffect_boolean;
this.progress_linear_enableScanEffect_boolean = eventData.data.progress_linear_enableScanEffect_boolean;
this.progress_linear_enableSmoothEffect_boolean = eventData.data.progress_linear_enableSmoothEffect_boolean;
this.progress_scaleRing_enableSmoothEffect_boolean = eventData.data.progress_scaleRing_enableSmoothEffect_boolean;
this.progress_eclipse_enableSmoothEffect_boolean = eventData.data.progress_eclipse_enableSmoothEffect_boolean;
}
messageManager:MessageManager = new MessageManager()
onPageShow() {
...
...
@@ -196,7 +209,8 @@ struct progressSecTest {
fontColor: this.progress_capsule_fontColor_number,
content: this.progress_capsule_content_string,
enableScanEffect: this.progress_capsule_enableScanEffect_boolean,
showDefaultPercentage: this.progress_capsule_showDefaultPercentage_boolean
showDefaultPercentage: this.progress_capsule_showDefaultPercentage_boolean,
enableSmoothEffect: this.progress_capsule_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.Capsule })
...
...
@@ -285,7 +299,8 @@ struct progressSecTest {
strokeWidth: this.progress_ring_strokeWidth_number,
shadow: this.progress_ring_shadow_bool,
status: this.progress_ring_status_progressStatus,
enableScanEffect: this.progress_ring_enableScanEffect_boolean
enableScanEffect: this.progress_ring_enableScanEffect_boolean,
enableSmoothEffect: this.progress_ring_enableSmoothEffect_boolean
})
.color(this.progress_ring_color_purity)
...
...
@@ -381,7 +396,8 @@ struct progressSecTest {
.key('progress_linear_color_number')
.color(this.progress_ring_color_purity)
.style({
enableScanEffect: this.progress_linear_enableScanEffect_boolean
enableScanEffect: this.progress_linear_enableScanEffect_boolean,
enableSmoothEffect: this.progress_linear_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.Linear })
...
...
@@ -414,6 +430,9 @@ struct progressSecTest {
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
.key('progress_eclipse_color_number')
.color(this.progress_ring_color_purity)
.style({
enableSmoothEffect: this.progress_eclipse_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
.key('progress_eclipse_color_linear_number')
...
...
@@ -445,6 +464,9 @@ struct progressSecTest {
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
.key('progress_scaleRing_color_number')
.color(this.progress_ring_color_purity)
.style({
enableSmoothEffect: this.progress_scaleRing_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
.key('progress_scaleRing_color_linear_number')
...
...
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progressSec.ets
浏览文件 @
73a5af79
...
...
@@ -67,6 +67,7 @@ export default function progressSecTest() {
let progress_capsule_content_string: string = '下载'
let progress_capsule_enableScanEffect_boolean: boolean = false
let progress_capsule_showDefaultPercentage_boolean: boolean = false
let progress_capsule_enableSmoothEffect_boolean: boolean = false
let progress_ring_strokeWidth_number: number = 4
let progress_ring_strokeWidth_string: string = '4vp'
...
...
@@ -81,8 +82,13 @@ export default function progressSecTest() {
let progress_ring_color_linear_null: LinearGradient = null
let progress_ring_color_linear_undefined: LinearGradient = undefined
let progress_ring_enableScanEffect_boolean: boolean = false
let progress_ring_enableSmoothEffect_boolean: boolean = false
let progress_linear_enableScanEffect_boolean: boolean = false
let progress_linear_enableSmoothEffect_boolean: boolean = false
let progress_scaleRing_enableSmoothEffect_boolean: boolean = false
let progress_eclipse_enableSmoothEffect_boolean: boolean = false
try {
var eventData = {
...
...
@@ -108,6 +114,7 @@ export default function progressSecTest() {
'progress_capsule_content_string' : progress_capsule_content_string,
'progress_capsule_enableScanEffect_boolean' : progress_capsule_enableScanEffect_boolean,
'progress_capsule_showDefaultPercentage_boolean' : progress_capsule_showDefaultPercentage_boolean,
'progress_capsule_enableSmoothEffect_boolean' : progress_capsule_enableSmoothEffect_boolean,
'progress_ring_strokeWidth_number' : progress_ring_strokeWidth_number,
'progress_ring_strokeWidth_string' : progress_ring_strokeWidth_string,
...
...
@@ -122,8 +129,13 @@ export default function progressSecTest() {
'progress_ring_color_linear_null' : progress_ring_color_linear_null,
'progress_ring_color_linear_undefined' : progress_ring_color_linear_undefined,
'progress_ring_enableScanEffect_boolean' : progress_ring_enableScanEffect_boolean,
'progress_ring_enableSmoothEffect_boolean' : progress_ring_enableSmoothEffect_boolean,
'progress_linear_enableScanEffect_boolean' : progress_linear_enableScanEffect_boolean,
'progress_linear_enableSmoothEffect_boolean' : progress_linear_enableSmoothEffect_boolean,
'progress_scaleRing_enableSmoothEffect_boolean' : progress_scaleRing_enableSmoothEffect_boolean,
'progress_eclipse_enableSmoothEffect_boolean' : progress_eclipse_enableSmoothEffect_boolean,
}
}
var innerEvent = {
...
...
@@ -5558,5 +5570,830 @@ export default function progressSecTest() {
console.info("[ArkUI_Stage_Progress_Linear_EnableScanEffect_0500] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100
* @tc.name Tests the ringStyle property of the progress ring component
* @tc.desc Get the default value of enableSmoothEffect
*/
it('ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100] start");
let newJson = getInspectorByKey('progress_ring_default');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100]: " + JSON.stringify(newJson));
let obj = JSON.parse(newJson);
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200
* @tc.name Tests the ringStyle property of the progress ring component
* @tc.desc Set the value of enableSmoothEffect as true
*/
it('ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200] start");
let newJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200]: " + JSON.stringify(newJson));
let progress_ring_enableSmoothEffect_boolean = true;
try {
var eventData = {
data: {
"progress_ring_enableSmoothEffect_boolean": progress_ring_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0200] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300
* @tc.name Tests the ringStyle property of the progress ring component
* @tc.desc Set the value of enableSmoothEffect as false
*/
it('ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300] start");
let newJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300]: " + JSON.stringify(newJson));
let progress_ring_enableSmoothEffect_boolean = false;
try {
var eventData = {
data: {
"progress_ring_enableSmoothEffect_boolean": progress_ring_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("false");
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0300] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400
* @tc.name Tests the ringStyle property of the progress ring component
* @tc.desc Set the value of enableSmoothEffect as null
*/
it('ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400] start");
let newJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400]: " + JSON.stringify(newJson));
let progress_ring_enableSmoothEffect_boolean = null;
try {
var eventData = {
data: {
"progress_ring_enableSmoothEffect_boolean": progress_ring_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0400] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500
* @tc.name Tests the ringStyle property of the progress ring component
* @tc.desc Set the value of enableSmoothEffect as undefined
*/
it('ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500] start");
let newJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500]: " + JSON.stringify(newJson));
let progress_ring_enableSmoothEffect_boolean = undefined;
try {
var eventData = {
data: {
"progress_ring_enableSmoothEffect_boolean": progress_ring_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_ring_number');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0500] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0100
* @tc.name Tests the linearStyle property of the progress linear component
* @tc.desc Get the default value of enableSmoothEffect
*/
it('ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0100', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0100] start");
let newJson = getInspectorByKey('progress_linear_color_default');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100]: " + JSON.stringify(newJson));
let obj = JSON.parse(newJson);
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0100]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0100] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200
* @tc.name Tests the linearStyle property of the progress linear component
* @tc.desc Set the value of enableSmoothEffect as true
*/
it('ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200] start");
let newJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200]: " + JSON.stringify(newJson));
let progress_linear_enableSmoothEffect_boolean = true;
try {
var eventData = {
data: {
"progress_linear_enableSmoothEffect_boolean": progress_linear_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0200] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300
* @tc.name Tests the linearStyle property of the progress linear component
* @tc.desc Set the value of enableSmoothEffect as false
*/
it('ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300] start");
let newJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300]: " + JSON.stringify(newJson));
let progress_linear_enableSmoothEffect_boolean = false;
try {
var eventData = {
data: {
"progress_linear_enableSmoothEffect_boolean": progress_linear_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("false");
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0300] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400
* @tc.name Tests the linearStyle property of the progress linear component
* @tc.desc Set the value of enableSmoothEffect as null
*/
it('ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400] start");
let newJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400]: " + JSON.stringify(newJson));
let progress_linear_enableSmoothEffect_boolean = null;
try {
var eventData = {
data: {
"progress_linear_enableSmoothEffect_boolean": progress_linear_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0400] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500
* @tc.name Tests the linearStyle property of the progress linear component
* @tc.desc Set the value of enableSmoothEffect as undefined
*/
it('ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500] start");
let newJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500]: " + JSON.stringify(newJson));
let progress_linear_enableSmoothEffect_boolean = undefined;
try {
var eventData = {
data: {
"progress_linear_enableSmoothEffect_boolean": progress_linear_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_linear_color_number');
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Linear_EnableSmoothEffect_0500] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100
* @tc.name Tests the capsuleStyle property of the progress capsule component
* @tc.desc Get the default value of enableSmoothEffect
*/
it('ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100] start");
let newJson = getInspectorByKey('progress_capsule_default');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100]: " + JSON.stringify(newJson));
let obj = JSON.parse(newJson);
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0100] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200
* @tc.name Tests the capsuleStyle property of the progress capsule component
* @tc.desc Set the value of enableSmoothEffect as true
*/
it('ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200] start");
let newJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200]: " + JSON.stringify(newJson));
let progress_capsule_enableSmoothEffect_boolean = true;
try {
var eventData = {
data: {
"progress_capsule_enableSmoothEffect_boolean": progress_capsule_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0200] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300
* @tc.name Tests the capsuleStyle property of the progress capsule component
* @tc.desc Set the value of enableSmoothEffect as false
*/
it('ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300] start");
let newJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300]: " + JSON.stringify(newJson));
let progress_capsule_enableSmoothEffect_boolean = false;
try {
var eventData = {
data: {
"progress_capsule_enableSmoothEffect_boolean": progress_capsule_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("false");
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0300] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400
* @tc.name Tests the capsuleStyle property of the progress capsule component
* @tc.desc Set the value of enableSmoothEffect as null
*/
it('ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400] start");
let newJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400]: " + JSON.stringify(newJson));
let progress_capsule_enableSmoothEffect_boolean = null;
try {
var eventData = {
data: {
"progress_capsule_enableSmoothEffect_boolean": progress_capsule_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0400] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500
* @tc.name Tests the capsuleStyle property of the progress capsule component
* @tc.desc Set the value of enableSmoothEffect as undefined
*/
it('ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500] start");
let newJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500]: " + JSON.stringify(newJson));
let progress_capsule_enableSmoothEffect_boolean = undefined;
try {
var eventData = {
data: {
"progress_capsule_enableSmoothEffect_boolean": progress_capsule_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_capsule_number');
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Capsule_EnableSmoothEffect_0500] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0100
* @tc.name Tests the scaleRingStyle property of the progress scaleRing component
* @tc.desc Get the default value of enableSmoothEffect
*/
it('ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0100', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0100] start");
let newJson = getInspectorByKey('progress_scaleRing_color_default');
console.info("[ArkUI_Stage_Progress_Ring_EnableSmoothEffect_0100]: " + JSON.stringify(newJson));
let obj = JSON.parse(newJson);
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0100]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0100] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200
* @tc.name Tests the scaleRingStyle property of the progress scaleRing component
* @tc.desc Set the value of enableSmoothEffect as true
*/
it('ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200] start");
let newJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200]: " + JSON.stringify(newJson));
let progress_scaleRing_enableSmoothEffect_boolean = true;
try {
var eventData = {
data: {
"progress_scaleRing_enableSmoothEffect_boolean": progress_scaleRing_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0200] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300
* @tc.name Tests the scaleRingStyle property of the progress scaleRing component
* @tc.desc Set the value of enableSmoothEffect as false
*/
it('ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300] start");
let newJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300]: " + JSON.stringify(newJson));
let progress_scaleRing_enableSmoothEffect_boolean = false;
try {
var eventData = {
data: {
"progress_scaleRing_enableSmoothEffect_boolean": progress_scaleRing_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("false");
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0300] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400
* @tc.name Tests the scaleRingStyle property of the progress scaleRing component
* @tc.desc Set the value of enableSmoothEffect as null
*/
it('ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400] start");
let newJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400]: " + JSON.stringify(newJson));
let progress_scaleRing_enableSmoothEffect_boolean = null;
try {
var eventData = {
data: {
"progress_scaleRing_enableSmoothEffect_boolean": progress_scaleRing_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0400] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500
* @tc.name Tests the scaleRingStyle property of the progress scaleRing component
* @tc.desc Set the value of enableSmoothEffect as undefined
*/
it('ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500] start");
let newJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500]: " + JSON.stringify(newJson));
let progress_scaleRing_enableSmoothEffect_boolean = undefined;
try {
var eventData = {
data: {
"progress_scaleRing_enableSmoothEffect_boolean": progress_scaleRing_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_scaleRing_color_number');
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_ScaleRing_EnableSmoothEffect_0500] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100
* @tc.name Tests the eclipseStyle property of the progress eclipse component
* @tc.desc Get the default value of enableSmoothEffect
*/
it('ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100] start");
let newJson = getInspectorByKey('progress_eclipse_color_default');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100]: " + JSON.stringify(newJson));
let obj = JSON.parse(newJson);
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0100] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200
* @tc.name Tests the eclipseStyle property of the progress eclipse component
* @tc.desc Set the value of enableSmoothEffect as true
*/
it('ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200] start");
let newJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200]: " + JSON.stringify(newJson));
let progress_eclipse_enableSmoothEffect_boolean = true;
try {
var eventData = {
data: {
"progress_eclipse_enableSmoothEffect_boolean": progress_eclipse_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0200] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300
* @tc.name Tests the eclipseStyle property of the progress eclipse component
* @tc.desc Set the value of enableSmoothEffect as false
*/
it('ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300] start");
let newJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300]: " + JSON.stringify(newJson));
let progress_eclipse_enableSmoothEffect_boolean = false;
try {
var eventData = {
data: {
"progress_eclipse_enableSmoothEffect_boolean": progress_eclipse_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("false");
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0300] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400
* @tc.name Tests the eclipseStyle property of the progress eclipse component
* @tc.desc Set the value of enableSmoothEffect as null
*/
it('ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400] start");
let newJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400]: " + JSON.stringify(newJson));
let progress_eclipse_enableSmoothEffect_boolean = null;
try {
var eventData = {
data: {
"progress_eclipse_enableSmoothEffect_boolean": progress_eclipse_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0400] end");
done();
});
/**
* @tc.number ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500
* @tc.name Tests the eclipseStyle property of the progress eclipse component
* @tc.desc Set the value of enableSmoothEffect as undefined
*/
it('ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500', 0, async function (done) {
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500] start");
let newJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500]: " + JSON.stringify(newJson));
let progress_eclipse_enableSmoothEffect_boolean = undefined;
try {
var eventData = {
data: {
"progress_eclipse_enableSmoothEffect_boolean": progress_eclipse_enableSmoothEffect_boolean
}
}
var innerEvent = {
eventId: 183,
priority: events_emitter.EventPriority.LOW
}
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJson = getInspectorByKey('progress_eclipse_color_number');
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500]: " + JSON.stringify(obj.$attrs.enableSmoothEffect));
expect(obj.$attrs.enableSmoothEffect).assertEqual("true");
console.info("[ArkUI_Stage_Progress_Eclipse_EnableSmoothEffect_0500] end");
done();
});
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录