未验证 提交 0821cd33 编写于 作者: O openharmony_ci 提交者: Gitee

!2388 修改执行没有结果的问题

Merge pull request !2388 from yichengzhao/0312
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "180000", "test-timeout": "1800000",
"package": "com.example.accessiblesendevent", "package": "com.example.accessiblesendevent",
"shell-timeout": "180000" "shell-timeout": "1800000"
}, },
"kits": [ "kits": [
{ {
"test-file-name": [ "test-file-name": [
"ActsAccessibleSendEventTest.hap" "ActsAccessibleSendEventTest.hap"
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
} }
] ]
} }
...@@ -39,8 +39,8 @@ describe('AccessibleSendEvent', function () { ...@@ -39,8 +39,8 @@ describe('AccessibleSendEvent', function () {
/* /*
* @tc.number SendEvent_0010 * @tc.number SendEvent_0010
* @tc.name SendEvent_0010 * @tc.name SendEvent_0010
* @tc.desc The parameter input is EventInfo, test the sendEvent() function, * @tc.desc The parameter input is EventInfo, test the sendEvent() function
* and should return true. * The result of sendEvent() should be equal to an error code with no error
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -52,22 +52,19 @@ describe('AccessibleSendEvent', function () { ...@@ -52,22 +52,19 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event, (err, data) => { accessibility.sendEvent(event, (err, data) => {
if (err.code != 0) { console.info(`AccessibleSendEvent: SendEvent_0010 has error: ${err.code}`);
console.error(`AccessibleSendEvent: SendEvent_0010 has error: ${err.code}`); expect(err.code).assertEqual(0);
expect(null).assertFail(); console.info(`AccessibleSendEvent: SendEvent_0010 has data: ${data}`);
done(); expect(data).assertEqual(undefined);
} done();
console.info(`AccessibleSendEvent: SendEvent_0010 data ${data}`);
expect(data).assertEqual(true);
done();
}) })
}) })
/* /*
* @tc.number SendEvent_0020 * @tc.number SendEvent_0020
* @tc.name SendEvent_0020 * @tc.name SendEvent_0020
* @tc.desc The parameter input is EventInfo, test the sendEvent() function, * @tc.desc The parameter input is EventInfo, test the sendEvent() function
* and should return true. * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -79,8 +76,8 @@ describe('AccessibleSendEvent', function () { ...@@ -79,8 +76,8 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
console.info(`AccessibleSendEvent: SendEvent_0020 data ${result}`); console.info(`AccessibleSendEvent: SendEvent_0020 result ${result}`);
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done(); done();
}).catch((err) => { }).catch((err) => {
console.error(`AccessibleSendEvent: SendEvent_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_0020 has error: ${err}`);
...@@ -92,8 +89,8 @@ describe('AccessibleSendEvent', function () { ...@@ -92,8 +89,8 @@ describe('AccessibleSendEvent', function () {
/* /*
* @tc.number SendEvent_null_0010 * @tc.number SendEvent_null_0010
* @tc.name SendEvent_null_0010 * @tc.name SendEvent_null_0010
* @tc.desc The parameter input is null, test the sendEvent() function, * @tc.desc The parameter input is null, test the sendEvent() function
* and should return false. * The result of sendEvent() should be equal to an error code with error
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -102,13 +99,10 @@ describe('AccessibleSendEvent', function () { ...@@ -102,13 +99,10 @@ describe('AccessibleSendEvent', function () {
let event = null; let event = null;
accessibility.sendEvent(event, (err, data) => { accessibility.sendEvent(event, (err, data) => {
if (err.code != 0) { console.info(`AccessibleSendEvent: SendEvent_null_0010 has error: ${err.code}`);
console.error(`AccessibleSendEvent: SendEvent_null_0010 has error: ${err.code}`); expect(err.code).assertEqual(-1);
expect(null).assertFail(); console.info(`AccessibleSendEvent: SendEvent_null_0010 has data: ${data}`);
done(); expect(data).assertEqual(undefined);
}
console.info(`AccessibleSendEvent: SendEvent_null_0010 data ${data}`);
expect(data).assertEqual(false);
done(); done();
}) })
}) })
...@@ -116,8 +110,8 @@ describe('AccessibleSendEvent', function () { ...@@ -116,8 +110,8 @@ describe('AccessibleSendEvent', function () {
/* /*
* @tc.number SendEvent_null_0020 * @tc.number SendEvent_null_0020
* @tc.name SendEvent_null_0020 * @tc.name SendEvent_null_0020
* @tc.desc The parameter input is null, test the sendEvent() function, * @tc.desc The parameter input is null, test the sendEvent() function
* and should return false. * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -125,13 +119,13 @@ describe('AccessibleSendEvent', function () { ...@@ -125,13 +119,13 @@ describe('AccessibleSendEvent', function () {
console.info('SendEvent_null_0020'); console.info('SendEvent_null_0020');
let event = null; let event = null;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
console.info(`AccessibleSendEvent: SendEvent_null_0020 data ${result}`); console.error(`AccessibleSendEvent: SendEvent_null_0020 result ${result}`);
expect(result).assertEqual(false); expect(null).assertFail();
done(); done();
}).catch((err) => { }).catch((err) => {
console.error(`AccessibleSendEvent: SendEvent_null_0020 has error: ${err}`); console.info(`AccessibleSendEvent: SendEvent_null_0020 has error: ${err}`);
expect(null).assertFail(); expect(err).assertEqual(undefined);
done(); done();
}); });
}) })
...@@ -144,7 +138,7 @@ describe('AccessibleSendEvent', function () { ...@@ -144,7 +138,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0010 * @tc.number SendEvent_type_0010
* @tc.name SendEvent_type_0010 * @tc.name SendEvent_type_0010
* @tc.desc The type of EventInfo is 'accessibilityFocus', test sendEvent() function * @tc.desc The type of EventInfo is 'accessibilityFocus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -157,11 +151,11 @@ describe('AccessibleSendEvent', function () { ...@@ -157,11 +151,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -170,7 +164,7 @@ describe('AccessibleSendEvent', function () { ...@@ -170,7 +164,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0020 * @tc.number SendEvent_type_0020
* @tc.name SendEvent_type_0020 * @tc.name SendEvent_type_0020
* @tc.desc The type of EventInfo is 'accessibilityFocusClear', test sendEvent() function * @tc.desc The type of EventInfo is 'accessibilityFocusClear', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -183,11 +177,11 @@ describe('AccessibleSendEvent', function () { ...@@ -183,11 +177,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -196,7 +190,7 @@ describe('AccessibleSendEvent', function () { ...@@ -196,7 +190,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0030 * @tc.number SendEvent_type_0030
* @tc.name SendEvent_type_0030 * @tc.name SendEvent_type_0030
* @tc.desc The type of EventInfo is 'click', test sendEvent() function * @tc.desc The type of EventInfo is 'click', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -209,11 +203,11 @@ describe('AccessibleSendEvent', function () { ...@@ -209,11 +203,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -222,7 +216,7 @@ describe('AccessibleSendEvent', function () { ...@@ -222,7 +216,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0040 * @tc.number SendEvent_type_0040
* @tc.name SendEvent_type_0040 * @tc.name SendEvent_type_0040
* @tc.desc The type of EventInfo is 'longClick', test sendEvent() function * @tc.desc The type of EventInfo is 'longClick', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -235,11 +229,11 @@ describe('AccessibleSendEvent', function () { ...@@ -235,11 +229,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -248,7 +242,7 @@ describe('AccessibleSendEvent', function () { ...@@ -248,7 +242,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0050 * @tc.number SendEvent_type_0050
* @tc.name SendEvent_type_0050 * @tc.name SendEvent_type_0050
* @tc.desc The type of EventInfo is 'focus', test sendEvent() function * @tc.desc The type of EventInfo is 'focus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -261,11 +255,11 @@ describe('AccessibleSendEvent', function () { ...@@ -261,11 +255,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -274,7 +268,7 @@ describe('AccessibleSendEvent', function () { ...@@ -274,7 +268,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0060 * @tc.number SendEvent_type_0060
* @tc.name SendEvent_type_0060 * @tc.name SendEvent_type_0060
* @tc.desc The type of EventInfo is 'select', test sendEvent() function * @tc.desc The type of EventInfo is 'select', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -287,11 +281,11 @@ describe('AccessibleSendEvent', function () { ...@@ -287,11 +281,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -300,7 +294,7 @@ describe('AccessibleSendEvent', function () { ...@@ -300,7 +294,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0070 * @tc.number SendEvent_type_0070
* @tc.name SendEvent_type_0070 * @tc.name SendEvent_type_0070
* @tc.desc The type of EventInfo is 'hoverEnter', test sendEvent() function * @tc.desc The type of EventInfo is 'hoverEnter', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -313,11 +307,11 @@ describe('AccessibleSendEvent', function () { ...@@ -313,11 +307,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -326,7 +320,7 @@ describe('AccessibleSendEvent', function () { ...@@ -326,7 +320,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0080 * @tc.number SendEvent_type_0080
* @tc.name SendEvent_type_0080 * @tc.name SendEvent_type_0080
* @tc.desc The type of EventInfo is 'hoverExit', test sendEvent() function * @tc.desc The type of EventInfo is 'hoverExit', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -339,11 +333,11 @@ describe('AccessibleSendEvent', function () { ...@@ -339,11 +333,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0080 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0080 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -352,7 +346,7 @@ describe('AccessibleSendEvent', function () { ...@@ -352,7 +346,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0090 * @tc.number SendEvent_type_0090
* @tc.name SendEvent_type_0090 * @tc.name SendEvent_type_0090
* @tc.desc The type of EventInfo is 'textUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'textUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -365,11 +359,11 @@ describe('AccessibleSendEvent', function () { ...@@ -365,11 +359,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0090 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0090 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -378,7 +372,7 @@ describe('AccessibleSendEvent', function () { ...@@ -378,7 +372,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0100 * @tc.number SendEvent_type_0100
* @tc.name SendEvent_type_0100 * @tc.name SendEvent_type_0100
* @tc.desc The type of EventInfo is 'textSelectionUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'textSelectionUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -391,11 +385,11 @@ describe('AccessibleSendEvent', function () { ...@@ -391,11 +385,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0100 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0100 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -404,7 +398,7 @@ describe('AccessibleSendEvent', function () { ...@@ -404,7 +398,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0110 * @tc.number SendEvent_type_0110
* @tc.name SendEvent_type_0110 * @tc.name SendEvent_type_0110
* @tc.desc The type of EventInfo is 'scroll', test sendEvent() function * @tc.desc The type of EventInfo is 'scroll', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -417,11 +411,11 @@ describe('AccessibleSendEvent', function () { ...@@ -417,11 +411,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0110 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0110 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -430,7 +424,7 @@ describe('AccessibleSendEvent', function () { ...@@ -430,7 +424,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0120 * @tc.number SendEvent_type_0120
* @tc.name SendEvent_type_0120 * @tc.name SendEvent_type_0120
* @tc.desc The type of EventInfo is 'textMoveUnit', test sendEvent() function * @tc.desc The type of EventInfo is 'textMoveUnit', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -443,11 +437,11 @@ describe('AccessibleSendEvent', function () { ...@@ -443,11 +437,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0120 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0120 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -456,7 +450,7 @@ describe('AccessibleSendEvent', function () { ...@@ -456,7 +450,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0130 * @tc.number SendEvent_type_0130
* @tc.name SendEvent_type_0130 * @tc.name SendEvent_type_0130
* @tc.desc The type of EventInfo is 'touchBegin', test sendEvent() function * @tc.desc The type of EventInfo is 'touchBegin', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -469,11 +463,11 @@ describe('AccessibleSendEvent', function () { ...@@ -469,11 +463,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0130 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0130 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -482,7 +476,7 @@ describe('AccessibleSendEvent', function () { ...@@ -482,7 +476,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0140 * @tc.number SendEvent_type_0140
* @tc.name SendEvent_type_0140 * @tc.name SendEvent_type_0140
* @tc.desc The type of EventInfo is 'touchEnd', test sendEvent() function * @tc.desc The type of EventInfo is 'touchEnd', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -495,11 +489,11 @@ describe('AccessibleSendEvent', function () { ...@@ -495,11 +489,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0140 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0140 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -508,7 +502,7 @@ describe('AccessibleSendEvent', function () { ...@@ -508,7 +502,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0150 * @tc.number SendEvent_type_0150
* @tc.name SendEvent_type_0150 * @tc.name SendEvent_type_0150
* @tc.desc The type of EventInfo is 'touchGuideBegin', test sendEvent() function * @tc.desc The type of EventInfo is 'touchGuideBegin', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -521,11 +515,11 @@ describe('AccessibleSendEvent', function () { ...@@ -521,11 +515,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0150 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0150 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -534,7 +528,7 @@ describe('AccessibleSendEvent', function () { ...@@ -534,7 +528,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0160 * @tc.number SendEvent_type_0160
* @tc.name SendEvent_type_0160 * @tc.name SendEvent_type_0160
* @tc.desc The type of EventInfo is 'touchGuideEnd', test sendEvent() function * @tc.desc The type of EventInfo is 'touchGuideEnd', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -547,11 +541,11 @@ describe('AccessibleSendEvent', function () { ...@@ -547,11 +541,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0160 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0160 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -560,7 +554,7 @@ describe('AccessibleSendEvent', function () { ...@@ -560,7 +554,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0170 * @tc.number SendEvent_type_0170
* @tc.name SendEvent_type_0170 * @tc.name SendEvent_type_0170
* @tc.desc The type of EventInfo is 'touchGuideGestureBegin', test sendEvent() function * @tc.desc The type of EventInfo is 'touchGuideGestureBegin', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -573,11 +567,11 @@ describe('AccessibleSendEvent', function () { ...@@ -573,11 +567,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0170 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0170 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -586,7 +580,7 @@ describe('AccessibleSendEvent', function () { ...@@ -586,7 +580,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0180 * @tc.number SendEvent_type_0180
* @tc.name SendEvent_type_0180 * @tc.name SendEvent_type_0180
* @tc.desc The type of EventInfo is 'touchGuideGestureEnd', test sendEvent() function * @tc.desc The type of EventInfo is 'touchGuideGestureEnd', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -599,11 +593,11 @@ describe('AccessibleSendEvent', function () { ...@@ -599,11 +593,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0180 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0180 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -612,7 +606,7 @@ describe('AccessibleSendEvent', function () { ...@@ -612,7 +606,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0190 * @tc.number SendEvent_type_0190
* @tc.name SendEvent_type_0190 * @tc.name SendEvent_type_0190
* @tc.desc The type of EventInfo is 'windowUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'windowUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -625,11 +619,11 @@ describe('AccessibleSendEvent', function () { ...@@ -625,11 +619,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0190 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0190 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -638,7 +632,7 @@ describe('AccessibleSendEvent', function () { ...@@ -638,7 +632,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0200 * @tc.number SendEvent_type_0200
* @tc.name SendEvent_type_0200 * @tc.name SendEvent_type_0200
* @tc.desc The type of EventInfo is 'pageContentUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'pageContentUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -651,11 +645,11 @@ describe('AccessibleSendEvent', function () { ...@@ -651,11 +645,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0200 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0200 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -664,7 +658,7 @@ describe('AccessibleSendEvent', function () { ...@@ -664,7 +658,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0210 * @tc.number SendEvent_type_0210
* @tc.name SendEvent_type_0210 * @tc.name SendEvent_type_0210
* @tc.desc The type of EventInfo is 'pageStateUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'pageStateUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -677,11 +671,11 @@ describe('AccessibleSendEvent', function () { ...@@ -677,11 +671,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0210 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0210 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -690,7 +684,7 @@ describe('AccessibleSendEvent', function () { ...@@ -690,7 +684,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0220 * @tc.number SendEvent_type_0220
* @tc.name SendEvent_type_0220 * @tc.name SendEvent_type_0220
* @tc.desc The type of EventInfo is 'publicNotice', test sendEvent() function * @tc.desc The type of EventInfo is 'publicNotice', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -703,11 +697,11 @@ describe('AccessibleSendEvent', function () { ...@@ -703,11 +697,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0220 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0220 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -716,7 +710,7 @@ describe('AccessibleSendEvent', function () { ...@@ -716,7 +710,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0230 * @tc.number SendEvent_type_0230
* @tc.name SendEvent_type_0230 * @tc.name SendEvent_type_0230
* @tc.desc The type of EventInfo is 'notificationUpdate', test sendEvent() function * @tc.desc The type of EventInfo is 'notificationUpdate', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -729,11 +723,11 @@ describe('AccessibleSendEvent', function () { ...@@ -729,11 +723,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0230 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0230 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -742,7 +736,7 @@ describe('AccessibleSendEvent', function () { ...@@ -742,7 +736,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0240 * @tc.number SendEvent_type_0240
* @tc.name SendEvent_type_0240 * @tc.name SendEvent_type_0240
* @tc.desc The type of EventInfo is 'interrupt', test sendEvent() function * @tc.desc The type of EventInfo is 'interrupt', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -755,11 +749,11 @@ describe('AccessibleSendEvent', function () { ...@@ -755,11 +749,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0240 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0240 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -768,7 +762,7 @@ describe('AccessibleSendEvent', function () { ...@@ -768,7 +762,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0250 * @tc.number SendEvent_type_0250
* @tc.name SendEvent_type_0250 * @tc.name SendEvent_type_0250
* @tc.desc The type of EventInfo is 'gesture', test sendEvent() function * @tc.desc The type of EventInfo is 'gesture', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -781,11 +775,11 @@ describe('AccessibleSendEvent', function () { ...@@ -781,11 +775,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_type_0250 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_type_0250 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -794,7 +788,7 @@ describe('AccessibleSendEvent', function () { ...@@ -794,7 +788,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0260 * @tc.number SendEvent_type_0260
* @tc.name SendEvent_type_0260 * @tc.name SendEvent_type_0260
* @tc.desc The type of EventInfo is '', test sendEvent() function * @tc.desc The type of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -806,13 +800,14 @@ describe('AccessibleSendEvent', function () { ...@@ -806,13 +800,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_type_0260 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_type_0260 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_type_0260 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -820,7 +815,7 @@ describe('AccessibleSendEvent', function () { ...@@ -820,7 +815,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_type_0270 * @tc.number SendEvent_type_0270
* @tc.name SendEvent_type_0270 * @tc.name SendEvent_type_0270
* @tc.desc The type of EventInfo is null, test sendEvent() function * @tc.desc The type of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -832,13 +827,14 @@ describe('AccessibleSendEvent', function () { ...@@ -832,13 +827,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_type_0270 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_type_0270 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_type_0270 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -846,7 +842,7 @@ describe('AccessibleSendEvent', function () { ...@@ -846,7 +842,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0010 * @tc.number SendEvent_windowUpdateType_0010
* @tc.name SendEvent_windowUpdateType_0010 * @tc.name SendEvent_windowUpdateType_0010
* @tc.desc The windowUpdateType of EventInfo is 'add', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'add', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -860,11 +856,11 @@ describe('AccessibleSendEvent', function () { ...@@ -860,11 +856,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -873,7 +869,7 @@ describe('AccessibleSendEvent', function () { ...@@ -873,7 +869,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0020 * @tc.number SendEvent_windowUpdateType_0020
* @tc.name SendEvent_windowUpdateType_0020 * @tc.name SendEvent_windowUpdateType_0020
* @tc.desc The windowUpdateType of EventInfo is 'remove', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'remove', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -887,11 +883,11 @@ describe('AccessibleSendEvent', function () { ...@@ -887,11 +883,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -900,7 +896,7 @@ describe('AccessibleSendEvent', function () { ...@@ -900,7 +896,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0030 * @tc.number SendEvent_windowUpdateType_0030
* @tc.name SendEvent_windowUpdateType_0030 * @tc.name SendEvent_windowUpdateType_0030
* @tc.desc The windowUpdateType of EventInfo is 'title', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'title', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -914,11 +910,11 @@ describe('AccessibleSendEvent', function () { ...@@ -914,11 +910,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -927,7 +923,7 @@ describe('AccessibleSendEvent', function () { ...@@ -927,7 +923,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0040 * @tc.number SendEvent_windowUpdateType_0040
* @tc.name SendEvent_windowUpdateType_0040 * @tc.name SendEvent_windowUpdateType_0040
* @tc.desc The windowUpdateType of EventInfo is 'bounds', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'bounds', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -941,11 +937,11 @@ describe('AccessibleSendEvent', function () { ...@@ -941,11 +937,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -954,7 +950,7 @@ describe('AccessibleSendEvent', function () { ...@@ -954,7 +950,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0050 * @tc.number SendEvent_windowUpdateType_0050
* @tc.name SendEvent_windowUpdateType_0050 * @tc.name SendEvent_windowUpdateType_0050
* @tc.desc The windowUpdateType of EventInfo is 'layer', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'layer', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -968,11 +964,11 @@ describe('AccessibleSendEvent', function () { ...@@ -968,11 +964,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -981,7 +977,7 @@ describe('AccessibleSendEvent', function () { ...@@ -981,7 +977,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0060 * @tc.number SendEvent_windowUpdateType_0060
* @tc.name SendEvent_windowUpdateType_0060 * @tc.name SendEvent_windowUpdateType_0060
* @tc.desc The windowUpdateType of EventInfo is 'active', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'active', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -995,11 +991,11 @@ describe('AccessibleSendEvent', function () { ...@@ -995,11 +991,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1008,7 +1004,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1008,7 +1004,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0070 * @tc.number SendEvent_windowUpdateType_0070
* @tc.name SendEvent_windowUpdateType_0070 * @tc.name SendEvent_windowUpdateType_0070
* @tc.desc The windowUpdateType of EventInfo is 'focus', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'focus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1022,11 +1018,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1022,11 +1018,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1035,7 +1031,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1035,7 +1031,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0080 * @tc.number SendEvent_windowUpdateType_0080
* @tc.name SendEvent_windowUpdateType_0080 * @tc.name SendEvent_windowUpdateType_0080
* @tc.desc The windowUpdateType of EventInfo is 'accessibilityFocus', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'accessibilityFocus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1049,11 +1045,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1049,11 +1045,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0080 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0080 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1062,7 +1058,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1062,7 +1058,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0090 * @tc.number SendEvent_windowUpdateType_0090
* @tc.name SendEvent_windowUpdateType_0090 * @tc.name SendEvent_windowUpdateType_0090
* @tc.desc The windowUpdateType of EventInfo is 'parent', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'parent', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1076,11 +1072,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1076,11 +1072,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0090 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0090 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1089,7 +1085,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1089,7 +1085,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0010 * @tc.number SendEvent_windowUpdateType_0010
* @tc.name SendEvent_windowUpdateType_0010 * @tc.name SendEvent_windowUpdateType_0010
* @tc.desc The windowUpdateType of EventInfo is 'children', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'children', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1103,11 +1099,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1103,11 +1099,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1116,7 +1112,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1116,7 +1112,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0011 * @tc.number SendEvent_windowUpdateType_0011
* @tc.name SendEvent_windowUpdateType_0011 * @tc.name SendEvent_windowUpdateType_0011
* @tc.desc The windowUpdateType of EventInfo is 'pip', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is 'pip', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1130,11 +1126,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1130,11 +1126,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0011 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0011 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1143,7 +1139,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1143,7 +1139,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0012 * @tc.number SendEvent_windowUpdateType_0012
* @tc.name SendEvent_windowUpdateType_0012 * @tc.name SendEvent_windowUpdateType_0012
* @tc.desc The windowUpdateType of EventInfo is '', test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1157,11 +1153,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1157,11 +1153,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0012 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0012 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1170,7 +1166,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1170,7 +1166,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowUpdateType_0013 * @tc.number SendEvent_windowUpdateType_0013
* @tc.name SendEvent_windowUpdateType_0013 * @tc.name SendEvent_windowUpdateType_0013
* @tc.desc The windowUpdateType of EventInfo is null, test sendEvent() function * @tc.desc The windowUpdateType of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1184,11 +1180,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1184,11 +1180,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0013 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowUpdateType_0013 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1197,7 +1193,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1197,7 +1193,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_bundleName_0010 * @tc.number SendEvent_bundleName_0010
* @tc.name SendEvent_bundleName_0010 * @tc.name SendEvent_bundleName_0010
* @tc.desc The bundleName of EventInfo is 'com.ixaa.testfora11y', test sendEvent() function * @tc.desc The bundleName of EventInfo is 'com.ixaa.testfora11y', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1210,11 +1206,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1210,11 +1206,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = localBundleName; event.bundleName = localBundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_bundleName_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_bundleName_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1223,7 +1219,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1223,7 +1219,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_bundleName_0020 * @tc.number SendEvent_bundleName_0020
* @tc.name SendEvent_bundleName_0020 * @tc.name SendEvent_bundleName_0020
* @tc.desc The bundleName of EventInfo is '', test sendEvent() function * @tc.desc The bundleName of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1235,13 +1231,14 @@ describe('AccessibleSendEvent', function () { ...@@ -1235,13 +1231,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = localBundleName; event.bundleName = localBundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_bundleName_0020 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_bundleName_0020 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_bundleName_0020 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -1249,7 +1246,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1249,7 +1246,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_bundleName_0030 * @tc.number SendEvent_bundleName_0030
* @tc.name SendEvent_bundleName_0030 * @tc.name SendEvent_bundleName_0030
* @tc.desc The bundleName of EventInfo is null, test sendEvent() function * @tc.desc The bundleName of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1261,13 +1258,14 @@ describe('AccessibleSendEvent', function () { ...@@ -1261,13 +1258,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = localBundleName; event.bundleName = localBundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_bundleName_0030 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_bundleName_0030 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_bundleName_0030 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -1275,7 +1273,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1275,7 +1273,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentType_0010 * @tc.number SendEvent_componentType_0010
* @tc.name SendEvent_componentType_0010 * @tc.name SendEvent_componentType_0010
* @tc.desc The componentType of EventInfo is 'button', test sendEvent() function * @tc.desc The componentType of EventInfo is 'button', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1289,11 +1287,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1289,11 +1287,11 @@ describe('AccessibleSendEvent', function () {
event.componentType = componentType; event.componentType = componentType;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentType_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentType_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1302,7 +1300,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1302,7 +1300,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentType_0020 * @tc.number SendEvent_componentType_0020
* @tc.name SendEvent_componentType_0020 * @tc.name SendEvent_componentType_0020
* @tc.desc The componentType of EventInfo is '', test sendEvent() function * @tc.desc The componentType of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1316,11 +1314,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1316,11 +1314,11 @@ describe('AccessibleSendEvent', function () {
event.componentType = componentType; event.componentType = componentType;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentType_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentType_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1329,7 +1327,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1329,7 +1327,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentType_0030 * @tc.number SendEvent_componentType_0030
* @tc.name SendEvent_componentType_0030 * @tc.name SendEvent_componentType_0030
* @tc.desc The componentType of EventInfo is null, test sendEvent() function * @tc.desc The componentType of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1343,11 +1341,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1343,11 +1341,11 @@ describe('AccessibleSendEvent', function () {
event.componentType = componentType; event.componentType = componentType;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentType_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentType_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1356,7 +1354,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1356,7 +1354,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_timeStamp_0010 * @tc.number SendEvent_timeStamp_0010
* @tc.name SendEvent_timeStamp_0010 * @tc.name SendEvent_timeStamp_0010
* @tc.desc The timeStamp of EventInfo is 1, test sendEvent() function * @tc.desc The timeStamp of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1370,11 +1368,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1370,11 +1368,11 @@ describe('AccessibleSendEvent', function () {
event.timeStamp = timeStamp; event.timeStamp = timeStamp;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_timeStamp_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_timeStamp_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1383,7 +1381,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1383,7 +1381,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_timeStamp_0020 * @tc.number SendEvent_timeStamp_0020
* @tc.name SendEvent_timeStamp_0020 * @tc.name SendEvent_timeStamp_0020
* @tc.desc The timeStamp of EventInfo is 0, test sendEvent() function * @tc.desc The timeStamp of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1397,11 +1395,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1397,11 +1395,11 @@ describe('AccessibleSendEvent', function () {
event.timeStamp = timeStamp; event.timeStamp = timeStamp;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_timeStamp_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_timeStamp_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1410,7 +1408,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1410,7 +1408,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_timeStamp_0030 * @tc.number SendEvent_timeStamp_0030
* @tc.name SendEvent_timeStamp_0030 * @tc.name SendEvent_timeStamp_0030
* @tc.desc The timeStamp of EventInfo is -1, test sendEvent() function * @tc.desc The timeStamp of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1424,11 +1422,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1424,11 +1422,11 @@ describe('AccessibleSendEvent', function () {
event.timeStamp = timeStamp; event.timeStamp = timeStamp;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_timeStamp_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_timeStamp_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1437,7 +1435,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1437,7 +1435,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowId_0010 * @tc.number SendEvent_windowId_0010
* @tc.name SendEvent_windowId_0010 * @tc.name SendEvent_windowId_0010
* @tc.desc The windowId of EventInfo is 1, test sendEvent() function * @tc.desc The windowId of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1451,11 +1449,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1451,11 +1449,11 @@ describe('AccessibleSendEvent', function () {
event.windowId = windowId; event.windowId = windowId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowId_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowId_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1464,7 +1462,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1464,7 +1462,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowId_0020 * @tc.number SendEvent_windowId_0020
* @tc.name SendEvent_windowId_0020 * @tc.name SendEvent_windowId_0020
* @tc.desc The windowId of EventInfo is 0, test sendEvent() function * @tc.desc The windowId of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1478,11 +1476,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1478,11 +1476,11 @@ describe('AccessibleSendEvent', function () {
event.windowId = windowId; event.windowId = windowId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowId_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowId_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1491,7 +1489,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1491,7 +1489,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_windowId_0030 * @tc.number SendEvent_windowId_0030
* @tc.name SendEvent_windowId_0030 * @tc.name SendEvent_windowId_0030
* @tc.desc The windowId of EventInfo is -1, test sendEvent() function * @tc.desc The windowId of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1505,11 +1503,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1505,11 +1503,11 @@ describe('AccessibleSendEvent', function () {
event.windowId = windowId; event.windowId = windowId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_windowId_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_windowId_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1518,7 +1516,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1518,7 +1516,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_pageId_0010 * @tc.number SendEvent_pageId_0010
* @tc.name SendEvent_pageId_0010 * @tc.name SendEvent_pageId_0010
* @tc.desc The pageId of EventInfo is 1, test sendEvent() function * @tc.desc The pageId of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1532,11 +1530,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1532,11 +1530,11 @@ describe('AccessibleSendEvent', function () {
event.pageId = pageId; event.pageId = pageId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_pageId_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_pageId_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1545,7 +1543,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1545,7 +1543,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_pageId_0020 * @tc.number SendEvent_pageId_0020
* @tc.name SendEvent_pageId_0020 * @tc.name SendEvent_pageId_0020
* @tc.desc The pageId of EventInfo is 0, test sendEvent() function * @tc.desc The pageId of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1559,11 +1557,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1559,11 +1557,11 @@ describe('AccessibleSendEvent', function () {
event.pageId = pageId; event.pageId = pageId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_pageId_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_pageId_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1572,7 +1570,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1572,7 +1570,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_pageId_0030 * @tc.number SendEvent_pageId_0030
* @tc.name SendEvent_pageId_0030 * @tc.name SendEvent_pageId_0030
* @tc.desc The pageId of EventInfo is -1, test sendEvent() function * @tc.desc The pageId of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1586,11 +1584,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1586,11 +1584,11 @@ describe('AccessibleSendEvent', function () {
event.pageId = pageId; event.pageId = pageId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_pageId_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_pageId_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1599,7 +1597,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1599,7 +1597,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentId_0010 * @tc.number SendEvent_componentId_0010
* @tc.name SendEvent_componentId_0010 * @tc.name SendEvent_componentId_0010
* @tc.desc The componentId of EventInfo is 1, test sendEvent() function * @tc.desc The componentId of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1613,11 +1611,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1613,11 +1611,11 @@ describe('AccessibleSendEvent', function () {
event.componentId = componentId; event.componentId = componentId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentId_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentId_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1626,7 +1624,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1626,7 +1624,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentId_0020 * @tc.number SendEvent_componentId_0020
* @tc.name SendEvent_componentId_0020 * @tc.name SendEvent_componentId_0020
* @tc.desc The componentId of EventInfo is 0, test sendEvent() function * @tc.desc The componentId of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1640,11 +1638,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1640,11 +1638,11 @@ describe('AccessibleSendEvent', function () {
event.componentId = componentId; event.componentId = componentId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentId_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentId_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1653,7 +1651,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1653,7 +1651,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_componentId_0030 * @tc.number SendEvent_componentId_0030
* @tc.name SendEvent_componentId_0030 * @tc.name SendEvent_componentId_0030
* @tc.desc The componentId of EventInfo is -1, test sendEvent() function * @tc.desc The componentId of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1667,11 +1665,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1667,11 +1665,11 @@ describe('AccessibleSendEvent', function () {
event.componentId = componentId; event.componentId = componentId;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_componentId_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_componentId_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1680,7 +1678,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1680,7 +1678,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_description_0010 * @tc.number SendEvent_description_0010
* @tc.name SendEvent_description_0010 * @tc.name SendEvent_description_0010
* @tc.desc The description of EventInfo is '1', test sendEvent() function * @tc.desc The description of EventInfo is '1', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1694,11 +1692,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1694,11 +1692,11 @@ describe('AccessibleSendEvent', function () {
event.description = description; event.description = description;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_description_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_description_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1707,7 +1705,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1707,7 +1705,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_description_0020 * @tc.number SendEvent_description_0020
* @tc.name SendEvent_description_0020 * @tc.name SendEvent_description_0020
* @tc.desc The description of EventInfo is '', test sendEvent() function * @tc.desc The description of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1721,11 +1719,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1721,11 +1719,11 @@ describe('AccessibleSendEvent', function () {
event.description = description; event.description = description;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_description_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_description_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1734,7 +1732,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1734,7 +1732,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_description_0030 * @tc.number SendEvent_description_0030
* @tc.name SendEvent_description_0030 * @tc.name SendEvent_description_0030
* @tc.desc The description of EventInfo is null, test sendEvent() function * @tc.desc The description of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1748,11 +1746,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1748,11 +1746,11 @@ describe('AccessibleSendEvent', function () {
event.description = description; event.description = description;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_description_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_description_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1761,7 +1759,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1761,7 +1759,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0010 * @tc.number SendEvent_triggerAction_0010
* @tc.name SendEvent_triggerAction_0010 * @tc.name SendEvent_triggerAction_0010
* @tc.desc The triggerAction of EventInfo is 'accessibilityFocus', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'accessibilityFocus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1774,11 +1772,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1774,11 +1772,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1787,7 +1785,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1787,7 +1785,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0020 * @tc.number SendEvent_triggerAction_0020
* @tc.name SendEvent_triggerAction_0020 * @tc.name SendEvent_triggerAction_0020
* @tc.desc The triggerAction of EventInfo is 'clearAccessibilityFocus', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'clearAccessibilityFocus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1800,11 +1798,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1800,11 +1798,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1813,7 +1811,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1813,7 +1811,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0030 * @tc.number SendEvent_triggerAction_0030
* @tc.name SendEvent_triggerAction_0030 * @tc.name SendEvent_triggerAction_0030
* @tc.desc The triggerAction of EventInfo is 'focus', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'focus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1826,11 +1824,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1826,11 +1824,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1839,7 +1837,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1839,7 +1837,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0040 * @tc.number SendEvent_triggerAction_0040
* @tc.name SendEvent_triggerAction_0040 * @tc.name SendEvent_triggerAction_0040
* @tc.desc The triggerAction of EventInfo is 'clearFocus', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'clearFocus', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1852,11 +1850,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1852,11 +1850,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1865,7 +1863,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1865,7 +1863,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0050 * @tc.number SendEvent_triggerAction_0050
* @tc.name SendEvent_triggerAction_0050 * @tc.name SendEvent_triggerAction_0050
* @tc.desc The triggerAction of EventInfo is 'clearSelection', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'clearSelection', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1878,11 +1876,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1878,11 +1876,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1891,7 +1889,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1891,7 +1889,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0060 * @tc.number SendEvent_triggerAction_0060
* @tc.name SendEvent_triggerAction_0060 * @tc.name SendEvent_triggerAction_0060
* @tc.desc The triggerAction of EventInfo is 'click', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'click', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1904,11 +1902,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1904,11 +1902,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1917,7 +1915,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1917,7 +1915,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0070 * @tc.number SendEvent_triggerAction_0070
* @tc.name SendEvent_triggerAction_0070 * @tc.name SendEvent_triggerAction_0070
* @tc.desc The triggerAction of EventInfo is 'longClick', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'longClick', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1930,11 +1928,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1930,11 +1928,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1943,7 +1941,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1943,7 +1941,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0080 * @tc.number SendEvent_triggerAction_0080
* @tc.name SendEvent_triggerAction_0080 * @tc.name SendEvent_triggerAction_0080
* @tc.desc The triggerAction of EventInfo is 'cut', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'cut', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1956,11 +1954,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1956,11 +1954,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0080 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0080 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1969,7 +1967,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1969,7 +1967,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0090 * @tc.number SendEvent_triggerAction_0090
* @tc.name SendEvent_triggerAction_0090 * @tc.name SendEvent_triggerAction_0090
* @tc.desc The triggerAction of EventInfo is 'copy', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'copy', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -1982,11 +1980,11 @@ describe('AccessibleSendEvent', function () { ...@@ -1982,11 +1980,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0090 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0090 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -1995,7 +1993,7 @@ describe('AccessibleSendEvent', function () { ...@@ -1995,7 +1993,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0100 * @tc.number SendEvent_triggerAction_0100
* @tc.name SendEvent_triggerAction_0100 * @tc.name SendEvent_triggerAction_0100
* @tc.desc The triggerAction of EventInfo is 'paste', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'paste', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2008,11 +2006,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2008,11 +2006,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0100 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0100 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2021,7 +2019,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2021,7 +2019,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0110 * @tc.number SendEvent_triggerAction_0110
* @tc.name SendEvent_triggerAction_0110 * @tc.name SendEvent_triggerAction_0110
* @tc.desc The triggerAction of EventInfo is 'select', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'select', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2034,11 +2032,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2034,11 +2032,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0110 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0110 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2047,7 +2045,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2047,7 +2045,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0120 * @tc.number SendEvent_triggerAction_0120
* @tc.name SendEvent_triggerAction_0120 * @tc.name SendEvent_triggerAction_0120
* @tc.desc The triggerAction of EventInfo is 'setText', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'setText', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2060,11 +2058,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2060,11 +2058,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0120 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0120 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2073,7 +2071,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2073,7 +2071,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0130 * @tc.number SendEvent_triggerAction_0130
* @tc.name SendEvent_triggerAction_0130 * @tc.name SendEvent_triggerAction_0130
* @tc.desc The triggerAction of EventInfo is 'delete', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'delete', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2086,11 +2084,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2086,11 +2084,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0130 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0130 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2099,7 +2097,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2099,7 +2097,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0140 * @tc.number SendEvent_triggerAction_0140
* @tc.name SendEvent_triggerAction_0140 * @tc.name SendEvent_triggerAction_0140
* @tc.desc The triggerAction of EventInfo is 'scrollForward', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'scrollForward', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2112,11 +2110,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2112,11 +2110,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0140 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0140 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2125,7 +2123,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2125,7 +2123,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0150 * @tc.number SendEvent_triggerAction_0150
* @tc.name SendEvent_triggerAction_0150 * @tc.name SendEvent_triggerAction_0150
* @tc.desc The triggerAction of EventInfo is 'scrollBackward', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'scrollBackward', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2138,11 +2136,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2138,11 +2136,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0150 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0150 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2151,7 +2149,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2151,7 +2149,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0160 * @tc.number SendEvent_triggerAction_0160
* @tc.name SendEvent_triggerAction_0160 * @tc.name SendEvent_triggerAction_0160
* @tc.desc The triggerAction of EventInfo is 'setSelection', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'setSelection', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2164,11 +2162,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2164,11 +2162,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0160 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0160 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2177,7 +2175,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2177,7 +2175,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0170 * @tc.number SendEvent_triggerAction_0170
* @tc.name SendEvent_triggerAction_0170 * @tc.name SendEvent_triggerAction_0170
* @tc.desc The triggerAction of EventInfo is 'unfold', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'unfold', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2190,11 +2188,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2190,11 +2188,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0170 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0170 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2203,7 +2201,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2203,7 +2201,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0180 * @tc.number SendEvent_triggerAction_0180
* @tc.name SendEvent_triggerAction_0180 * @tc.name SendEvent_triggerAction_0180
* @tc.desc The triggerAction of EventInfo is 'fold', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'fold', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2216,11 +2214,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2216,11 +2214,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0180 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0180 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2229,7 +2227,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2229,7 +2227,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0190 * @tc.number SendEvent_triggerAction_0190
* @tc.name SendEvent_triggerAction_0190 * @tc.name SendEvent_triggerAction_0190
* @tc.desc The triggerAction of EventInfo is 'nextText', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'nextText', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2242,11 +2240,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2242,11 +2240,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0190 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0190 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2255,7 +2253,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2255,7 +2253,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0200 * @tc.number SendEvent_triggerAction_0200
* @tc.name SendEvent_triggerAction_0200 * @tc.name SendEvent_triggerAction_0200
* @tc.desc The triggerAction of EventInfo is 'previousText', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'previousText', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2268,11 +2266,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2268,11 +2266,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0200 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0200 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2281,7 +2279,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2281,7 +2279,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0210 * @tc.number SendEvent_triggerAction_0210
* @tc.name SendEvent_triggerAction_0210 * @tc.name SendEvent_triggerAction_0210
* @tc.desc The triggerAction of EventInfo is 'nextHtmlItem', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'nextHtmlItem', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2294,11 +2292,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2294,11 +2292,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0210 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0210 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2307,7 +2305,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2307,7 +2305,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0220 * @tc.number SendEvent_triggerAction_0220
* @tc.name SendEvent_triggerAction_0220 * @tc.name SendEvent_triggerAction_0220
* @tc.desc The triggerAction of EventInfo is 'previousHtmlItem', test sendEvent() function * @tc.desc The triggerAction of EventInfo is 'previousHtmlItem', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2320,11 +2318,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2320,11 +2318,11 @@ describe('AccessibleSendEvent', function () {
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0220 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0220 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2333,7 +2331,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2333,7 +2331,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0230 * @tc.number SendEvent_triggerAction_0230
* @tc.name SendEvent_triggerAction_0230 * @tc.name SendEvent_triggerAction_0230
* @tc.desc The triggerAction of EventInfo is '', test sendEvent() function * @tc.desc The triggerAction of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2345,13 +2343,14 @@ describe('AccessibleSendEvent', function () { ...@@ -2345,13 +2343,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0230 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0230 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_triggerAction_0230 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -2359,7 +2358,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2359,7 +2358,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_triggerAction_0240 * @tc.number SendEvent_triggerAction_0240
* @tc.name SendEvent_triggerAction_0240 * @tc.name SendEvent_triggerAction_0240
* @tc.desc The triggerAction of EventInfo is null, test sendEvent() function * @tc.desc The triggerAction of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to false * The result of sendEvent() should be equal to a rejected promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2371,13 +2370,14 @@ describe('AccessibleSendEvent', function () { ...@@ -2371,13 +2370,14 @@ describe('AccessibleSendEvent', function () {
event.type = eventType; event.type = eventType;
event.bundleName = bundleName; event.bundleName = bundleName;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) =>{
expect(result).assertEqual(false); console.error(`AccessibleSendEvent: SendEvent_triggerAction_0240 result ${result}`);
}).catch(err => { expect(null).assertFail();
console.error(`AccessibleSendEvent: SendEvent_triggerAction_0240 has error: ${err}`); done();
expect(null).assertFail(); }).catch((err) => {
}).finally(() => { console.info(`AccessibleSendEvent: SendEvent_triggerAction_0240 has error: ${err}`);
done(); expect(err).assertEqual(undefined);
done();
}); });
}) })
...@@ -2385,7 +2385,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2385,7 +2385,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0010 * @tc.number SendEvent_textMoveUnit_0010
* @tc.name SendEvent_textMoveUnit_0010 * @tc.name SendEvent_textMoveUnit_0010
* @tc.desc The textMoveUnit of EventInfo is 'char', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is 'char', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2399,11 +2399,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2399,11 +2399,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2412,7 +2412,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2412,7 +2412,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0020 * @tc.number SendEvent_textMoveUnit_0020
* @tc.name SendEvent_textMoveUnit_0020 * @tc.name SendEvent_textMoveUnit_0020
* @tc.desc The textMoveUnit of EventInfo is 'word', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is 'word', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2426,11 +2426,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2426,11 +2426,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2439,7 +2439,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2439,7 +2439,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0030 * @tc.number SendEvent_textMoveUnit_0030
* @tc.name SendEvent_textMoveUnit_0030 * @tc.name SendEvent_textMoveUnit_0030
* @tc.desc The textMoveUnit of EventInfo is 'line', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is 'line', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2453,11 +2453,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2453,11 +2453,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2466,7 +2466,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2466,7 +2466,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0040 * @tc.number SendEvent_textMoveUnit_0040
* @tc.name SendEvent_textMoveUnit_0040 * @tc.name SendEvent_textMoveUnit_0040
* @tc.desc The textMoveUnit of EventInfo is 'page', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is 'page', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2480,11 +2480,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2480,11 +2480,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2493,7 +2493,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2493,7 +2493,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0050 * @tc.number SendEvent_textMoveUnit_0050
* @tc.name SendEvent_textMoveUnit_0050 * @tc.name SendEvent_textMoveUnit_0050
* @tc.desc The textMoveUnit of EventInfo is 'paragraph', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is 'paragraph', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2507,11 +2507,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2507,11 +2507,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2520,7 +2520,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2520,7 +2520,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0060 * @tc.number SendEvent_textMoveUnit_0060
* @tc.name SendEvent_textMoveUnit_0060 * @tc.name SendEvent_textMoveUnit_0060
* @tc.desc The textMoveUnit of EventInfo is '', test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2534,11 +2534,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2534,11 +2534,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2547,7 +2547,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2547,7 +2547,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_textMoveUnit_0070 * @tc.number SendEvent_textMoveUnit_0070
* @tc.name SendEvent_textMoveUnit_0070 * @tc.name SendEvent_textMoveUnit_0070
* @tc.desc The textMoveUnit of EventInfo is null, test sendEvent() function * @tc.desc The textMoveUnit of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2561,11 +2561,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2561,11 +2561,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.textMoveUnit = textMoveUnit; event.textMoveUnit = textMoveUnit;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_textMoveUnit_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2574,7 +2574,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2574,7 +2574,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_contents_0010 * @tc.number SendEvent_contents_0010
* @tc.name SendEvent_contents_0010 * @tc.name SendEvent_contents_0010
* @tc.desc The contents of EventInfo is ['1'], test sendEvent() function * @tc.desc The contents of EventInfo is ['1'], test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2588,11 +2588,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2588,11 +2588,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.contents = contents; event.contents = contents;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_contents_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_contents_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2601,7 +2601,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2601,7 +2601,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_contents_0020 * @tc.number SendEvent_contents_0020
* @tc.name SendEvent_contents_0020 * @tc.name SendEvent_contents_0020
* @tc.desc The contents of EventInfo is [], test sendEvent() function * @tc.desc The contents of EventInfo is [], test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2615,11 +2615,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2615,11 +2615,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.contents = contents; event.contents = contents;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_contents_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_contents_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2628,7 +2628,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2628,7 +2628,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_lastContent_0010 * @tc.number SendEvent_lastContent_0010
* @tc.name SendEvent_lastContent_0010 * @tc.name SendEvent_lastContent_0010
* @tc.desc The lastContent of EventInfo is '1', test sendEvent() function * @tc.desc The lastContent of EventInfo is '1', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2642,11 +2642,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2642,11 +2642,11 @@ describe('AccessibleSendEvent', function () {
event.lastContent = lastContent; event.lastContent = lastContent;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_lastContent_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_lastContent_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2655,7 +2655,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2655,7 +2655,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_lastContent_0020 * @tc.number SendEvent_lastContent_0020
* @tc.name SendEvent_lastContent_0020 * @tc.name SendEvent_lastContent_0020
* @tc.desc The lastContent of EventInfo is '', test sendEvent() function * @tc.desc The lastContent of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2669,11 +2669,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2669,11 +2669,11 @@ describe('AccessibleSendEvent', function () {
event.lastContent = lastContent; event.lastContent = lastContent;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_lastContent_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_lastContent_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2682,7 +2682,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2682,7 +2682,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_lastContent_0030 * @tc.number SendEvent_lastContent_0030
* @tc.name SendEvent_lastContent_0030 * @tc.name SendEvent_lastContent_0030
* @tc.desc The lastContent of EventInfo is null, test sendEvent() function * @tc.desc The lastContent of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2696,11 +2696,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2696,11 +2696,11 @@ describe('AccessibleSendEvent', function () {
event.lastContent = lastContent; event.lastContent = lastContent;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_lastContent_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_lastContent_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2710,7 +2710,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2710,7 +2710,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_beginIndex_0010 * @tc.number SendEvent_beginIndex_0010
* @tc.name SendEvent_beginIndex_0010 * @tc.name SendEvent_beginIndex_0010
* @tc.desc The beginIndex of EventInfo is 1, test sendEvent() function * @tc.desc The beginIndex of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2724,11 +2724,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2724,11 +2724,11 @@ describe('AccessibleSendEvent', function () {
event.beginIndex = beginIndex; event.beginIndex = beginIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_beginIndex_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_beginIndex_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2737,7 +2737,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2737,7 +2737,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_beginIndex_0020 * @tc.number SendEvent_beginIndex_0020
* @tc.name SendEvent_beginIndex_0020 * @tc.name SendEvent_beginIndex_0020
* @tc.desc The beginIndex of EventInfo is 0, test sendEvent() function * @tc.desc The beginIndex of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2751,11 +2751,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2751,11 +2751,11 @@ describe('AccessibleSendEvent', function () {
event.beginIndex = beginIndex; event.beginIndex = beginIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_beginIndex_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_beginIndex_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2764,7 +2764,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2764,7 +2764,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_beginIndex_0030 * @tc.number SendEvent_beginIndex_0030
* @tc.name SendEvent_beginIndex_0030 * @tc.name SendEvent_beginIndex_0030
* @tc.desc The beginIndex of EventInfo is -1, test sendEvent() function * @tc.desc The beginIndex of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2778,11 +2778,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2778,11 +2778,11 @@ describe('AccessibleSendEvent', function () {
event.beginIndex = beginIndex; event.beginIndex = beginIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_beginIndex_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_beginIndex_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2791,7 +2791,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2791,7 +2791,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_currentIndex_0010 * @tc.number SendEvent_currentIndex_0010
* @tc.name SendEvent_currentIndex_0010 * @tc.name SendEvent_currentIndex_0010
* @tc.desc The currentIndex of EventInfo is 1, test sendEvent() function * @tc.desc The currentIndex of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2805,11 +2805,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2805,11 +2805,11 @@ describe('AccessibleSendEvent', function () {
event.currentIndex = currentIndex; event.currentIndex = currentIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_currentIndex_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_currentIndex_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2818,7 +2818,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2818,7 +2818,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_currentIndex_0020 * @tc.number SendEvent_currentIndex_0020
* @tc.name SendEvent_currentIndex_0020 * @tc.name SendEvent_currentIndex_0020
* @tc.desc The currentIndex of EventInfo is 0, test sendEvent() function * @tc.desc The currentIndex of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2832,11 +2832,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2832,11 +2832,11 @@ describe('AccessibleSendEvent', function () {
event.currentIndex = currentIndex; event.currentIndex = currentIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_currentIndex_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_currentIndex_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2845,7 +2845,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2845,7 +2845,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_currentIndex_0030 * @tc.number SendEvent_currentIndex_0030
* @tc.name SendEvent_currentIndex_0030 * @tc.name SendEvent_currentIndex_0030
* @tc.desc The currentIndex of EventInfo is -1, test sendEvent() function * @tc.desc The currentIndex of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2859,11 +2859,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2859,11 +2859,11 @@ describe('AccessibleSendEvent', function () {
event.currentIndex = currentIndex; event.currentIndex = currentIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_currentIndex_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_currentIndex_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2872,7 +2872,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2872,7 +2872,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_endIndex_0010 * @tc.number SendEvent_endIndex_0010
* @tc.name SendEvent_endIndex_0010 * @tc.name SendEvent_endIndex_0010
* @tc.desc The endIndex of EventInfo is 1, test sendEvent() function * @tc.desc The endIndex of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2886,11 +2886,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2886,11 +2886,11 @@ describe('AccessibleSendEvent', function () {
event.endIndex = endIndex; event.endIndex = endIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_endIndex_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_endIndex_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2899,7 +2899,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2899,7 +2899,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_endIndex_0020 * @tc.number SendEvent_endIndex_0020
* @tc.name SendEvent_endIndex_0020 * @tc.name SendEvent_endIndex_0020
* @tc.desc The endIndex of EventInfo is 0, test sendEvent() function * @tc.desc The endIndex of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2913,11 +2913,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2913,11 +2913,11 @@ describe('AccessibleSendEvent', function () {
event.endIndex = endIndex; event.endIndex = endIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_endIndex_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_endIndex_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2926,7 +2926,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2926,7 +2926,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_endIndex_0030 * @tc.number SendEvent_endIndex_0030
* @tc.name SendEvent_endIndex_0030 * @tc.name SendEvent_endIndex_0030
* @tc.desc The endIndex of EventInfo is -1, test sendEvent() function * @tc.desc The endIndex of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2940,11 +2940,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2940,11 +2940,11 @@ describe('AccessibleSendEvent', function () {
event.endIndex = endIndex; event.endIndex = endIndex;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_endIndex_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_endIndex_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2953,7 +2953,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2953,7 +2953,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_itemCount_0010 * @tc.number SendEvent_itemCount_0010
* @tc.name SendEvent_itemCount_0010 * @tc.name SendEvent_itemCount_0010
* @tc.desc The itemCount of EventInfo is 1, test sendEvent() function * @tc.desc The itemCount of EventInfo is 1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2967,11 +2967,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2967,11 +2967,11 @@ describe('AccessibleSendEvent', function () {
event.itemCount = itemCount; event.itemCount = itemCount;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_itemCount_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_itemCount_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -2980,7 +2980,7 @@ describe('AccessibleSendEvent', function () { ...@@ -2980,7 +2980,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_itemCount_0020 * @tc.number SendEvent_itemCount_0020
* @tc.name SendEvent_itemCount_0020 * @tc.name SendEvent_itemCount_0020
* @tc.desc The itemCount of EventInfo is 0, test sendEvent() function * @tc.desc The itemCount of EventInfo is 0, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -2994,11 +2994,11 @@ describe('AccessibleSendEvent', function () { ...@@ -2994,11 +2994,11 @@ describe('AccessibleSendEvent', function () {
event.itemCount = itemCount; event.itemCount = itemCount;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_itemCount_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_itemCount_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3007,7 +3007,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3007,7 +3007,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_itemCount_0030 * @tc.number SendEvent_itemCount_0030
* @tc.name SendEvent_itemCount_0030 * @tc.name SendEvent_itemCount_0030
* @tc.desc The itemCount of EventInfo is -1, test sendEvent() function * @tc.desc The itemCount of EventInfo is -1, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3021,11 +3021,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3021,11 +3021,11 @@ describe('AccessibleSendEvent', function () {
event.itemCount = itemCount; event.itemCount = itemCount;
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_itemCount_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_itemCount_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3034,7 +3034,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3034,7 +3034,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0010 * @tc.number SendEvent_categoryNotification_0010
* @tc.name SendEvent_categoryNotification_0010 * @tc.name SendEvent_categoryNotification_0010
* @tc.desc The categoryNotification of EventInfo is 'call', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'call', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3048,11 +3048,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3048,11 +3048,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3061,7 +3061,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3061,7 +3061,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0020 * @tc.number SendEvent_categoryNotification_0020
* @tc.name SendEvent_categoryNotification_0020 * @tc.name SendEvent_categoryNotification_0020
* @tc.desc The categoryNotification of EventInfo is 'msg', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'msg', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3075,11 +3075,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3075,11 +3075,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3088,7 +3088,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3088,7 +3088,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0030 * @tc.number SendEvent_categoryNotification_0030
* @tc.name SendEvent_categoryNotification_0030 * @tc.name SendEvent_categoryNotification_0030
* @tc.desc The categoryNotification of EventInfo is 'email', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'email', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3102,11 +3102,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3102,11 +3102,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3115,7 +3115,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3115,7 +3115,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0040 * @tc.number SendEvent_categoryNotification_0040
* @tc.name SendEvent_categoryNotification_0040 * @tc.name SendEvent_categoryNotification_0040
* @tc.desc The categoryNotification of EventInfo is 'event', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'event', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3129,11 +3129,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3129,11 +3129,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3142,7 +3142,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3142,7 +3142,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0050 * @tc.number SendEvent_categoryNotification_0050
* @tc.name SendEvent_categoryNotification_0050 * @tc.name SendEvent_categoryNotification_0050
* @tc.desc The categoryNotification of EventInfo is 'promo', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'promo', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3156,11 +3156,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3156,11 +3156,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3169,7 +3169,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3169,7 +3169,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0060 * @tc.number SendEvent_categoryNotification_0060
* @tc.name SendEvent_categoryNotification_0060 * @tc.name SendEvent_categoryNotification_0060
* @tc.desc The categoryNotification of EventInfo is 'alarm', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'alarm', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3183,11 +3183,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3183,11 +3183,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3196,7 +3196,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3196,7 +3196,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0070 * @tc.number SendEvent_categoryNotification_0070
* @tc.name SendEvent_categoryNotification_0070 * @tc.name SendEvent_categoryNotification_0070
* @tc.desc The categoryNotification of EventInfo is 'progress', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'progress', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3210,11 +3210,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3210,11 +3210,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3223,7 +3223,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3223,7 +3223,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0080 * @tc.number SendEvent_categoryNotification_0080
* @tc.name SendEvent_categoryNotification_0080 * @tc.name SendEvent_categoryNotification_0080
* @tc.desc The categoryNotification of EventInfo is 'social', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'social', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3237,11 +3237,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3237,11 +3237,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0080 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0080 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3250,7 +3250,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3250,7 +3250,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0090 * @tc.number SendEvent_categoryNotification_0090
* @tc.name SendEvent_categoryNotification_0090 * @tc.name SendEvent_categoryNotification_0090
* @tc.desc The categoryNotification of EventInfo is 'err', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'err', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3264,11 +3264,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3264,11 +3264,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0090 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0090 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3277,7 +3277,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3277,7 +3277,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0100 * @tc.number SendEvent_categoryNotification_0100
* @tc.name SendEvent_categoryNotification_0100 * @tc.name SendEvent_categoryNotification_0100
* @tc.desc The categoryNotification of EventInfo is 'transport', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'transport', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3291,11 +3291,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3291,11 +3291,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0100 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0100 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3304,7 +3304,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3304,7 +3304,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0110 * @tc.number SendEvent_categoryNotification_0110
* @tc.name SendEvent_categoryNotification_0110 * @tc.name SendEvent_categoryNotification_0110
* @tc.desc The categoryNotification of EventInfo is 'sys', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'sys', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3318,11 +3318,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3318,11 +3318,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0110 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0110 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3331,7 +3331,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3331,7 +3331,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0120 * @tc.number SendEvent_categoryNotification_0120
* @tc.name SendEvent_categoryNotification_0120 * @tc.name SendEvent_categoryNotification_0120
* @tc.desc The categoryNotification of EventInfo is 'service', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is 'service', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3345,11 +3345,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3345,11 +3345,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0120 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0120 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3358,7 +3358,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3358,7 +3358,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0130 * @tc.number SendEvent_categoryNotification_0130
* @tc.name SendEvent_categoryNotification_0130 * @tc.name SendEvent_categoryNotification_0130
* @tc.desc The categoryNotification of EventInfo is '', test sendEvent() function * @tc.desc The categoryNotification of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3372,11 +3372,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3372,11 +3372,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0130 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0130 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3385,7 +3385,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3385,7 +3385,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_categoryNotification_0140 * @tc.number SendEvent_categoryNotification_0140
* @tc.name SendEvent_categoryNotification_0140 * @tc.name SendEvent_categoryNotification_0140
* @tc.desc The categoryNotification of EventInfo is null, test sendEvent() function * @tc.desc The categoryNotification of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3399,11 +3399,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3399,11 +3399,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.categoryNotification = categoryNotification; event.categoryNotification = categoryNotification;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0140 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_categoryNotification_0140 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3412,7 +3412,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3412,7 +3412,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0010 * @tc.number SendEvent_gestureType_0010
* @tc.name SendEvent_gestureType_0010 * @tc.name SendEvent_gestureType_0010
* @tc.desc The gestureType of EventInfo is 'left', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'left', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3426,11 +3426,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3426,11 +3426,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0010 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0010 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3439,7 +3439,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3439,7 +3439,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0020 * @tc.number SendEvent_gestureType_0020
* @tc.name SendEvent_gestureType_0020 * @tc.name SendEvent_gestureType_0020
* @tc.desc The gestureType of EventInfo is 'leftThenRight', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'leftThenRight', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3453,11 +3453,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3453,11 +3453,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0020 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0020 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3466,7 +3466,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3466,7 +3466,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0030 * @tc.number SendEvent_gestureType_0030
* @tc.name SendEvent_gestureType_0030 * @tc.name SendEvent_gestureType_0030
* @tc.desc The gestureType of EventInfo is 'leftThenUp', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'leftThenUp', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3480,11 +3480,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3480,11 +3480,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0030 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0030 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3493,7 +3493,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3493,7 +3493,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0040 * @tc.number SendEvent_gestureType_0040
* @tc.name SendEvent_gestureType_0040 * @tc.name SendEvent_gestureType_0040
* @tc.desc The gestureType of EventInfo is 'leftThenDown', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'leftThenDown', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3507,11 +3507,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3507,11 +3507,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0040 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0040 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3520,7 +3520,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3520,7 +3520,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0050 * @tc.number SendEvent_gestureType_0050
* @tc.name SendEvent_gestureType_0050 * @tc.name SendEvent_gestureType_0050
* @tc.desc The gestureType of EventInfo is 'right', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'right', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3534,11 +3534,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3534,11 +3534,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0050 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0050 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3547,7 +3547,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3547,7 +3547,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0060 * @tc.number SendEvent_gestureType_0060
* @tc.name SendEvent_gestureType_0060 * @tc.name SendEvent_gestureType_0060
* @tc.desc The gestureType of EventInfo is 'rightThenLeft', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'rightThenLeft', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3561,11 +3561,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3561,11 +3561,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0060 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0060 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3574,7 +3574,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3574,7 +3574,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0070 * @tc.number SendEvent_gestureType_0070
* @tc.name SendEvent_gestureType_0070 * @tc.name SendEvent_gestureType_0070
* @tc.desc The gestureType of EventInfo is 'rightThenUp', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'rightThenUp', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3588,11 +3588,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3588,11 +3588,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0070 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0070 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3601,7 +3601,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3601,7 +3601,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0080 * @tc.number SendEvent_gestureType_0080
* @tc.name SendEvent_gestureType_0080 * @tc.name SendEvent_gestureType_0080
* @tc.desc The gestureType of EventInfo is 'rightThenDown', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'rightThenDown', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3615,11 +3615,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3615,11 +3615,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0080 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0080 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3628,7 +3628,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3628,7 +3628,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0090 * @tc.number SendEvent_gestureType_0090
* @tc.name SendEvent_gestureType_0090 * @tc.name SendEvent_gestureType_0090
* @tc.desc The gestureType of EventInfo is 'up', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'up', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3642,11 +3642,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3642,11 +3642,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0090 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0090 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3655,7 +3655,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3655,7 +3655,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0100 * @tc.number SendEvent_gestureType_0100
* @tc.name SendEvent_gestureType_0100 * @tc.name SendEvent_gestureType_0100
* @tc.desc The gestureType of EventInfo is 'upThenLeft', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'upThenLeft', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3669,11 +3669,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3669,11 +3669,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0100 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0100 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3682,7 +3682,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3682,7 +3682,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0110 * @tc.number SendEvent_gestureType_0110
* @tc.name SendEvent_gestureType_0110 * @tc.name SendEvent_gestureType_0110
* @tc.desc The gestureType of EventInfo is 'upThenRight', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'upThenRight', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3696,11 +3696,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3696,11 +3696,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0110 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0110 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3709,7 +3709,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3709,7 +3709,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0120 * @tc.number SendEvent_gestureType_0120
* @tc.name SendEvent_gestureType_0120 * @tc.name SendEvent_gestureType_0120
* @tc.desc The gestureType of EventInfo is 'upThenDown', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'upThenDown', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3723,11 +3723,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3723,11 +3723,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0120 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0120 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3736,7 +3736,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3736,7 +3736,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0130 * @tc.number SendEvent_gestureType_0130
* @tc.name SendEvent_gestureType_0130 * @tc.name SendEvent_gestureType_0130
* @tc.desc The gestureType of EventInfo is 'down', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'down', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3750,11 +3750,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3750,11 +3750,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0130 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0130 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3763,7 +3763,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3763,7 +3763,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0140 * @tc.number SendEvent_gestureType_0140
* @tc.name SendEvent_gestureType_0140 * @tc.name SendEvent_gestureType_0140
* @tc.desc The gestureType of EventInfo is 'downThenLeft', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'downThenLeft', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3777,11 +3777,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3777,11 +3777,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0140 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0140 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3790,7 +3790,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3790,7 +3790,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0150 * @tc.number SendEvent_gestureType_0150
* @tc.name SendEvent_gestureType_0150 * @tc.name SendEvent_gestureType_0150
* @tc.desc The gestureType of EventInfo is 'downThenRight', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'downThenRight', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3804,11 +3804,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3804,11 +3804,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0150 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0150 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3817,7 +3817,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3817,7 +3817,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0160 * @tc.number SendEvent_gestureType_0160
* @tc.name SendEvent_gestureType_0160 * @tc.name SendEvent_gestureType_0160
* @tc.desc The gestureType of EventInfo is 'downThenUp', test sendEvent() function * @tc.desc The gestureType of EventInfo is 'downThenUp', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3831,11 +3831,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3831,11 +3831,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0160 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0160 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3844,7 +3844,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3844,7 +3844,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0170 * @tc.number SendEvent_gestureType_0170
* @tc.name SendEvent_gestureType_0170 * @tc.name SendEvent_gestureType_0170
* @tc.desc The gestureType of EventInfo is '', test sendEvent() function * @tc.desc The gestureType of EventInfo is '', test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3858,11 +3858,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3858,11 +3858,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0170 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0170 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
...@@ -3871,7 +3871,7 @@ describe('AccessibleSendEvent', function () { ...@@ -3871,7 +3871,7 @@ describe('AccessibleSendEvent', function () {
* @tc.number SendEvent_gestureType_0180 * @tc.number SendEvent_gestureType_0180
* @tc.name SendEvent_gestureType_0180 * @tc.name SendEvent_gestureType_0180
* @tc.desc The gestureType of EventInfo is null, test sendEvent() function * @tc.desc The gestureType of EventInfo is null, test sendEvent() function
* The result of sendEvent() should be equal to true * The result of sendEvent() should be equal to a promise of undefined
* @tc.size SmallTest * @tc.size SmallTest
* @tc.type User * @tc.type User
*/ */
...@@ -3885,11 +3885,11 @@ describe('AccessibleSendEvent', function () { ...@@ -3885,11 +3885,11 @@ describe('AccessibleSendEvent', function () {
event.triggerAction = triggerAction; event.triggerAction = triggerAction;
event.gestureType = gestureType; event.gestureType = gestureType;
accessibility.sendEvent(event).then((result) => { accessibility.sendEvent(event).then((result) => {
expect(result).assertEqual(true); expect(result).assertEqual(undefined);
done();
}).catch(err => { }).catch(err => {
console.error(`AccessibleSendEvent: SendEvent_gestureType_0180 has error: ${err}`); console.error(`AccessibleSendEvent: SendEvent_gestureType_0180 has error: ${err}`);
expect(null).assertFail(); expect(null).assertFail();
}).finally(() => {
done(); done();
}); });
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册