Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f2376058
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f2376058
编写于
10月 21, 2022
作者:
G
gsl_1234
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modified the format of xts
Signed-off-by:
N
gsl_1234
<
gaoshunli@huawei.com
>
上级
7349fae1
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
545 addition
and
581 deletion
+545
-581
storage/storagefileiojstest/src/main/js/test/module_fileio/members/open_file.test.js
.../src/main/js/test/module_fileio/members/open_file.test.js
+468
-467
storage/storagefileiojstest/src/main/js/test/module_fileio/members/readV9.test.js
...est/src/main/js/test/module_fileio/members/readV9.test.js
+8
-9
storage/storagefileiojstest/src/main/js/test/module_fileio/members/statV9.test.js
...est/src/main/js/test/module_fileio/members/statV9.test.js
+26
-60
storage/storagefileiojstest/src/main/js/test/module_fileio/members/truncateV9.test.js
...src/main/js/test/module_fileio/members/truncateV9.test.js
+12
-13
storage/storagefileiojstest/src/main/js/test/module_fileio/members/writeV9.test.js
...st/src/main/js/test/module_fileio/members/writeV9.test.js
+31
-32
未找到文件。
storage/storagefileiojstest/src/main/js/test/module_fileio/members/open_file.test.js
浏览文件 @
f2376058
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// import fileIO from '@ohos.file.fs';
import
{
fileio
,
fileIO
,
FILE_CONTENT
,
prepareFile
,
nextFileName
,
isIntNum
,
describe
,
it
,
expect
,
...
...
@@ -244,7 +244,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0000
* @tc.name fileIO_open_async_000
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -269,7 +269,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPENIO_ASYNC_0010
* @tc.name fileIO_open_async_001
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -277,17 +277,18 @@ import {
*/
it
(
'
fileIO_open_async_001
'
,
0
,
function
()
{
try
{
fileIO
.
openAsync
();
fileIO
.
open
();
expect
(
null
).
assertFail
();
}
catch
(
e
)
{
console
.
log
(
'
fileIO_open_async_001 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
expect
(
e
.
code
==
13900020
&&
e
.
message
==
'
Invalid argument
'
).
assertTrue
;
}
});
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0020
* @tc.name fileIO_open_async_002
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -312,7 +313,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0030
* @tc.name fileIO_open_async_003
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -337,7 +338,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0040
* @tc.name fileIO_open_async_004
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -365,7 +366,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_ASYNC_0050
* @tc.name fileIO_open_async_005
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -390,7 +391,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0060
* @tc.name fileIO_open_async_006
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -414,7 +415,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0070
* @tc.name fileIO_open_async_007
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -439,7 +440,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPEN_FILE_ASYNC_0080
* @tc.name fileIO_open_async_007
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -464,7 +465,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_OPENIO_ASYNC_0090
* @tc.name fileIO_open_async_009
* @tc.desc Test openAsync
() interfaces.
* @tc.desc Test open
() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -475,7 +476,7 @@ import {
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
try
{
fileIO
.
open
(
fpath
,
0o102
,
function
(
err
,
file
)
{
fileIO
.
open
(
fpath
,
0o102
,
function
(
err
,
file
)
{
console
.
info
(
'
fileIO_open_async_009, fd:
'
+
file
.
fd
);
expect
(
isIntNum
(
file
.
fd
)).
assertTrue
();
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
...
...
storage/storagefileiojstest/src/main/js/test/module_fileio/members/readV9.test.js
浏览文件 @
f2376058
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// import fileIO from '@ohos.file.fs';
import
{
fileio
,
fileIO
,
FILE_CONTENT
,
prepareFile
,
nextFileName
,
isIntNum
,
describe
,
it
,
expect
,
...
...
@@ -184,7 +184,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0000
* @tc.name fileIO_test_read_async_000
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -211,7 +211,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0010
* @tc.name fileIO_test_read_async_001
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -239,7 +239,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0020
* @tc.name fileIO_test_read_async_002
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -266,7 +266,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0030
* @tc.name fileIO_test_read_async_003
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -295,7 +295,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0040
* @tc.name fileIO_test_read_async_004
* @tc.desc Test read
Async
() interface.
* @tc.desc Test read() interface.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -324,7 +324,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0050
* @tc.name fileIO_test_read_async_005
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -353,7 +353,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_READ_ASYNC_0060
* @tc.name fileIO_test_read_async_006
* @tc.desc Test read
Async
() interfaces.
* @tc.desc Test read() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -369,6 +369,5 @@ import {
done
();
}
});
});
}
storage/storagefileiojstest/src/main/js/test/module_fileio/members/statV9.test.js
浏览文件 @
f2376058
此差异已折叠。
点击以展开。
storage/storagefileiojstest/src/main/js/test/module_fileio/members/truncateV9.test.js
浏览文件 @
f2376058
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// import fileIO from '@ohos.file.fs';
import
{
fileio
,
fileIO
,
FILE_CONTENT
,
prepareFile
,
nextFileName
,
isIntNum
,
describe
,
it
,
expect
,
...
...
@@ -24,7 +24,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_ASYNC_0000
* @tc.name fileIO_truncate_async_000
* @tc.desc Test the truncate
Async
() interface that receives the fpath parameter.
* @tc.desc Test the truncate() interface that receives the fpath parameter.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -53,7 +53,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_ASYNC_0010
* @tc.name fileIO_truncate_async_001
* @tc.desc Test the truncate
Async
() interface that receives the fd parameter.
* @tc.desc Test the truncate() interface that receives the fd parameter.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -83,7 +83,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_ASYNC_0020
* @tc.name fileIO_truncate_async_002
* @tc.desc Test the truncate
Async
() interface that receives the fpath parameter.
* @tc.desc Test the truncate() interface that receives the fpath parameter.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -119,7 +119,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_ASYNC_0030
* @tc.name fileIO_truncate_async_003
* @tc.desc Test the truncate
Async
() interface that receives the fd parameter.
* @tc.desc Test the truncate() interface that receives the fd parameter.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -154,7 +154,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_ASYNC_0040
* @tc.name fileIO_truncate_async_004
* @tc.desc Test the truncate
Async
() interface that receives the fpath parameter.
* @tc.desc Test the truncate() interface that receives the fpath parameter.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -200,7 +200,7 @@ import {
});
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
0
0
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
1
0
* @tc.name fileIO_test_truncate_sync_001
* @tc.desc Test the truncateSync() interface that receives the fd parameter.
* @tc.size MEDIUM
...
...
@@ -228,7 +228,7 @@ import {
});
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
1
0
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
2
0
* @tc.name fileIO_test_truncate_sync_002
* @tc.desc Test the truncateSync() interface that receives the fpath parameter.
* @tc.size MEDIUM
...
...
@@ -249,7 +249,7 @@ import {
});
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
1
0
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
3
0
* @tc.name fileIO_test_truncate_sync_003
* @tc.desc Test the truncateSync() interface that receives the fd parameter.
* @tc.size MEDIUM
...
...
@@ -276,7 +276,7 @@ import {
});
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
2
0
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
4
0
* @tc.name fileIO_test_truncate_sync_004
* @tc.desc Test truncateSync() interfaces.
* @tc.size MEDIUM
...
...
@@ -294,8 +294,8 @@ import {
});
/**
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
2
0
* @tc.name fileio_test_truncate_sync_
v9_
005
* @tc.number SUB_DF_FILEIO_TRUNCATE_SYNC_00
5
0
* @tc.name fileio_test_truncate_sync_005
* @tc.desc Test truncateSync() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
...
...
@@ -312,7 +312,6 @@ import {
expect
(
!!
e
).
assertTrue
();
}
});
});
}
storage/storagefileiojstest/src/main/js/test/module_fileio/members/writeV9.test.js
浏览文件 @
f2376058
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// import fileIO from '@ohos.file.fs';
import
{
fileio
,
fileIO
,
FILE_CONTENT
,
nextFileName
,
isIntNum
,
describe
,
it
,
expect
,
...
...
@@ -205,7 +205,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0000
* @tc.name fileIO_test_write_async_000
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -230,7 +230,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0010
* @tc.name fileIO_test_write_async_001
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -258,7 +258,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0020
* @tc.name fileIO_test_write_async_002
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -287,7 +287,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0030
* @tc.name fileIO_test_write_async_003
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -317,7 +317,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0040
* @tc.name fileIO_test_write_async_004
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -336,7 +336,8 @@ import {
expect
(
bytesWritten
==
4096
).
assertTrue
();
expect
(
fileio
.
closeSync
(
fd
)
==
null
).
assertTrue
();
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
});
}
);
done
();
}
catch
(
e
)
{
console
.
log
(
'
fileIO_test_write_async_004 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
...
...
@@ -347,7 +348,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0050
* @tc.name fileIO_test_write_async_005
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -380,7 +381,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0060
* @tc.name fileIO_test_write_async_006
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -414,7 +415,7 @@ import {
/**
* @tc.number SUB_DF_FILEIO_WRITE_ASYNC_0070
* @tc.name fileIO_test_write_async_007
* @tc.desc Test write
Async
() interfaces.
* @tc.desc Test write() interfaces.
* @tc.size MEDIUM
* @tc.type Functoin
* @tc.level Level 0
...
...
@@ -445,7 +446,5 @@ import {
expect
(
null
).
assertFail
();
}
});
});
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录