提交 fe876aaa 编写于 作者: Z zhijianwen

xts

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