未验证 提交 aa6054c4 编写于 作者: 姜欢欢 提交者: Gitee

update ibleRegisterState.test.js.

Signed-off-by: N姜欢欢 <jianghuanhuan@huawei.com>
上级 fc0f5293
......@@ -35,7 +35,6 @@ describe('AccessibleRegisterState', function () {
/******************************************************************************** */
/* Cases RegisterStateOnOff_0330-0360 are for accessibility.on() API test */
/******************************************************************************** */
/*
* @tc.number RegisterStateOnOff_0330
* @tc.name RegisterStateOnOff_0330
......@@ -47,8 +46,9 @@ describe('AccessibleRegisterState', function () {
it('RegisterStateOnOff_0330', 0, async function (done) {
console.info('RegisterStateOnOff_0330');
let stateEventType = 'accessibilityStateChange';
accessibility.on(stateEventType, (data) => {});
accessibility.off(stateEventType, (data) => {});
let callbackdata = (data) => {}
accessibility.on(stateEventType, callbackdata);
accessibility.off(stateEventType, callbackdata);
expect(true).assertTrue();
done();
})
......@@ -64,8 +64,9 @@ describe('AccessibleRegisterState', function () {
it('RegisterStateOnOff_0340', 0, async function (done) {
console.info('RegisterStateOnOff_0340');
let stateEventType = 'touchGuideStateChange';
accessibility.on(stateEventType, (data) => {});
accessibility.off(stateEventType, (data) => {});
let callbackdata = (data) => {}
accessibility.on(stateEventType, callbackdata);
accessibility.off(stateEventType, callbackdata);
expect(true).assertTrue();
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册