Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6d07e4df
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,发现更多精彩内容 >>
提交
6d07e4df
编写于
8月 19, 2022
作者:
M
Mupceet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify test app bundleName
Signed-off-by:
N
Mupceet
<
laiguizhong@huawei.com
>
上级
178aa719
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
30 addition
and
30 deletion
+30
-30
barrierfree/accessibilityelement/AppScope/app.json
barrierfree/accessibilityelement/AppScope/app.json
+1
-1
barrierfree/accessibilityelement/Test.json
barrierfree/accessibilityelement/Test.json
+2
-2
barrierfree/accessibilityelement/entry/src/main/ets/AccessibilityExtAbility/ElementTest.ts
...entry/src/main/ets/AccessibilityExtAbility/ElementTest.ts
+2
-2
barrierfree/accessibilityelement/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...nt/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+1
-1
barrierfree/accessibilityelement/entry/src/main/module.json
barrierfree/accessibilityelement/entry/src/main/module.json
+1
-1
barrierfree/accessibilityevent/AppScope/app.json
barrierfree/accessibilityevent/AppScope/app.json
+1
-1
barrierfree/accessibilityevent/Test.json
barrierfree/accessibilityevent/Test.json
+2
-2
barrierfree/accessibilityevent/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...nt/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+1
-1
barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets
...t/entry/src/main/ets/test/AccessibilityEventTest.test.ets
+1
-1
barrierfree/accessibilityevent/entry/src/main/module.json
barrierfree/accessibilityevent/entry/src/main/module.json
+1
-1
barrierfree/accessibilityextension/AppScope/app.json
barrierfree/accessibilityextension/AppScope/app.json
+1
-1
barrierfree/accessibilityextension/Test.json
barrierfree/accessibilityextension/Test.json
+2
-2
barrierfree/accessibilityextension/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...on/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+1
-1
barrierfree/accessibilityextension/entry/src/main/module.json
...ierfree/accessibilityextension/entry/src/main/module.json
+1
-1
barrierfree/accessibilityextensioncontext/AppScope/app.json
barrierfree/accessibilityextensioncontext/AppScope/app.json
+1
-1
barrierfree/accessibilityextensioncontext/Test.json
barrierfree/accessibilityextensioncontext/Test.json
+2
-2
barrierfree/accessibilityextensioncontext/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...xt/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+1
-1
barrierfree/accessibilityextensioncontext/entry/src/main/module.json
.../accessibilityextensioncontext/entry/src/main/module.json
+1
-1
barrierfree/accessibilitygestureevent/AppScope/app.json
barrierfree/accessibilitygestureevent/AppScope/app.json
+1
-1
barrierfree/accessibilitygestureevent/Test.json
barrierfree/accessibilitygestureevent/Test.json
+2
-2
barrierfree/accessibilitygestureevent/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...nt/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+1
-1
barrierfree/accessibilitygestureevent/entry/src/main/module.json
...free/accessibilitygestureevent/entry/src/main/module.json
+1
-1
barrierfree/targetProject/aceTest/entry/src/main/ets/pages/index/index.ets
...tProject/aceTest/entry/src/main/ets/pages/index/index.ets
+2
-2
未找到文件。
barrierfree/accessibilityelement/AppScope/app.json
浏览文件 @
6d07e4df
{
"app"
:
{
"bundleName"
:
"com.example.
myapplication
"
,
"bundleName"
:
"com.example.
accessibilityxts
"
,
"vendor"
:
"huawei"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
...
...
barrierfree/accessibilityelement/Test.json
浏览文件 @
6d07e4df
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"600000"
,
"bundle-name"
:
"com.example.
myapplication
"
,
"bundle-name"
:
"com.example.
accessibilityxts
"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
70000
...
...
@@ -20,7 +20,7 @@
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.
myapplication
"
,
"bm uninstall -n com.example.
accessibilityxts
"
,
"bm uninstall -n com.example.acetest"
]
}
...
...
barrierfree/accessibilityelement/entry/src/main/ets/AccessibilityExtAbility/ElementTest.ts
浏览文件 @
6d07e4df
...
...
@@ -643,7 +643,7 @@ export class ElementTest {
console
.
info
(
'
ElementTest executeAttributeValuePromiseTriggerAction
'
+
caseName
+
'
start
'
);
let
event
=
new
accessibility
.
EventInfo
({});
event
.
type
=
'
click
'
;
event
.
bundleName
=
'
com.example.
myapplication
'
;
event
.
bundleName
=
'
com.example.
accessibilityxts
'
;
event
.
triggerAction
=
'
click
'
;
await
accessibility
.
sendEvent
(
event
);
console
.
info
(
'
ElementTest executeAttributeValuePromiseTriggerAction
'
+
caseName
+
'
sendEvent finish
'
);
...
...
@@ -914,7 +914,7 @@ export class ElementTest {
console
.
info
(
'
ElementTest executeAttributeValueCallbackTriggerAction
'
+
caseName
+
'
start
'
);
let
event
=
new
accessibility
.
EventInfo
({});
event
.
type
=
'
click
'
;
event
.
bundleName
=
'
com.example.
myapplication
'
;
event
.
bundleName
=
'
com.example.
accessibilityxts
'
;
event
.
triggerAction
=
'
click
'
;
await
accessibility
.
sendEvent
(
event
);
console
.
info
(
'
ElementTest executeAttributeValueCallbackTriggerAction
'
+
caseName
+
'
sendEvent finish
'
);
...
...
barrierfree/accessibilityelement/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
6d07e4df
...
...
@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.
myapplication
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a com.example.
accessibilityxts
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
...
...
barrierfree/accessibilityelement/entry/src/main/module.json
浏览文件 @
6d07e4df
...
...
@@ -13,7 +13,7 @@
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[{
"name"
:
"com.example.
myapplication
.MainAbility"
,
"name"
:
"com.example.
accessibilityxts
.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
...
...
barrierfree/accessibilityevent/AppScope/app.json
浏览文件 @
6d07e4df
{
"app"
:
{
"bundleName"
:
"com.example.
myapplication
"
,
"bundleName"
:
"com.example.
accessibilityxts
"
,
"vendor"
:
"huawei"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
...
...
barrierfree/accessibilityevent/Test.json
浏览文件 @
6d07e4df
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"180000"
,
"bundle-name"
:
"com.example.
myapplication
"
,
"bundle-name"
:
"com.example.
accessibilityxts
"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
70000
...
...
@@ -20,7 +20,7 @@
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.
myapplication
"
,
"bm uninstall -n com.example.
accessibilityxts
"
,
"bm uninstall -n com.example.acetest"
]
}
...
...
barrierfree/accessibilityevent/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
6d07e4df
...
...
@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.
myapplication
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a com.example.
accessibilityxts
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
...
...
barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets
浏览文件 @
6d07e4df
...
...
@@ -17,7 +17,7 @@ import accessibility from '@ohos.accessibility'
import commonEvent from '@ohos.commonEvent'
export default function abilityTest() {
let targetBundleName = 'com.example.
myapplication
';
let targetBundleName = 'com.example.
accessibilityxts
';
let subScriber = undefined;
let isConnected: boolean = false;
let events: Array<any> = [];
...
...
barrierfree/accessibilityevent/entry/src/main/module.json
浏览文件 @
6d07e4df
...
...
@@ -13,7 +13,7 @@
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[{
"name"
:
"com.example.
myapplication
.MainAbility"
,
"name"
:
"com.example.
accessibilityxts
.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
...
...
barrierfree/accessibilityextension/AppScope/app.json
浏览文件 @
6d07e4df
{
"app"
:
{
"bundleName"
:
"com.example.
myapplication
"
,
"bundleName"
:
"com.example.
accessibilityxts
"
,
"vendor"
:
"huawei"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
...
...
barrierfree/accessibilityextension/Test.json
浏览文件 @
6d07e4df
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"180000"
,
"bundle-name"
:
"com.example.
myapplication
"
,
"bundle-name"
:
"com.example.
accessibilityxts
"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
70000
...
...
@@ -20,7 +20,7 @@
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.
myapplication
"
,
"bm uninstall -n com.example.
accessibilityxts
"
,
"bm uninstall -n com.example.acetest"
]
}
...
...
barrierfree/accessibilityextension/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
6d07e4df
...
...
@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.
myapplication
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a com.example.
accessibilityxts
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
...
...
barrierfree/accessibilityextension/entry/src/main/module.json
浏览文件 @
6d07e4df
...
...
@@ -13,7 +13,7 @@
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[{
"name"
:
"com.example.
myapplication
.MainAbility"
,
"name"
:
"com.example.
accessibilityxts
.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
...
...
barrierfree/accessibilityextensioncontext/AppScope/app.json
浏览文件 @
6d07e4df
{
"app"
:
{
"bundleName"
:
"com.example.
myapplication
"
,
"bundleName"
:
"com.example.
accessibilityxts
"
,
"vendor"
:
"huawei"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
...
...
barrierfree/accessibilityextensioncontext/Test.json
浏览文件 @
6d07e4df
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"360000"
,
"bundle-name"
:
"com.example.
myapplication
"
,
"bundle-name"
:
"com.example.
accessibilityxts
"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
70000
...
...
@@ -20,7 +20,7 @@
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.
myapplication
"
,
"bm uninstall -n com.example.
accessibilityxts
"
,
"bm uninstall -n com.example.acetest"
]
}
...
...
barrierfree/accessibilityextensioncontext/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
6d07e4df
...
...
@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.
myapplication
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a com.example.
accessibilityxts
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
...
...
barrierfree/accessibilityextensioncontext/entry/src/main/module.json
浏览文件 @
6d07e4df
...
...
@@ -13,7 +13,7 @@
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[{
"name"
:
"com.example.
myapplication
.MainAbility"
,
"name"
:
"com.example.
accessibilityxts
.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
...
...
barrierfree/accessibilitygestureevent/AppScope/app.json
浏览文件 @
6d07e4df
{
"app"
:
{
"bundleName"
:
"com.example.
myapplication
"
,
"bundleName"
:
"com.example.
accessibilityxts
"
,
"vendor"
:
"huawei"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
...
...
barrierfree/accessibilitygestureevent/Test.json
浏览文件 @
6d07e4df
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"180000"
,
"bundle-name"
:
"com.example.
myapplication
"
,
"bundle-name"
:
"com.example.
accessibilityxts
"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"180000"
,
"testcase-timeout"
:
70000
...
...
@@ -20,7 +20,7 @@
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.
myapplication
"
,
"bm uninstall -n com.example.
accessibilityxts
"
,
"bm uninstall -n com.example.acetest"
]
}
...
...
barrierfree/accessibilitygestureevent/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
6d07e4df
...
...
@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.
myapplication
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a com.example.
accessibilityxts
.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
...
...
barrierfree/accessibilitygestureevent/entry/src/main/module.json
浏览文件 @
6d07e4df
...
...
@@ -13,7 +13,7 @@
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[{
"name"
:
"com.example.
myapplication
.MainAbility"
,
"name"
:
"com.example.
accessibilityxts
.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
...
...
barrierfree/targetProject/aceTest/entry/src/main/ets/pages/index/index.ets
浏览文件 @
6d07e4df
...
...
@@ -25,7 +25,7 @@ struct Index {
onPageShow() {
console.info(`TargetApp onPageShow start`);
config.enableAbility(
'com.example.
myapplication
/AccessibilityExtAbility',
'com.example.
accessibilityxts
/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info('TargetApp enableAbility finish');
...
...
@@ -59,7 +59,7 @@ struct Index {
return;
}
config.disableAbility("com.example.
myapplication
/AccessibilityExtAbility").then(() => {
config.disableAbility("com.example.
accessibilityxts
/AccessibilityExtAbility").then(() => {
console.info(`TargetApp disableAccAbility finish`);
this.isEnable = false;
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录