提交 f02b2b76 编写于 作者: M Mupceet

add windowupdate case

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 6d07e4df
......@@ -513,6 +513,39 @@ describe('AccessibleSendEvent', function () {
});
})
/*
* @tc.number SendEvent_windowUpdateType_constructor_0050
* @tc.name SendEvent_windowUpdateType_constructor_0050
* @tc.desc The windowUpdateType of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to a promise of undefined
* Another test point is to test whether the modified constructor (EventInfo)
* works correctly.
* @tc.size SmallTest
* @tc.type User
*/
it('SendEvent_windowUpdateType_constructor_0050', 0, async function (done) {
console.info(`AccessibleSendEvent: SendEvent_windowUpdateType_constructor_0050 starts`);
let windowUpdateType = 'add';
let jsonObj = {
type : eventType,
windowUpdateType : windowUpdateType,
bundleName : bundleName,
triggerAction : triggerAction,
}
let event = new accessibility.EventInfo(jsonObj);
accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(undefined);
done();
}).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_constructor_0050 has error: ${err}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number SendEvent_windowUpdateType_constructor_0060
* @tc.name SendEvent_windowUpdateType_constructor_0060
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册