提交 86483ba5 编写于 作者: Y y00314596

add 3.1beta cases by yangqing3@huawei.com

Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 9d591f29
......@@ -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.
先完成此消息的编辑!
想要评论请 注册