Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
832f8872
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看板
未验证
提交
832f8872
编写于
3月 04, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 04, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2186 修改无障碍xts用例命名
Merge pull request !2186 from yichengzhao/master
上级
a1c452ad
64ab41d1
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
4062 addition
and
87 deletion
+4062
-87
barrierfree/BUILD.gn
barrierfree/BUILD.gn
+5
-5
barrierfree/accessibleabilitylist/BUILD.gn
barrierfree/accessibleabilitylist/BUILD.gn
+1
-1
barrierfree/accessiblecaptionconfiguration/BUILD.gn
barrierfree/accessiblecaptionconfiguration/BUILD.gn
+1
-1
barrierfree/accessiblecaptionconfiguration/entry/src/main/js/test/AccessibleCaptionConfiguration.test.js
...y/src/main/js/test/AccessibleCaptionConfiguration.test.js
+255
-39
barrierfree/accessiblecheckability/BUILD.gn
barrierfree/accessiblecheckability/BUILD.gn
+1
-1
barrierfree/accessibleregisterstate/BUILD.gn
barrierfree/accessibleregisterstate/BUILD.gn
+1
-1
barrierfree/accessibleregisterstate/entry/src/main/js/test/AccessibleRegisterState.test.js
...te/entry/src/main/js/test/AccessibleRegisterState.test.js
+13
-13
barrierfree/accessiblesendevent/BUILD.gn
barrierfree/accessiblesendevent/BUILD.gn
+1
-1
barrierfree/accessiblesendevent/entry/src/main/js/test/AccessibleSendEvent.test.js
...devent/entry/src/main/js/test/AccessibleSendEvent.test.js
+3784
-25
未找到文件。
barrierfree/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -17,11 +17,11 @@ group("barrierfree") {
testonly = true
if (is_standard_system) {
deps = [
"accessibleabilitylist:Ac
cessibleAbilityLi
st",
"accessiblecaptionconfiguration:Ac
cessibleCaptionConfiguration
",
"accessiblecheckability:Ac
cessibleCheckAbility
",
"accessibleregisterstate:Ac
cessibleRegisterState
",
"accessiblesendevent:Ac
cessibleSendEven
t",
"accessibleabilitylist:Ac
tsAccessibleAbilityListTe
st",
"accessiblecaptionconfiguration:Ac
tsAccessibleCaptionConfigurationTest
",
"accessiblecheckability:Ac
tsAccessibleCheckAbilityTest
",
"accessibleregisterstate:Ac
tsAccessibleRegisterStateTest
",
"accessiblesendevent:Ac
tsAccessibleSendEventTes
t",
]
}
}
barrierfree/accessibleabilitylist/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Ac
cessibleAbilityLi
st") {
ohos_js_hap_suite("Ac
tsAccessibleAbilityListTe
st") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
...
...
barrierfree/accessiblecaptionconfiguration/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Ac
cessibleCaptionConfiguration
") {
ohos_js_hap_suite("Ac
tsAccessibleCaptionConfigurationTest
") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
...
...
barrierfree/accessiblecaptionconfiguration/entry/src/main/js/test/AccessibleCaptionConfiguration.test.js
浏览文件 @
832f8872
...
...
@@ -16,24 +16,25 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
import
accessibility
from
'
@ohos.accessibility
'
//import accessibility from '@ohos.application.AccessibilityExtension'
describe
(
'
AccessibleCaptionConfiguration
'
,
function
()
{
beforeEach
(
async
function
(
done
)
{
console
.
info
(
`AccessibleCaptionConfiguration: beforeEach starts`
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
"
enableChange
"
);
captionManager
.
off
(
"
styleChange
"
);
done
();
})
afterEach
(
async
function
(
done
)
{
console
.
info
(
`AccessibleCaptionConfiguration: afterEach starts`
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
"
enableChange
"
);
captionManager
.
off
(
"
styleChange
"
);
setTimeout
(
done
,
1000
);
})
beforeEach
(
async
function
(
done
)
{
console
.
info
(
`AccessibleCaptionConfiguration: beforeEach starts`
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
"
enableChange
"
);
captionManager
.
off
(
"
styleChange
"
);
done
();
})
afterEach
(
async
function
(
done
)
{
console
.
info
(
`AccessibleCaptionConfiguration: afterEach starts`
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
"
enableChange
"
);
captionManager
.
off
(
"
styleChange
"
);
setTimeout
(
done
,
1000
);
})
var
CaptionsStyle
=
{
fontFamily
:
"
default
"
,
fontScale
:
75
,
...
...
@@ -52,7 +53,6 @@ describe('AccessibleCaptionConfiguration', function () {
windowColor
:
"
green
"
}
/*
* @tc.number CaptionConfiguration_0010
* @tc.name CaptionConfiguration_0010
...
...
@@ -105,17 +105,17 @@ describe('AccessibleCaptionConfiguration', function () {
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0020
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0020
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
style
=
CaptionsStyle
;
let
stateEventType
=
'
styleChange
'
;
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
expect
(
true
).
assertEqual
(
true
);
done
();
});
captionManager
.
style
=
StyleTest
;
})
it
(
'
CaptionConfiguration_0020
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0020
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
style
=
CaptionsStyle
;
let
stateEventType
=
'
styleChange
'
;
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
expect
(
true
).
assertEqual
(
true
);
done
();
});
captionManager
.
style
=
StyleTest
;
})
/*
* @tc.number CaptionConfiguration_0021
...
...
@@ -237,6 +237,58 @@ describe('AccessibleCaptionConfiguration', function () {
captionManager
.
style
.
windowColor
=
"
TmepwindowColor
"
;
})
/*
* @tc.number CaptionConfiguration_0030
* @tc.name CaptionConfiguration_0030
* @tc.desc The parameter input is 'enableChange', test the captionManager.off() function,
* and return true
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0030
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0030
'
);
let
stateEventType
=
'
enableChange
'
;
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
stateEventType
);
captionManager
.
enabled
=
false
;
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
let
ret
=
false
;
expect
(
ret
).
assertEqual
(
true
);
});
let
ret
=
captionManager
.
off
(
stateEventType
);
captionManager
.
enabled
=
true
;
expect
(
true
).
assertEqual
(
true
);
done
();
})
/*
* @tc.number CaptionConfiguration_0031
* @tc.name CaptionConfiguration_0031
* @tc.desc The parameter input is 'enableChange', test the captionManager.off() function,
* and return true
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0031
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0031
'
);
let
stateEventType
=
'
enableChange
'
;
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
stateEventType
);
captionManager
.
enabled
=
true
;
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
let
ret
=
false
;
expect
(
ret
).
assertEqual
(
true
);
});
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{
expect
(
data
).
assertEqual
(
true
);
});
captionManager
.
enabled
=
false
;
expect
(
true
).
assertEqual
(
true
);
done
();
})
/*
* @tc.number CaptionConfiguration_0032
* @tc.name CaptionConfiguration_0032
...
...
@@ -261,6 +313,57 @@ describe('AccessibleCaptionConfiguration', function () {
});
})
/*
* @tc.number CaptionConfiguration_0040
* @tc.name CaptionConfiguration_0040
* @tc.desc The parameter input is 'styleChange', test the captionManager.off() function,
* and return true
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0040
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0040
'
);
let
stateEventType
=
'
styleChange
'
;
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
stateEventType
);
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
let
ret
=
false
;
expect
(
ret
).
assertEqual
(
true
);
});
captionManager
.
off
(
stateEventType
);
captionManager
.
style
=
StyleTest
;
done
();
})
/*
* @tc.number CaptionConfiguration_0041
* @tc.name CaptionConfiguration_0041
* @tc.desc The parameter input is 'styleChange', test the captionManager.off() function,
* and return true
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0041
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0041
'
);
let
stateEventType
=
'
styleChange
'
;
let
captionManager
=
accessibility
.
getCaptionsManager
();
captionManager
.
off
(
stateEventType
);
captionManager
.
on
(
stateEventType
,
(
data
)
=>
{
let
ret
=
false
;
expect
(
ret
).
assertEqual
(
true
);
});
captionManager
.
off
(
stateEventType
,
(
data
)
=>
{
expect
(
data
.
fontFamily
).
assertEqual
(
StyleTest
.
fontFamily
);
expect
(
data
.
fontScale
).
assertEqual
(
StyleTest
.
fontScale
);
expect
(
data
.
fontColor
).
assertEqual
(
StyleTest
.
fontColor
);
expect
(
data
.
fontEdgeType
).
assertEqual
(
StyleTest
.
fontEdgeType
);
expect
(
data
.
backgroundColor
).
assertEqual
(
StyleTest
.
backgroundColor
);
expect
(
data
.
windowColor
).
assertEqual
(
StyleTest
.
windowColor
);
});
captionManager
.
style
=
CaptionsStyle
;
done
();
})
/*
* @tc.number CaptionConfiguration_0042
* @tc.name CaptionConfiguration_0042
...
...
@@ -282,7 +385,6 @@ describe('AccessibleCaptionConfiguration', function () {
});
})
/*
* @tc.number CaptionConfiguration_0050
* @tc.name CaptionConfiguration_0050
...
...
@@ -292,13 +394,13 @@ describe('AccessibleCaptionConfiguration', function () {
* @tc.type User
*/
it
(
'
CaptionConfiguration_0050
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0050
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
default
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
console
.
info
(
'
CaptionConfiguration_0050
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
default
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
...
...
@@ -517,6 +619,60 @@ describe('AccessibleCaptionConfiguration', function () {
done
();
})
/*
* @tc.number CaptionConfiguration_0070
* @tc.name CaptionConfiguration_0070
* @tc.desc Test getCaptionsManager() function by modifying fontColor.
* Return CaptionsManager.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0070
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0070
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
"
TmepfontColor
"
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
fontColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0071
* @tc.name CaptionConfiguration_0071
* @tc.desc Test getCaptionsManager() function by modifying fontColor.
* Return CaptionsManager.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0071
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0071
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
"
none
"
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
fontColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0072
* @tc.name CaptionConfiguration_0072
* @tc.desc Test getCaptionsManager() function by modifying fontColor.
* Return CaptionsManager.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0072
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0072
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
""
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
fontColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0080
* @tc.name CaptionConfiguration_0080
...
...
@@ -696,7 +852,7 @@ describe('AccessibleCaptionConfiguration', function () {
expect
(
value
).
assertEqual
(
windowColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0101
* @tc.name CaptionConfiguration_0101
...
...
@@ -714,7 +870,7 @@ describe('AccessibleCaptionConfiguration', function () {
expect
(
value
).
assertEqual
(
windowColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0102
* @tc.name CaptionConfiguration_0102
...
...
@@ -732,5 +888,65 @@ describe('AccessibleCaptionConfiguration', function () {
expect
(
value
).
assertEqual
(
windowColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0110
* @tc.name CaptionConfiguration_0110
* @tc.desc Test getCaptionsManager() function by modifying style.
* Return CaptionsManager.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0110
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0110
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
StyleTest
=
{
fontFamily
:
"
monospacedSerif
"
,
fontScale
:
99
,
fontColor
:
"
red
"
,
fontEdgeType
:
"
uniform
"
,
backgroundColor
:
"
pink
"
,
windowColor
:
"
green
"
};
captionManager
.
style
=
StyleTest
;
let
value
=
captionManager
.
style
;
expect
(
value
.
fontFamily
).
assertEqual
(
StyleTest
.
fontFamily
);
expect
(
value
.
fontScale
).
assertEqual
(
StyleTest
.
fontScale
);
expect
(
value
.
fontColor
).
assertEqual
(
StyleTest
.
fontColor
);
expect
(
value
.
fontEdgeType
).
assertEqual
(
StyleTest
.
fontEdgeType
);
expect
(
value
.
backgroundColor
).
assertEqual
(
StyleTest
.
backgroundColor
);
expect
(
value
.
windowColor
).
assertEqual
(
StyleTest
.
windowColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0111
* @tc.name CaptionConfiguration_0111
* @tc.desc Test getCaptionsManager() function by modifying style.
* Return CaptionsManager.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0111
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0111
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
StyleTest
=
{
fontFamily
:
"
default
"
,
fontScale
:
75
,
fontColor
:
"
blue
"
,
fontEdgeType
:
"
none
"
,
backgroundColor
:
"
green
"
,
windowColor
:
"
pink
"
};
captionManager
.
style
=
StyleTest
;
let
value
=
captionManager
.
style
;
expect
(
value
.
fontFamily
).
assertEqual
(
StyleTest
.
fontFamily
);
expect
(
value
.
fontScale
).
assertEqual
(
StyleTest
.
fontScale
);
expect
(
value
.
fontColor
).
assertEqual
(
StyleTest
.
fontColor
);
expect
(
value
.
fontEdgeType
).
assertEqual
(
StyleTest
.
fontEdgeType
);
expect
(
value
.
backgroundColor
).
assertEqual
(
StyleTest
.
backgroundColor
);
expect
(
value
.
windowColor
).
assertEqual
(
StyleTest
.
windowColor
);
done
();
})
})
barrierfree/accessiblecheckability/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Ac
cessibleCheckAbility
") {
ohos_js_hap_suite("Ac
tsAccessibleCheckAbilityTest
") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
...
...
barrierfree/accessibleregisterstate/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Ac
cessibleRegisterState
") {
ohos_js_hap_suite("Ac
tsAccessibleRegisterStateTest
") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
...
...
barrierfree/accessibleregisterstate/entry/src/main/js/test/AccessibleRegisterState.test.js
浏览文件 @
832f8872
...
...
@@ -38,14 +38,14 @@ describe('AccessibleRegisterState', function () {
/*
* @tc.number RegisterStateOnOff_0330
* @tc.name RegisterStateOnOff_0330
* @tc.desc The parameter input is 'accessibility', test the accessibility.on() function,
* @tc.desc The parameter input is 'accessibility
StateChange
', test the accessibility.on() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0330
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0330
'
);
const
stateEventType
=
'
accessibility
'
;
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -54,14 +54,14 @@ describe('AccessibleRegisterState', function () {
/*
* @tc.number RegisterStateOnOff_0340
* @tc.name RegisterStateOnOff_0340
* @tc.desc The parameter input is 'touchGuide', test the accessibility.on() function,
* @tc.desc The parameter input is 'touchGuide
StateChange
', test the accessibility.on() function,
* and return void.
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
RegisterStateOnOff_0340
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0340
'
);
const
stateEventType
=
'
touchGuid
e
'
;
let
stateEventType
=
'
touchGuideStateChang
e
'
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -77,7 +77,7 @@ describe('AccessibleRegisterState', function () {
*/
it
(
'
RegisterStateOnOff_0350
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0350
'
);
cons
t
stateEventType
=
''
;
le
t
stateEventType
=
''
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -93,7 +93,7 @@ describe('AccessibleRegisterState', function () {
*/
it
(
'
RegisterStateOnOff_0360
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0360
'
);
cons
t
stateEventType
=
null
;
le
t
stateEventType
=
null
;
let
ret
=
accessibility
.
on
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -106,14 +106,14 @@ describe('AccessibleRegisterState', function () {
/*
* @tc.number RegisterStateOnOff_0370
* @tc.name RegisterStateOnOff_0370
* @tc.desc The parameter input is 'accessibility', test the accessibility.off() function,
* @tc.desc The parameter input is 'accessibility
StateChange
', 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
'
);
const
stateEventType
=
'
accessibility
'
;
let
stateEventType
=
'
accessibilityStateChange
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -122,14 +122,14 @@ describe('AccessibleRegisterState', function () {
/*
* @tc.number RegisterStateOnOff_0380
* @tc.name RegisterStateOnOff_0380
* @tc.desc The parameter input is 'touchGuide', test the accessibility.off() function,
* @tc.desc The parameter input is 'touchGuide
StateChange
', 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
'
);
const
stateEventType
=
'
touchGuid
e
'
;
let
stateEventType
=
'
touchGuideStateChang
e
'
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -145,7 +145,7 @@ describe('AccessibleRegisterState', function () {
*/
it
(
'
RegisterStateOnOff_0390
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0390
'
);
cons
t
stateEventType
=
''
;
le
t
stateEventType
=
''
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -161,7 +161,7 @@ describe('AccessibleRegisterState', function () {
*/
it
(
'
RegisterStateOnOff_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0400
'
);
cons
t
stateEventType
=
null
;
le
t
stateEventType
=
null
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
@@ -177,7 +177,7 @@ describe('AccessibleRegisterState', function () {
*/
it
(
'
RegisterStateOnOff_0410
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
RegisterStateOnOff_0410
'
);
cons
t
stateEventType
=
null
;
le
t
stateEventType
=
null
;
let
ret
=
accessibility
.
off
(
stateEventType
,
(
data
)
=>
{});
expect
(
ret
).
assertEqual
(
undefined
);
done
();
...
...
barrierfree/accessiblesendevent/BUILD.gn
浏览文件 @
832f8872
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Ac
cessibleSendEven
t") {
ohos_js_hap_suite("Ac
tsAccessibleSendEventTes
t") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
...
...
barrierfree/accessiblesendevent/entry/src/main/js/test/AccessibleSendEvent.test.js
浏览文件 @
832f8872
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录