提交 f58bc6ab 编写于 作者: 杜智海

fixed 14518195 from https://gitee.com/du-zhihai/xts_acts/pulls/6283

update ability/dmsfwk/continuationmanagertest/src/main/js/test/ContinuationManagerJsunit.test.js.
Signed-off-by: N杜智海 <duzhihai@huawei.com>
上级 8879d41c
...@@ -660,6 +660,27 @@ describe('continuationManagerTest', function() { ...@@ -660,6 +660,27 @@ describe('continuationManagerTest', function() {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_UNREGISTER_0600
* @tc.name [JS-API8]ContinuationManager.unregister().
* @tc.desc Test Js Api ContinuationManager.unregister() testcase 006
*/
it('testUnregister006', 0, async function(done) {
try {
continuationManager.unregister(token).then((data) => {
console.info("testUnregister006 " + JSON.stringify(data));
expect(data.code == 0).assertTrue();
}).catch((err) => {
expect(null).assertFail();
});
done();
} catch (e) {
console.info("testUnregister006 " + e);
expect(null).assertFail();
done();
}
})
/** /**
* @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_UNREGISTER_0100 * @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_UNREGISTER_0100
* @tc.name [JS-API9]ContinuationManager.unregisterContinuation(). * @tc.name [JS-API9]ContinuationManager.unregisterContinuation().
...@@ -757,6 +778,27 @@ describe('continuationManagerTest', function() { ...@@ -757,6 +778,27 @@ describe('continuationManagerTest', function() {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_UNREGISTERCONTINUATION_0600
* @tc.name [JS-API8]ContinuationManager.unregisterContinuation().
* @tc.desc Test Js Api ContinuationManager.unregisterContinuation() testcase 006
*/
it('testUnregisterContinuation006', 0, async function(done) {
try {
continuationManager.unregisterContinuation(token).then((data) => {
console.info("testUnregisterContinuation006 " + JSON.stringify(data));
expect(data.code == 0).assertTrue();
}).catch((err) => {
expect(null).assertFail();
});
done();
} catch (e) {
console.info("testUnregisterContinuation006 " + e);
expect(null).assertFail();
done();
}
})
/** /**
* @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_ON_0100 * @tc.number SUB_DISTRIBUTEDSCHEDULE_CONTINUATIONMANAGER_ON_0100
* @tc.name [JS-API8]ContinuationManager.on(). * @tc.name [JS-API8]ContinuationManager.on().
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册