Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
acabb605
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,发现更多精彩内容 >>
未验证
提交
acabb605
编写于
8月 25, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 25, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5154 解决无障碍xts多应用后台资源冻结的问题
Merge pull request !5154 from Mupceet/release_xts_api_0824
上级
1d6c787e
296dcff0
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
126 addition
and
92 deletion
+126
-92
barrierfree/accessibilityelement/Test.json
barrierfree/accessibilityelement/Test.json
+0
-8
barrierfree/accessibilityelement/entry/src/main/ets/MainAbility/pages/index/index.ets
...ment/entry/src/main/ets/MainAbility/pages/index/index.ets
+21
-3
barrierfree/accessibilityelement/entry/src/main/ets/test/AccessibilityElement.test.ets
...ent/entry/src/main/ets/test/AccessibilityElement.test.ets
+28
-8
barrierfree/accessibilityevent/Test.json
barrierfree/accessibilityevent/Test.json
+0
-8
barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets
...t/entry/src/main/ets/test/AccessibilityEventTest.test.ets
+16
-11
barrierfree/accessibilityextension/Test.json
barrierfree/accessibilityextension/Test.json
+0
-8
barrierfree/accessibilityextension/entry/src/main/ets/test/AccessibilityExtension.test.ets
...n/entry/src/main/ets/test/AccessibilityExtension.test.ets
+11
-11
barrierfree/accessibilityextensioncontext/Test.json
barrierfree/accessibilityextensioncontext/Test.json
+0
-8
barrierfree/accessibilityextensioncontext/entry/src/main/ets/MainAbility/pages/index/index.ets
...text/entry/src/main/ets/MainAbility/pages/index/index.ets
+21
-3
barrierfree/accessibilityextensioncontext/entry/src/main/ets/test/AccessibilityExtensionContext.test.ets
.../src/main/ets/test/AccessibilityExtensionContext.test.ets
+15
-8
barrierfree/accessibilitygestureevent/Test.json
barrierfree/accessibilitygestureevent/Test.json
+0
-8
barrierfree/accessibilitygestureevent/entry/src/main/ets/test/AccessibilityGestureEventTest.test.ets
.../src/main/ets/test/AccessibilityGestureEventTest.test.ets
+14
-8
未找到文件。
barrierfree/accessibilityelement/Test.json
浏览文件 @
acabb605
...
...
@@ -11,18 +11,10 @@
"kits"
:
[
{
"test-file-name"
:
[
"aceTest.hap"
,
"ActsAccessibilityElementTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.accessibilityxts"
,
"bm uninstall -n com.example.acetest"
]
}
]
}
\ No newline at end of file
barrierfree/accessibilityelement/entry/src/main/ets/MainAbility/pages/index/index.ets
浏览文件 @
acabb605
...
...
@@ -17,7 +17,7 @@ import router from '@ohos.router';
@Entry
@Component
struct Index {
@State message: string = '
Hello World
';
@State message: string = '
accessibility element
';
aboutToAppear(){
console.info("start run testcase!!!!");
...
...
@@ -27,8 +27,26 @@ struct Index {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
.fontSize(50)
.fontWeight(FontWeight.Bold)
.margin({bottom: 10})
Row() {
Button('left')
Button('button1')
.margin({
left: 10,
right: 10
})
Button('right')
}
.margin({bottom: 10})
Button('button2')
.margin({bottom: 10})
Button('button3')
.margin({bottom: 10})
}
.width('100%')
}
...
...
barrierfree/accessibilityelement/entry/src/main/ets/test/AccessibilityElement.test.ets
浏览文件 @
acabb605
...
...
@@ -14,6 +14,7 @@
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config'
const passStr = 'pass';
const failStr = 'fail';
...
...
@@ -48,21 +49,40 @@ export default function abilityTest() {
}
});
await globalThis.abilityContext.startAbility({
deviceId: '',
bundleName: 'com.example.acetest',
abilityName: 'MainAbility',
action: 'action1',
parameters: {},
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityElementTest enableAbility: then`);
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility1',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityElementTest1 enableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityElementTest1 enableAbility has error: ${err.code}`);
});
setTimeout(done, 5000);
}).catch((err) => {
console.error(`AccessibilityElementTest enableAbility has error: ${err.code}`);
});
setTimeout(async () => {
done();
}, 5000);
})
afterAll(async function (done) {
console.info('AccessibilityElementTest: afterAll');
commonEvent.unsubscribe(subScriber);
isConnect = false;
done();
config.disableAbility('com.example.accessibilityxts/AccessibilityExtAbility').then(() => {
console.info(`AccessibilityElementTest disableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityElementTest disableAbility has error: ${err.code}`);
});
setTimeout(async () => {
done();
}, 5000);
})
beforeEach(async function (done) {
...
...
barrierfree/accessibilityevent/Test.json
浏览文件 @
acabb605
...
...
@@ -11,18 +11,10 @@
"kits"
:
[
{
"test-file-name"
:
[
"aceTest.hap"
,
"ActsAccessibilityEventTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.accessibilityxts"
,
"bm uninstall -n com.example.acetest"
]
}
]
}
\ No newline at end of file
barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets
浏览文件 @
acabb605
...
...
@@ -15,6 +15,7 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import accessibility from '@ohos.accessibility'
import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config'
export default function abilityTest() {
let targetBundleName = 'com.example.accessibilityxts';
...
...
@@ -37,23 +38,27 @@ export default function abilityTest() {
}
});
setTimeout(async () => {
await globalThis.abilityContext.startAbility({
deviceId: "",
bundleName: "com.example.acetest",
abilityName: "MainAbility",
action: "action1",
parameters: {},
});
done();
}, 5000);
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityEventTest enableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityEventTest enableAbility has error: ${err.code}`);
});
setTimeout(done, 5000);
})
afterAll(async function (done) {
console.info('AccessibilityEventTest: afterAll');
commonEvent.unsubscribe(subScriber);
isConnected = false;
done();
config.disableAbility('com.example.accessibilityxts/AccessibilityExtAbility').then(() => {
console.info(`AccessibilityEventTest disableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityEventTest disableAbility has error: ${err.code}`);
});
setTimeout(done, 5000);
})
beforeEach(async function (done) {
...
...
barrierfree/accessibilityextension/Test.json
浏览文件 @
acabb605
...
...
@@ -11,18 +11,10 @@
"kits"
:
[
{
"test-file-name"
:
[
"aceTest.hap"
,
"ActsAccessibilityExtensionTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.accessibilityxts"
,
"bm uninstall -n com.example.acetest"
]
}
]
}
\ No newline at end of file
barrierfree/accessibilityextension/entry/src/main/ets/test/AccessibilityExtension.test.ets
浏览文件 @
acabb605
...
...
@@ -14,6 +14,7 @@
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config'
export default function abilityTest() {
let isCalled: boolean = false;
...
...
@@ -57,12 +58,12 @@ export default function abilityTest() {
*/
it('AccessibilityExtensionTest_Connect_0100', 0, async function (done) {
console.info('AccessibilityExtensionTest_Connect_0100: start');
await globalThis.abilityContext.startAbility({
deviceId: "",
bundleName: "com.example.acetest",
abilityName: "MainAbility",
action: "action1",
parameters: {},
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityExtensionTest enableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityExtensionTest enableAbility has error: ${err.code}`);
});
setTimeout(() => {
...
...
@@ -82,11 +83,10 @@ export default function abilityTest() {
*/
it('AccessibilityExtensionTest_Disconnect_0200', 0, async function (done) {
console.info('AccessibilityExtensionTest_Disconnect_0200 start');
let commonEventPublishData = {
data: 'disable'
}
commonEvent.publish('disableExtAbility', commonEventPublishData, (err) => {
console.info("AccessibilityExtensionTest_Disconnect_0200 publish event: " + JSON.stringify(commonEventPublishData));
config.disableAbility('com.example.accessibilityxts/AccessibilityExtAbility').then(() => {
console.info(`AccessibilityExtensionTest disableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityExtensionTest disableAbility has error: ${err.code}`);
});
setTimeout(() => {
...
...
barrierfree/accessibilityextensioncontext/Test.json
浏览文件 @
acabb605
...
...
@@ -11,18 +11,10 @@
"kits"
:
[
{
"test-file-name"
:
[
"aceTest.hap"
,
"ActsAccessibilityExtensionContextTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.accessibilityxts"
,
"bm uninstall -n com.example.acetest"
]
}
]
}
barrierfree/accessibilityextensioncontext/entry/src/main/ets/MainAbility/pages/index/index.ets
浏览文件 @
acabb605
...
...
@@ -18,7 +18,7 @@ import file from '@system.file';
@Entry
@Component
struct Index {
@State message: string = '
Extension
Context';
@State message: string = '
accessibility Extension
Context';
aboutToAppear(){
console.info("start run testcase!!!!");
...
...
@@ -28,8 +28,26 @@ struct Index {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
.fontSize(50)
.fontWeight(FontWeight.Bold)
.margin({bottom: 10})
Row() {
Button('left')
Button('button1')
.margin({
left: 10,
right: 10
})
Button('right')
}
.margin({bottom: 10})
Button('button2')
.margin({bottom: 10})
Button('button3')
.margin({bottom: 10})
}
.width('100%')
}
...
...
barrierfree/accessibilityextensioncontext/entry/src/main/ets/test/AccessibilityExtensionContext.test.ets
浏览文件 @
acabb605
...
...
@@ -14,6 +14,7 @@
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config'
const passStr = 'pass';
const failStr = 'fail';
...
...
@@ -48,21 +49,27 @@ export default function abilityTest() {
}
});
await globalThis.abilityContext.startAbility({
deviceId: '',
bundleName: 'com.example.acetest',
abilityName: 'MainAbility',
action: 'action1',
parameters: {},
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityExtensionContextTest enableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityExtensionContextTest enableAbility has error: ${err.code}`);
});
setTimeout(done, 3000);
setTimeout(done, 5000);
})
afterAll(async function (done) {
console.info('AccessibilityElementTest: afterAll');
commonEvent.unsubscribe(subScriber);
isConnect = false;
done();
config.disableAbility('com.example.accessibilityxts/AccessibilityExtAbility').then(() => {
console.info(`AccessibilityExtensionContextTest disableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityExtensionContextTest disableAbility has error: ${err.code}`);
});
setTimeout(done, 5000);
})
beforeEach(async function (done) {
...
...
barrierfree/accessibilitygestureevent/Test.json
浏览文件 @
acabb605
...
...
@@ -11,18 +11,10 @@
"kits"
:
[
{
"test-file-name"
:
[
"aceTest.hap"
,
"ActsAccessibilityGestureEventTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"teardown-command"
:[
"bm uninstall -n com.example.accessibilityxts"
,
"bm uninstall -n com.example.acetest"
]
}
]
}
barrierfree/accessibilitygestureevent/entry/src/main/ets/test/AccessibilityGestureEventTest.test.ets
浏览文件 @
acabb605
...
...
@@ -14,6 +14,7 @@
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config'
function publishCaseExecute(caseName: string) {
let commonEventPublishData = {
...
...
@@ -45,21 +46,26 @@ export default function abilityTest() {
}
});
await globalThis.abilityContext.startAbility({
deviceId: '',
bundleName: 'com.example.acetest',
abilityName: 'MainAbility',
action: 'action1',
parameters: {},
config.enableAbility('com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"]
).then(() => {
console.info(`AccessibilityGestureEventTest enableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityGestureEventTest enableAbility has error: ${err.code}`);
});
setTimeout(done, 3000);
})
afterAll(async function (done) {
console.info('AccessibilityGestureEventTest: afterAll');
commonEvent.unsubscribe(subScriber);
isConnect = false;
done();
config.disableAbility('com.example.accessibilityxts/AccessibilityExtAbility').then(() => {
console.info(`AccessibilityGestureEventTest disableAbility: then`);
}).catch((err) => {
console.error(`AccessibilityGestureEventTest disableAbility has error: ${err.code}`);
});
setTimeout(done, 5000);
})
beforeEach(async function (done) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录