提交 fe876aaa 编写于 作者: Z zhijianwen

xts

Signed-off-by: Nzhijianwen <zhijianwen@huawei.com>
上级 ffab6bbd
......@@ -165,13 +165,18 @@ describe('ActsAnsDistributeTest', function () {
* @tc.desc: isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void
*/
it('ActsDistribute_test_0600', 0, async function (done) {
console.info("==>ActsDistribute_test_0600 start==>");
var templateName = '/system/etc/notification_template/assets/js/downloadTemplate.js';
await notify.isSupportTemplate(templateName,function(data){
console.log("===>isSupportTemplateCallback success===>"+JSON.stringify(data))
console.log("===>isSupportTemplateCallback success===>"+err.code)
})
function isSupportTemplateCallback(err, data) {
if(err) {
console.error("isSupportTemplateCallback" + err.code);
} else {
expect(true).assertTrue();
console.info("isSupportTemplateCallback" + JSON.stringify(data));
done();
}
}
notify.isSupportTemplate(templateName, isSupportTemplateCallback);
done();
})
......@@ -181,12 +186,13 @@ describe('ActsAnsDistributeTest', function () {
* @tc.desc: isSupportTemplate(templateName: string): Promise<boolean>
*/
it('ActsDistribute_test_0700', 0, async function (done) {
console.info("==>ActsDistribute_test_0700 start==>");
var templateName = '/system/etc/notification_template/assets/js/downloadTemplate.js';
await notify.isSupportTemplate(templateName).then ((data) => {
console.log("isSupportTemplatePromise")
console.log("==>ActsDistribute_test_0700 success==>" +JSON.stringify(data))
notify.isSupportTemplate(templateName).then ((data) => {
expect(data).assertEqual(false);
console.info("isSupportTemplatePromise");
console.info("==>ActsDistribute_test_0700 success==>" + JSON.stringify(data));
done();
})
done();
})
......
......@@ -26,6 +26,7 @@ describe('ActsAnsWantAgentTwoProTest', function () {
* @tc.desc: verify the function of getWantAgent(OperationType.START_ABILITIES)
*/
it('ACTS_SetWant_0400', 0, async function (done) {
expect(3).assertEqual(wantAgent.OperationType.START_SERVICE)
var agentInfo = {
wants: [
{
......
......@@ -287,7 +287,8 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
Subscriber.Support.COMMON_EVENT_ABILITY_UPDATED,
Subscriber.Support.COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED,
Subscriber.Support.COMMON_EVENT_ACCOUNT_DELETED,
Subscriber.Support.COMMON_EVENT_FOUNDATION_READY
Subscriber.Support.COMMON_EVENT_FOUNDATION_READY,
Subscriber.Support.COMMON_EVENT_BATTERY_CHANGED
],
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册