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

fixed 86483ba5 from https://gitee.com/yangqing3/xts_acts/pulls/1444

add 3.1beta cases by yangqing3@huawei.com
Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 4ec4dc46
......@@ -295,5 +295,35 @@ describe('resMgrTest', function () {
done();
})
/* *
* @tc.number SUB_GLOBAL_RESMGR_JS_1700
* @tc.name test getRawFile method in callback mode
* @tc.desc get the getRawFile in callback mode
*/
it('getRawFile_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => {
mgr.getRawFile('rawfile/rawfiletest.xml', (error, value) => {
expect(value !== null).assertTrue();
console.log('getRawFile_test_001 ' + value);
})
})
done();
})
/* *
* @tc.number SUB_GLOBAL_RESMGR_JS_1800
* @tc.name test getRawFile method in promise mode
* @tc.desc get the getRawFile in promise mode
*/
it('getRawFile_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => {
mgr.getRawFile('rawfile/rawfiletest.xml').then(value => {
expect(value !== null).assertTrue();
console.log('getRawFile_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.
先完成此消息的编辑!
想要评论请 注册