Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
79116587
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
79116587
编写于
3月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2812 update storage file
Merge pull request !2812 from raoxian/OpenHarmony-3.1-Release
上级
5ee8cab2
5db6b08e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
storage/storagefilejstest/src/main/js/default/test/File.test.js
...e/storagefilejstest/src/main/js/default/test/File.test.js
+13
-13
未找到文件。
storage/storagefilejstest/src/main/js/default/test/File.test.js
浏览文件 @
79116587
...
...
@@ -130,7 +130,7 @@ describe('fileTest', function () {
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Delete_004 call delete fail, code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
done
();
},
});
...
...
@@ -673,7 +673,7 @@ describe('fileTest', function () {
*/
it
(
'
File_writeText_013
'
,
0
,
async
function
(
done
)
{
file
.
writeText
({
uri
:
'
internal://app/
../..
/File_writeText_013
'
,
uri
:
'
internal://app/
notdir
/File_writeText_013
'
,
text
:
'
sawyerwang
'
,
success
:
function
()
{
console
.
log
(
'
File_writeText_013 mkdir success
'
);
...
...
@@ -985,7 +985,7 @@ describe('fileTest', function () {
},
});
file
.
writeArrayBuffer
({
uri
:
'
internal://app/File_writeArrayBuffer_008
'
,
uri
:
'
internal://app/
notdir/
File_writeArrayBuffer_008
'
,
buffer
:
buf
,
success
:
function
()
{
console
.
log
(
'
File_writeArrayBuffer_008 call writeArrayBuffer success.
'
);
...
...
@@ -1083,7 +1083,7 @@ describe('fileTest', function () {
it
(
'
File_writeArrayBuffer_012
'
,
0
,
async
function
(
done
)
{
let
buf
=
new
Uint8Array
([
48
,
49
,
50
,
51
,
65
,
66
,
67
,
68
,
32
,
33
]);
file
.
writeArrayBuffer
({
uri
:
'
internal://app/
../..
/File_writeArrayBuffer_012
'
,
uri
:
'
internal://app/
notdir
/File_writeArrayBuffer_012
'
,
buffer
:
buf
,
append
:
true
,
success
:
function
()
{
...
...
@@ -2040,7 +2040,7 @@ describe('fileTest', function () {
*/
it
(
'
File_mkdir_010
'
,
0
,
async
function
(
done
)
{
file
.
mkdir
({
uri
:
'
internal://app/
../..
/File_mkdir_010
'
,
uri
:
'
internal://app/
notdir
/File_mkdir_010
'
,
success
:
function
()
{
console
.
log
(
'
File_mkdir_010 call mkdir success.
'
);
expect
(
null
).
assertFail
();
...
...
@@ -2569,7 +2569,7 @@ describe('fileTest', function () {
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Move_009 , code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
done
();
},
});
...
...
@@ -2594,7 +2594,7 @@ describe('fileTest', function () {
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Move_010 , code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
done
();
},
});
...
...
@@ -2632,14 +2632,14 @@ describe('fileTest', function () {
expect
(
prepareFile
(
srcFpath
,
FILE_CONTENT
)
!==
null
).
assertTrue
();
file
.
move
({
srcUri
:
'
internal://app/../files/File_Move_012
'
,
dstUri
:
'
internal://app/
../..
/File_Move_012
'
,
dstUri
:
'
internal://app/
notdir
/File_Move_012
'
,
success
:
function
(
uri
)
{
console
.
log
(
'
File_Move_012 => pass, uri
'
+
uri
);
expect
(
null
).
assertFail
();
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Move_012 , code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
done
();
},
});
...
...
@@ -2949,7 +2949,7 @@ describe('fileTest', function () {
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Copy_009 , code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
fileio
.
unlinkSync
(
srcFpath
);
done
();
},
...
...
@@ -2976,7 +2976,7 @@ describe('fileTest', function () {
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Copy_010 , code:
'
+
code
+
'
, data:
'
+
data
);
console
.
log
(
"
code::
"
+
code
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
fileio
.
unlinkSync
(
srcFpath
);
fileio
.
unlinkSync
(
dstFpath
);
done
();
...
...
@@ -3027,14 +3027,14 @@ describe('fileTest', function () {
expect
(
prepareFile
(
srcFpath
,
'
test
'
)
!==
null
).
assertTrue
();
file
.
copy
({
srcUri
:
'
internal://app/../files/File_Copy_012
'
,
dstUri
:
'
internal://app/
../..
/File_Move_012
'
,
dstUri
:
'
internal://app/
notdir
/File_Move_012
'
,
success
:
function
()
{
console
.
log
(
'
File_Copy_012 copy pass
'
);
expect
(
null
).
assertFail
();
},
fail
:
function
(
data
,
code
)
{
console
.
log
(
'
File_Copy_012 , code:
'
+
code
+
'
, data:
'
+
data
);
expect
(
code
==
30
1
).
assertTrue
();
expect
(
code
==
30
0
).
assertTrue
();
expect
(
fileio
.
unlinkSync
(
srcFpath
)
!==
null
).
assertTrue
();
done
();
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录