Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4d1f477b
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看板
未验证
提交
4d1f477b
编写于
3月 23, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 23, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8167 【ACE子系统】新增接口用例
Merge pull request !8167 from hekun/OpenHarmony-3.2-Release
上级
4015fba6
977abe14
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
198 deletion
+2
-198
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/imageEffects.ets
...ent/entry/src/main/ets/MainAbility/pages/imageEffects.ets
+0
-17
arkui/ace_ets_component/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
...onent/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
+0
-179
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
...omponent/entry/src/main/ets/test/TextStyleJsunit.test.ets
+2
-2
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/imageEffects.ets
浏览文件 @
4d1f477b
...
...
@@ -22,7 +22,6 @@ struct ImageEffectsExample {
@State blurValue: string = 100;
@State backdropBlueValue: string= 30;
@State shadowValue: object= { radius: 10, color: Color.Gray, offsetX: 5, offsetY: 5 }
@State shadowStyleValue: ShadowStyle = ShadowStyle.OuterDefaultXS;
@State grayscaleValue: string= 10;
@State brightnessValue: string= 20;
@State saturateValue: string= 50;
...
...
@@ -38,9 +37,6 @@ struct ImageEffectsExample {
if (eventData.data.shadowValue != null) {
this.shadowValue = JSON.parse(eventData.data.shadowValue);
}
if (eventData.data.shadowStyleValue != null) {
this.shadowStyleValue = eventData.data.shadowStyleValue;
}
if (eventData.data.grayscaleValue != null) {
this.grayscaleValue = eventData.data.grayscaleValue;
}
...
...
@@ -111,12 +107,6 @@ struct ImageEffectsExample {
priority: events_emitter.EventPriority.LOW
}
events_emitter.on(stateChangeEvent8, this.stateChangCallBack);
var stateChangeEvent9 = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
events_emitter.on(stateChangeEvent9, this.stateChangCallBack);
}
build() {
...
...
@@ -148,13 +138,6 @@ struct ImageEffectsExample {
.shadow(this.shadowValue)
.key('centerRow3')
Text('shadow--枚举类型').fontSize(15).fontColor(0xCCCCCC).width('90%')
Image('/images/download.png')
.width('90%')
.height(40)
.shadow(this.shadowStyleValue)
.key('shadowDefaultShadow')
Text('grayscale').fontSize(15).fontColor(0xCCCCCC).width('90%')
Image('/images/download.png')
.width('90%')
...
...
arkui/ace_ets_component/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
浏览文件 @
4d1f477b
...
...
@@ -866,185 +866,6 @@ export default function imageEffectsJsunit() {
expect(objNew.$attrs.hueRotate).assertEqual(0);
done();
});
it('testImageEffects036', 0, async function (done) {
console.info('[testImageEffects036] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterDefaultXS
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects036] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects036] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects036] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#32000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("0.000000");
done();
});
it('testImageEffects037', 0, async function (done) {
console.info('[testImageEffects037] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterDefaultSM
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects037] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects037] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects037] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#0B000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("0.000000");
done();
});
it('testImageEffects038', 0, async function (done) {
console.info('[testImageEffects038] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterDefaultMD
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects038] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects038] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects038] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#28000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("60.000000");
done();
});
it('testImageEffects039', 0, async function (done) {
console.info('[testImageEffects039] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterDefaultLG
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects039] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects039] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects039] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#26000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("10.000000");
done();
});
it('testImageEffects040', 0, async function (done) {
console.info('[testImageEffects040] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterFloatingSM
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects040] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects040] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects040] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#15000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("50.000000");
done();
});
it('testImageEffects041', 0, async function (done) {
console.info('[testImageEffects041] START');
await Utils.sleep(1000);
try {
var eventData = {
data: {
"shadowStyleValue": ShadowStyle.OuterFloatingMD
}
}
var innerEvent = {
eventId: 20,
priority: events_emitter.EventPriority.LOW
}
console.info("[testImageEffects041] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[testImageEffects041] change component data error: " + err.message);
}
await Utils.sleep(2000);
let strJsonNew = getInspectorByKey('shadowDefaultShadow');
let objNew = JSON.parse(strJsonNew);
console.info("[testImageEffects041] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.shadow.radius).assertEqual("0.000000");
expect(objNew.$attrs.shadow.color).assertEqual("#31000000");
expect(objNew.$attrs.shadow.offsetX).assertEqual("0.000000");
expect(objNew.$attrs.shadow.offsetY).assertEqual("30.000000");
done();
});
})
}
...
...
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
浏览文件 @
4d1f477b
...
...
@@ -397,7 +397,7 @@ export default function textStyleJsunit() {
console.info("[testTextStyle016] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testTextStyle016] fontWeight: " + obj.$attrs.fontWeight);
expect(obj.$attrs.fontWeight).assertEqual('
FontWeight.
700');
expect(obj.$attrs.fontWeight).assertEqual('700');
done();
});
...
...
@@ -423,7 +423,7 @@ export default function textStyleJsunit() {
console.info("[testTextStyle017] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testTextStyle017] fontWeight: " + obj.$attrs.fontWeight);
expect(obj.$attrs.fontWeight).assertEqual('
FontWeight.
400');
expect(obj.$attrs.fontWeight).assertEqual('400');
done();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录