Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
80a4ea05
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看板
提交
80a4ea05
编写于
5月 26, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
description: 文件管理模块测试用例规范整改
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
4743dea0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
91 addition
and
91 deletion
+91
-91
storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js
...oragefileiojstest/src/main/js/default/test/FileIO.test.js
+91
-91
未找到文件。
storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js
浏览文件 @
80a4ea05
...
...
@@ -3879,8 +3879,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_000
* @tc.name fileio_test_stat_
promise
_000
* @tc.number SUB_STORAGE_FileIO_stat_
async
_000
* @tc.name fileio_test_stat_
async
_000
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_000
'
,
0
,
async
function
()
{
...
...
@@ -3897,8 +3897,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_001
* @tc.name fileio_test_stat_
promise
_001
* @tc.number SUB_STORAGE_FileIO_stat_
async
_001
* @tc.name fileio_test_stat_
async
_001
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_001
'
,
0
,
async
function
()
{
...
...
@@ -3915,8 +3915,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_002
* @tc.name fileio_test_stat_
promise
_002
* @tc.number SUB_STORAGE_FileIO_stat_
async
_002
* @tc.name fileio_test_stat_
async
_002
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_002
'
,
0
,
async
function
()
{
...
...
@@ -3933,8 +3933,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_003
* @tc.name fileio_test_stat_
promise
_003
* @tc.number SUB_STORAGE_FileIO_stat_
async
_003
* @tc.name fileio_test_stat_
async
_003
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_003
'
,
0
,
async
function
()
{
...
...
@@ -3951,8 +3951,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_004
* @tc.name fileio_test_stat_
promise
_004
* @tc.number SUB_STORAGE_FileIO_stat_
async
_004
* @tc.name fileio_test_stat_
async
_004
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_004
'
,
0
,
async
function
()
{
...
...
@@ -3969,8 +3969,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_005
* @tc.name fileio_test_stat_
promise
_005
* @tc.number SUB_STORAGE_FileIO_stat_
async
_005
* @tc.name fileio_test_stat_
async
_005
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_005
'
,
0
,
async
function
()
{
...
...
@@ -3987,8 +3987,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_006
* @tc.name fileio_test_stat_
promise
_006
* @tc.number SUB_STORAGE_FileIO_stat_
async
_006
* @tc.name fileio_test_stat_
async
_006
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_006
'
,
0
,
async
function
()
{
...
...
@@ -4005,8 +4005,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_007
* @tc.name fileio_test_stat_
promise
_007
* @tc.number SUB_STORAGE_FileIO_stat_
async
_007
* @tc.name fileio_test_stat_
async
_007
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_007
'
,
0
,
async
function
()
{
...
...
@@ -4023,8 +4023,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_008
* @tc.name fileio_test_stat_
promise
_008
* @tc.number SUB_STORAGE_FileIO_stat_
async
_008
* @tc.name fileio_test_stat_
async
_008
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_008
'
,
0
,
async
function
()
{
...
...
@@ -4041,8 +4041,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_009
* @tc.name fileio_test_stat_
promise
_009
* @tc.number SUB_STORAGE_FileIO_stat_
async
_009
* @tc.name fileio_test_stat_
async
_009
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_009
'
,
0
,
async
function
()
{
...
...
@@ -4059,8 +4059,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise_009
* @tc.name fileio_test_stat_
promise
_010
* @tc.number SUB_STORAGE_FileIO_stat_
async_010
* @tc.name fileio_test_stat_
async
_010
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_010
'
,
0
,
async
function
()
{
...
...
@@ -4077,8 +4077,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_011
* @tc.name fileio_test_stat_
promise
_011
* @tc.number SUB_STORAGE_FileIO_stat_
async
_011
* @tc.name fileio_test_stat_
async
_011
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_011
'
,
0
,
async
function
()
{
...
...
@@ -4095,8 +4095,8 @@ describe('fileIOTest', function () {
});
/**
* @tc.number SUB_STORAGE_FileIO_stat_
promise
_012
* @tc.name fileio_test_stat_
promise
_012
* @tc.number SUB_STORAGE_FileIO_stat_
async
_012
* @tc.name fileio_test_stat_
async
_012
* @tc.desc obtain file propertys by stat promise
*/
it
(
'
fileio_test_stat_promise_012
'
,
0
,
async
function
()
{
...
...
@@ -4113,12 +4113,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
00
* @tc.name fileio_test_stat_async_0
00
* @tc.number fileio_test_stat_async_0
13
* @tc.name fileio_test_stat_async_0
13
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
00
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
00
'
);
it
(
'
fileio_test_stat_async_0
13
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
13
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o660
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4128,12 +4128,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
01
* @tc.name fileio_test_stat_async_0
01
* @tc.number fileio_test_stat_async_0
14
* @tc.name fileio_test_stat_async_0
14
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
01
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
01
'
);
it
(
'
fileio_test_stat_async_0
14
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
14
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o777
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4143,12 +4143,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
02
* @tc.name fileio_test_stat_async_0
02
* @tc.number fileio_test_stat_async_0
15
* @tc.name fileio_test_stat_async_0
15
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
02
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
02
'
);
it
(
'
fileio_test_stat_async_0
15
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
15
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o776
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4158,12 +4158,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
03
* @tc.name fileio_test_stat_async_0
03
* @tc.number fileio_test_stat_async_0
16
* @tc.name fileio_test_stat_async_0
16
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
03
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
03
'
);
it
(
'
fileio_test_stat_async_0
16
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
16
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o774
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4173,12 +4173,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
04
* @tc.name fileio_test_stat_async_0
04
* @tc.number fileio_test_stat_async_0
17
* @tc.name fileio_test_stat_async_0
17
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
04
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
04
'
);
it
(
'
fileio_test_stat_async_0
17
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
17
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o772
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4188,12 +4188,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
05
* @tc.name fileio_test_stat_async_0
05
* @tc.number fileio_test_stat_async_0
18
* @tc.name fileio_test_stat_async_0
18
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
05
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
05
'
);
it
(
'
fileio_test_stat_async_0
18
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
18
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o771
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4203,12 +4203,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
06
* @tc.name fileio_test_stat_async_0
06
* @tc.number fileio_test_stat_async_0
19
* @tc.name fileio_test_stat_async_0
19
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
06
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
06
'
);
it
(
'
fileio_test_stat_async_0
19
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
19
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o770
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4218,12 +4218,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
07
* @tc.name fileio_test_stat_async_0
07
* @tc.number fileio_test_stat_async_0
20
* @tc.name fileio_test_stat_async_0
20
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
07
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
07
'
);
it
(
'
fileio_test_stat_async_0
20
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
20
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o666
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4233,12 +4233,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
08
* @tc.name fileio_test_stat_async_0
08
* @tc.number fileio_test_stat_async_0
21
* @tc.name fileio_test_stat_async_0
21
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
08
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
08
'
);
it
(
'
fileio_test_stat_async_0
21
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
21
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o664
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4248,12 +4248,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
09
* @tc.name fileio_test_stat_async_0
09
* @tc.number fileio_test_stat_async_0
22
* @tc.name fileio_test_stat_async_0
22
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
09
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
09
'
);
it
(
'
fileio_test_stat_async_0
22
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
22
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o662
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4263,12 +4263,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
10
* @tc.name fileio_test_stat_async_0
10
* @tc.number fileio_test_stat_async_0
23
* @tc.name fileio_test_stat_async_0
23
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
10
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
10
'
);
it
(
'
fileio_test_stat_async_0
23
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
23
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o640
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4278,12 +4278,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
11
* @tc.name fileio_test_stat_async_0
11
* @tc.number fileio_test_stat_async_0
24
* @tc.name fileio_test_stat_async_0
24
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
11
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
11
'
);
it
(
'
fileio_test_stat_async_0
24
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
24
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o600
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4293,12 +4293,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
12
* @tc.name fileio_test_stat_async_0
12
* @tc.number fileio_test_stat_async_0
25
* @tc.name fileio_test_stat_async_0
25
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
12
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
12
'
);
it
(
'
fileio_test_stat_async_0
25
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
25
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o400
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4308,12 +4308,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_stat_async_0
13
* @tc.name fileio_test_stat_async_0
13
* @tc.number fileio_test_stat_async_0
26
* @tc.name fileio_test_stat_async_0
26
* @tc.desc Function of API, obtain file propertys by stat async
*/
it
(
'
fileio_test_stat_async_0
13
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
13
'
);
it
(
'
fileio_test_stat_async_0
26
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stat_async_0
26
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
expect
(
fileio
.
chmodSync
(
fpath
,
0o200
)
!==
null
).
assertTrue
();
fileio
.
stat
(
fpath
,
function
(
err
,
stat
)
{
...
...
@@ -4323,12 +4323,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_close_
promise
_000
* @tc.name fileio_test_close_
promise
_000
* @tc.desc Function of API close
* @tc.number fileio_test_close_
async
_000
* @tc.name fileio_test_close_
async
_000
* @tc.desc Function of API close
promise
*/
it
(
'
fileio_test_close_
promise
_000
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_close_
promise
_000
'
);
it
(
'
fileio_test_close_
async
_000
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_close_
async
_000
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
let
fd
=
fileio
.
openSync
(
fpath
);
expect
(
fd
!==
null
).
assertTrue
();
...
...
@@ -4337,12 +4337,12 @@ describe('fileIOTest', function () {
});
/**
* @tc.number fileio_test_close_async_00
0
* @tc.name fileio_test_close_async_00
0
* @tc.number fileio_test_close_async_00
1
* @tc.name fileio_test_close_async_00
1
* @tc.desc Function of API close
*/
it
(
'
fileio_test_close_async_00
0
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_close_async_00
0
'
);
it
(
'
fileio_test_close_async_00
1
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_close_async_00
1
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
let
fd
=
fileio
.
openSync
(
fpath
);
await
fileio
.
close
(
fd
,
function
(
err
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录