Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9d2df564
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看板
提交
9d2df564
编写于
7月 28, 2023
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed
4ce86115
from
https://gitee.com/hk-js/xts_acts_stage/pulls/9582
fix the test case Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
ab683ac7
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
24 addition
and
34 deletion
+24
-34
arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/bindConver.ets
...nt_ui/entry/src/main/ets/MainAbility/pages/bindConver.ets
+11
-0
arkui/ace_ets_component_ui/entry/src/main/ets/test/ApiCommponentAddJsunit.test.ets
...i/entry/src/main/ets/test/ApiCommponentAddJsunit.test.ets
+13
-34
未找到文件。
arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/bindConver.ets
浏览文件 @
9d2df564
...
...
@@ -35,6 +35,13 @@ struct ModalTransitionExample {
@Builder myBuilder() {
Column() {
Button("sheetSize")
.margin(10)
.fontSize(20)
.onClick(()=>{
this.isShow2 = true;
}).bindSheet($$this.isShow, this.myBuilder(), {height: SheetSize.MEDIUM, dragBar: this.showDragBar, backgroundColor: Color.Green, onAppear: () => {console.log("BindSheet onAppear.")}, onDisappear: () => {console.log("BindSheet onDisappear.")}})
.bindSheet($$this.isShow, this.myBuilder(), {height: SheetSize.LARGE, dragBar: this.showDragBar, backgroundColor: Color.Green, onAppear: () => {console.log("BindSheet onAppear.")}, onDisappear: () => {console.log("BindSheet onDisappear.")}})
Button("transition modal 2")
.margin(10)
.fontSize(20)
...
...
@@ -48,6 +55,10 @@ struct ModalTransitionExample {
.onClick(()=>{
this.isShow = false;
})
Progress({ value: 100, total: 100,type: ProgressType.Capsule }).width(100).height(50)
.style({borderColor: Color.Blue, borderWidth: 1, content: 'Installing...',enableSmoothEffect:false,
font: {size: 13, style: FontStyle.Normal}, fontColor: Color.Gray,
enableScanEffect: false, showDefaultPercentage: false})
}
.width('100%')
.height('100%')
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/ApiCommponentAddJsunit.test.ets
浏览文件 @
9d2df564
...
...
@@ -186,17 +186,10 @@ export default function ApiCommponentAddJsunit() {
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
})
await CommonFunc.sleep(1000);
let driver = Driver.create();
let searchclick = await driver.findComponent(ON.id('searchAdd'));
await searchclick.click();
searchclick.longClick();
await CommonFunc.sleep(4000);
let textComponent3 = await driver.findComponent(ON.text('黏贴'));
await CommonFunc.sleep(500);
// wether if
let text = await textComponent3.getText();
console.info("[apiCommponentAddJsunit_0500] onScrollText: " + text);
expect(text).assertEqual('黏贴');
let strJson = getInspectorByKey('searchAdd');
let obj = JSON.parse(strJson);
console.info("[apiCommponentAddJsunit_0500'] component obj is: " + obj.$type);
expect(obj.$type).assertEqual('Search');
done();
});
...
...
@@ -242,17 +235,10 @@ export default function ApiCommponentAddJsunit() {
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
})
await CommonFunc.sleep(1000);
let driver = Driver.create();
let searchclick = await driver.findComponent(ON.id('textAreaAdd'));
await searchclick.click();
searchclick.longClick();
await CommonFunc.sleep(4000);
let textComponent3 = await driver.findComponent(ON.text('黏贴'));
await CommonFunc.sleep(100);
// wether if
let text = await textComponent3.getText();
console.info("[apiCommponentAddJsunit_0700] onScrollText: " + text);
expect(text).assertEqual('黏贴');
let strJson = getInspectorByKey('textAreaAdd');
let obj = JSON.parse(strJson);
console.info("[apiCommponentAddJsunit_0700'] component obj is: " + obj.$type);
expect(obj.$type).assertEqual('TextArea');
done();
});
...
...
@@ -272,19 +258,12 @@ export default function ApiCommponentAddJsunit() {
}).catch(err => {
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
})
await CommonFunc.sleep(1000);
let driver = Driver.create();
let searchclick = await driver.findComponent(ON.id('textInputAdd'));
await searchclick.click();
searchclick.longClick();
await CommonFunc.sleep(4000);
let textComponent3 = await driver.findComponent(ON.text('黏贴'));
await CommonFunc.sleep(100);
// wether if
let text = await textComponent3.getText();
console.info("[apiCommponentAddJsunit_0800] onScrollText: " + text);
expect(text).assertEqual('黏贴');
let strJson = getInspectorByKey('textInputAdd');
let obj = JSON.parse(strJson);
console.info("[apiCommponentAddJsunit_0800'] component obj is: " + obj.$type);
expect(obj.$type).assertEqual('TextInput');
done();
});
it('apiCommponentAddJsunit_0900', 0, async function (done) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录