未验证 提交 1f26d791 编写于 作者: O openharmony_ci 提交者: Gitee

!5145 增加windowUpdate的属性覆盖测试用例

Merge pull request !5145 from Mupceet/release_0819_xts
...@@ -513,6 +513,39 @@ describe('AccessibleSendEvent', function () { ...@@ -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.number SendEvent_windowUpdateType_constructor_0060
* @tc.name 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.
先完成此消息的编辑!
想要评论请 注册