未验证 提交 ae22babf 编写于 作者: O openharmony_ci 提交者: Gitee

!1919 修改file.test copy

Merge pull request !1919 from chenkai008/master
......@@ -2805,26 +2805,25 @@ describe('fileTest', function () {
uri: 'internal://cache/File_Copy_005d',
success: function () {
console.log('File_Copy_005 call mkdir success.');
done();
file.copy({
srcUri: 'internal://cache/File_Copy_005d',
dstUri: 'internal://cache/File_Copy_005d_1',
success: function () {
console.log('File_Copy_005 call copy success.');
expect(null).assertFail();
},
fail: function (data, code) {
console.log('File_Copy_005 , code: ' + code + ', data: ' + data);
expect(code == 300).assertTrue();
done();
},
});
},
fail: function (data, code) {
console.error('File_Copy_005 call mkdir fail, code: ' + code + ', data: ' + data);
expect(null).assertFail();
},
});
file.copy({
srcUri: 'internal://cache/File_Copy_005d',
dstUri: 'internal://cache/File_Copy_005d_1',
success: function () {
console.log('File_Copy_005 call copy success.');
expect(null).assertFail();
},
fail: function (data, code) {
console.log('File_Copy_005 , code: ' + code + ', data: ' + data);
expect(code == 300).assertTrue();
done();
},
});
});
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册