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

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

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