Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9cf2ee07
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看板
提交
9cf2ee07
编写于
3月 13, 2023
作者:
C
chengxingzhen
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts-form增加html配置
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
6a1cf8dd
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
247 addition
and
3 deletion
+247
-3
ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets
...ctsrequestdialog/entry/src/main/ets/test/Ability.test.ets
+65
-3
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationB/entry/src/main/js/widget/pages/index/index.css
...plicationB/entry/src/main/js/widget/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationB/entry/src/main/js/widget/pages/index/index.hml
...plicationB/entry/src/main/js/widget/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationC/entry/src/main/js/widget/pages/index/index.css
...plicationC/entry/src/main/js/widget/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationC/entry/src/main/js/widget/pages/index/index.hml
...plicationC/entry/src/main/js/widget/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationD/entry/src/main/js/widget/pages/index/index.css
...plicationD/entry/src/main/js/widget/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationD/entry/src/main/js/widget/pages/index/index.hml
...plicationD/entry/src/main/js/widget/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationE/entry/src/main/js/widget/pages/index/index.css
...plicationE/entry/src/main/js/widget/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationE/entry/src/main/js/widget/pages/index/index.hml
...plicationE/entry/src/main/js/widget/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationF/entry/src/main/js/Form_Js001/pages/index/index.css
...ationF/entry/src/main/js/Form_Js001/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationF/entry/src/main/js/Form_Js001/pages/index/index.hml
...ationF/entry/src/main/js/Form_Js001/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationG/entry/src/main/js/Form_Js001/pages/index/index.css
...ationG/entry/src/main/js/Form_Js001/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationG/entry/src/main/js/Form_Js001/pages/index/index.hml
...ationG/entry/src/main/js/Form_Js001/pages/index/index.hml
+7
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationH/entry/src/main/js/widget/pages/index/index.css
...plicationH/entry/src/main/js/widget/pages/index/index.css
+19
-0
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationH/entry/src/main/js/widget/pages/index/index.hml
...plicationH/entry/src/main/js/widget/pages/index/index.hml
+7
-0
未找到文件。
ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
9cf2ee07
...
...
@@ -32,7 +32,7 @@ export default function abilityTest() {
/*
* @tc.number: ACTS_requestDialog_0100
* @tc.name: Start Recent Ability with no
permission
.
* @tc.name: Start Recent Ability with no
callback
.
* @tc.desc: reguest dialog service
*/
it
(
'ACTS_requestDialog_0100'
,
0
,
async
function
(
done
)
{
...
...
@@ -66,11 +66,11 @@ export default function abilityTest() {
subscriber
=
data
;
commonEvent
.
subscribe
(
subscriber
,
subscribeCallBack
);
try
{
await
globalThis
.
abilityContext
.
requestDialogService
(
globalThis
.
abilityContext
.
requestDialogService
(
{
bundleName
:
'com.acts.example.requestdialog'
,
abilityName
:
'com.acts.example.requestdialog.MainAbility2'
,
}
)
.
then
(
(
data
)
=>
{
}
,
(
data
)
=>
{
console
.
info
(
"====>ACTS_requestDialog_0100 request end + data:"
+
JSON
.
stringify
(
data
));
resultCode
=
data
.
result
;
})
...
...
@@ -91,5 +91,67 @@ export default function abilityTest() {
id
=
setTimeout
(
timeout
,
CASE_TIMEOUT
);
console
.
log
(
'Start ACTS_requestDialog_0100 timer id : '
+
id
);
})
/*
* @tc.number: ACTS_requestDialog_0200
* @tc.name: Start Recent Ability with no permission.
* @tc.desc: reguest dialog service
*/
it
(
'ACTS_requestDialog_0200'
,
0
,
async
function
(
done
)
{
console
.
log
(
'ACTS_requestDialog_0200====<begin'
);
var
subscriber
;
let
id
;
let
resultCode
;
async
function
subscribeCallBack
(
err
,
data
)
{
console
.
info
(
"====>ACTS_requestDialog_0200 Subscribe CallBack data:====>"
+
JSON
.
stringify
(
data
));
async
function
processInfoCheck
(
data
)
{
console
.
info
(
'====> ACTS_requestDialog_0200 processInfoCheck=====>'
);
expect
(
globalThis
.
requestDialogSuccess
)
.
assertTrue
();
expect
(
globalThis
.
validRequestInfo
)
.
assertTrue
();
expect
(
globalThis
.
validRequestCallback
)
.
assertTrue
();
commonEvent
.
unsubscribe
(
subscriber
,
unSubscribeCallback
);
done
();
}
if
(
data
.
event
==
"ACTS_REQUEST_DIALOG_EVENT1"
)
{
console
.
info
(
'====> ACTS_requestDialog_0200 ACTS_StartAbility_CommonEvent1 success=====>'
);
await
sleep
(
500
);
processInfoCheck
(
data
);
}
}
commonEvent
.
createSubscriber
(
subscriberInfo
)
.
then
(
async
(
data
)
=>
{
console
.
info
(
"====>ACTS_requestDialog_0200 Create Subscriber====>"
);
subscriber
=
data
;
commonEvent
.
subscribe
(
subscriber
,
subscribeCallBack
);
try
{
await
globalThis
.
abilityContext
.
requestDialogService
(
{
bundleName
:
'com.acts.example.requestdialog'
,
abilityName
:
'com.acts.example.requestdialog.MainAbility2'
,
})
.
then
((
data
)
=>
{
console
.
info
(
"====>ACTS_requestDialog_0200 request end + data:"
+
JSON
.
stringify
(
data
));
resultCode
=
data
.
result
;
})
}
catch
(
paramError
)
{
console
.
info
(
"====>ACTS_requestDialog_0200 requestDialogSerivce paramError====>"
);
}
})
function
unSubscribeCallback
()
{
console
.
info
(
"====>UnSubscribe0200 CallBack====>"
);
}
function
timeout
()
{
console
.
log
(
'ACTS_requestDialog_0200 timeout.'
);
done
();
}
id
=
setTimeout
(
timeout
,
CASE_TIMEOUT
);
console
.
log
(
'Start ACTS_requestDialog_0200 timer id : '
+
id
);
})
})
}
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationB/entry/src/main/js/widget/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationB/entry/src/main/js/widget/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationC/entry/src/main/js/widget/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationC/entry/src/main/js/widget/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationD/entry/src/main/js/widget/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationD/entry/src/main/js/widget/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationE/entry/src/main/js/widget/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationE/entry/src/main/js/widget/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationF/entry/src/main/js/Form_Js001/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationF/entry/src/main/js/Form_Js001/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationG/entry/src/main/js/Form_Js001/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationG/entry/src/main/js/Form_Js001/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationH/entry/src/main/js/widget/pages/index/index.css
0 → 100644
浏览文件 @
9cf2ee07
#wrapper
{
flex-direction
:
column
;
}
#div1
{
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
white
;
}
#text1
{
height
:
45px
;
width
:
150px
;
font-size
:
16px
;
text-align
:
center
;
}
ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationH/entry/src/main/js/widget/pages/index/index.hml
0 → 100644
浏览文件 @
9cf2ee07
<div>
<div id="wrapper">
<div id="div1">
<text id="text1">{{title}}</text>
</div>
</div>
</div>
\ No newline at end of file
鸿蒙社区
@harmonycommunity
mentioned in commit
abfd0d50
·
3月 23, 2023
mentioned in commit
abfd0d50
mentioned in commit abfd0d504c4adb346c97b27868cea353413369a7
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录