Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fbcf664f
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看板
未验证
提交
fbcf664f
编写于
8月 28, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 28, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9831 无障碍xts内存泄漏整改
Merge pull request !9831 from 姜欢欢/master
上级
c0bedd19
df941a3e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
50 addition
and
181 deletion
+50
-181
barrierfree/accessiblecaptionconfiguration/entry/src/ohosTest/js/test/AccessibleCaptionConfiguration.test.js
...c/ohosTest/js/test/AccessibleCaptionConfiguration.test.js
+9
-39
barrierfree/accessiblecaptionconfiguration/src/main/js/test/AccessibleCaptionConfiguration.test.js
...n/src/main/js/test/AccessibleCaptionConfiguration.test.js
+8
-38
barrierfree/accessibleregisterstate/entry/src/ohosTest/js/test/AccessibleRegisterState.test.js
...ntry/src/ohosTest/js/test/AccessibleRegisterState.test.js
+16
-52
barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js
...terstate/src/main/js/test/AccessibleRegisterState.test.js
+17
-52
未找到文件。
barrierfree/accessiblecaptionconfiguration/entry/src/ohosTest/js/test/AccessibleCaptionConfiguration.test.js
浏览文件 @
fbcf664f
...
...
@@ -41,8 +41,10 @@ describe('AccessibleCaptionConfiguration', function () {
console
.
info
(
'
CaptionConfiguration_0010
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
enableChange
'
;
let
ret
=
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{}
captionManager
.
on
(
stateEventType
,
callbackdata
);
captionManager
.
off
(
stateEventType
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
...
...
@@ -58,42 +60,10 @@ describe('AccessibleCaptionConfiguration', function () {
console
.
info
(
'
CaptionConfiguration_0020
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
styleChange
'
;
let
ret
=
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number CaptionConfiguration_0050
* @tc.name CaptionConfiguration_0050
* @tc.desc The parameter input is 'enableChange', test the captionManager.off() function,
* and return undefined
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0050
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0050
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
enableChange
'
;
let
ret
=
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number CaptionConfiguration_0060
* @tc.name CaptionConfiguration_0060
* @tc.desc The parameter input is 'styleChange', test the captionManager.off() function,
* and return undefined
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0060
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0060
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
styleChange
'
;
let
ret
=
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{}
captionManager
.
on
(
stateEventType
,
callbackdata
);
captionManager
.
off
(
stateEventType
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
})
...
...
barrierfree/accessiblecaptionconfiguration/src/main/js/test/AccessibleCaptionConfiguration.test.js
浏览文件 @
fbcf664f
...
...
@@ -41,8 +41,10 @@ describe('AccessibleCaptionConfiguration', function () {
console
.
info
(
'
CaptionConfiguration_0010
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
enableChange
'
;
let
ret
=
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{}
captionManager
.
on
(
stateEventType
,
callbackdata
);
captionManager
.
off
(
stateEventType
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
...
...
@@ -58,42 +60,10 @@ describe('AccessibleCaptionConfiguration', function () {
console
.
info
(
'
CaptionConfiguration_0020
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
styleChange
'
;
let
ret
=
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number CaptionConfiguration_0050
* @tc.name CaptionConfiguration_0050
* @tc.desc The parameter input is 'enableChange', test the captionManager.off() function,
* and return undefined
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0050
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0050
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
enableChange
'
;
let
ret
=
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number CaptionConfiguration_0060
* @tc.name CaptionConfiguration_0060
* @tc.desc The parameter input is 'styleChange', test the captionManager.off() function,
* and return undefined
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0060
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0060
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
stateEventType
=
'
styleChange
'
;
let
ret
=
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{}
captionManager
.
on
(
stateEventType
,
callbackdata
);
captionManager
.
off
(
stateEventType
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
})
...
...
barrierfree/accessibleregisterstate/entry/src/ohosTest/js/test/AccessibleRegisterState.test.js
浏览文件 @
fbcf664f
...
...
@@ -35,74 +35,38 @@ describe('AccessibleRegisterState', function () {
/******************************************************************************** */
/* Cases RegisterStateOnOff_0330-0360 are for accessibility.on() API test */
/******************************************************************************** */
/*
* @tc.number RegisterStateOnOff_0330
* @tc.name RegisterStateOnOff_0330
* @tc.desc The parameter input is 'accessibilityStateChange', test the accessibility.on() function,
* and return void.
* @tc.desc on(accessibilityStateChange)
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0330
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0330
'
);
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{
}
accessibility
.
on
(
'
accessibilityStateChange
'
,
callbackdata
);
accessibility
.
off
(
'
accessibilityStateChange
'
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
/*
* @tc.number RegisterStateOnOff_0340
* @tc.name RegisterStateOnOff_0340
* @tc.desc The parameter input is 'touchGuideStateChange', test the accessibility.on() function,
* and return void.
* @tc.desc on(touchGuideStateChange)
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0340
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0340
'
);
let
stateEventType
=
'
touchGuideStateChange
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/******************************************************************************** */
/* Cases RegisterStateOnOff_0370-0410 are for accessibility.off() API test */
/******************************************************************************** */
/*
* @tc.number RegisterStateOnOff_0370
* @tc.name RegisterStateOnOff_0370
* @tc.desc The parameter input is 'accessibilityStateChange', test the accessibility.off() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0370
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0370
'
);
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number RegisterStateOnOff_0380
* @tc.name RegisterStateOnOff_0380
* @tc.desc The parameter input is 'touchGuideStateChange', test the accessibility.off() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0380
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0380
'
);
let
stateEventType
=
'
touchGuideStateChange
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{
}
accessibility
.
on
(
'
touchGuideStateChange
'
,
callbackdata
);
accessibility
.
off
(
'
touchGuideStateChange
'
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
})
}
barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js
浏览文件 @
fbcf664f
...
...
@@ -39,70 +39,35 @@ describe('AccessibleRegisterState', function () {
/*
* @tc.number RegisterStateOnOff_0330
* @tc.name RegisterStateOnOff_0330
* @tc.desc The parameter input is 'accessibilityStateChange', test the accessibility.on() function,
* and return void.
* @tc.desc on('accessibilityStateChange')
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0330
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0330
'
);
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{
}
accessibility
.
on
(
'
accessibilityStateChange
'
,
callbackdata
);
accessibility
.
off
(
'
accessibilityStateChange
'
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
/*
* @tc.number RegisterStateOnOff_0340
* @tc.name RegisterStateOnOff_0340
* @tc.desc The parameter input is 'touchGuideStateChange', test the accessibility.on() function,
* and return void.
* @tc.desc on('touchGuideStateChange')
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0340
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0340
'
);
let
stateEventType
=
'
touchGuideStateChange
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/******************************************************************************** */
/* Cases RegisterStateOnOff_0370-0410 are for accessibility.off() API test */
/******************************************************************************** */
/*
* @tc.number RegisterStateOnOff_0370
* @tc.name RegisterStateOnOff_0370
* @tc.desc The parameter input is 'accessibilityStateChange', test the accessibility.off() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0370
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0370
'
);
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
})
/*
* @tc.number RegisterStateOnOff_0380
* @tc.name RegisterStateOnOff_0380
* @tc.desc The parameter input is 'touchGuideStateChange', test the accessibility.off() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0380
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0380
'
);
let
stateEventType
=
'
touchGuideStateChange
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
let
callbackdata
=
(
data
)
=>
{
}
accessibility
.
on
(
'
touchGuideStateChange
'
,
callbackdata
);
accessibility
.
off
(
'
touchGuideStateChange
'
,
callbackdata
);
expect
(
true
).
assertTrue
();
done
();
})
})
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录