提交 762ef6c9 编写于 作者: Y y00314596 提交者: 杨清

fixed 0187aeb2 from https://gitee.com/yangqing3/xts_acts/pulls/2297

add by yangqing3@huawei.com
Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 28aa6075
......@@ -384,5 +384,35 @@ describe('resMgrTest', function () {
done();
})
/* *
* @tc.number SUB_GLOBAL_RESMGR_JS_2200
* @tc.name test closeRawFileDescriptor method in callback mode
* @tc.desc get the closeRawFileDescriptor in callback mode
*/
it('closeRawFileDescriptor_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => {
mgr.closeRawFileDescriptor('rawfiletest.xml', (error, value) => {
expect(error == null).assertTrue();
console.log('closeRawFileDescriptor_test_001--' + error);
})
})
done();
})
/* *
* @tc.number SUB_GLOBAL_RESMGR_JS_2300
* @tc.name test closeRawFileDescriptor method in promise mode
* @tc.desc get the closeRawFileDescriptor in promise mode
*/
it('closeRawFileDescriptor_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => {
mgr.closeRawFileDescriptor('rawfiletest.xml').then(value => {
expect(value !== null).assertTrue();
console.log('closeRawFileDescriptor_test_002--' + value);
})
})
done();
})
console.log('*************end ResmgrTest*************');
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册