Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
95d17329
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,发现更多精彩内容 >>
未验证
提交
95d17329
编写于
3月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2454 改正【文件管理子系统】【xts】代码中拼写错误
Merge pull request !2454 from shuzhouhao/OpenHarmony-3.1-Release
上级
ca551e00
705aeed5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
31 deletion
+31
-31
storage/storagefileioerrorjstest/src/main/js/default/test/Common.js
...oragefileioerrorjstest/src/main/js/default/test/Common.js
+1
-1
storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js
...oragefileiojstest/src/main/js/default/test/FileIO.test.js
+20
-20
storage/storagefileiojstest/src/main/js/default/test/FileIOStream.test.js
...ileiojstest/src/main/js/default/test/FileIOStream.test.js
+9
-9
storage/storagefileiojstest/src/main/js/default/test/module_fileio/members/hash.test.js
...c/main/js/default/test/module_fileio/members/hash.test.js
+1
-1
未找到文件。
storage/storagefileioerrorjstest/src/main/js/default/test/Common.js
浏览文件 @
95d17329
...
@@ -127,7 +127,7 @@ export function getFileTextLen(fpath) {
...
@@ -127,7 +127,7 @@ export function getFileTextLen(fpath) {
expect
(
ss
!==
null
).
assertTrue
()
expect
(
ss
!==
null
).
assertTrue
()
let
len
=
ss
.
readSync
(
new
ArrayBuffer
(
4096
))
let
len
=
ss
.
readSync
(
new
ArrayBuffer
(
4096
))
console
.
log
(
'
file:
'
+
fpath
)
console
.
log
(
'
file:
'
+
fpath
)
console
.
log
(
'
file lenth:
'
+
len
)
console
.
log
(
'
file len
g
th:
'
+
len
)
expect
(
ss
.
closeSync
()
!==
null
).
assertTrue
()
expect
(
ss
.
closeSync
()
!==
null
).
assertTrue
()
return
len
return
len
}
}
...
...
storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js
浏览文件 @
95d17329
...
@@ -1336,7 +1336,7 @@ describe('fileIOTest', function () {
...
@@ -1336,7 +1336,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_UnlinkSync_0200
* @tc.number SUB_STORAGE_FileIO_UnlinkSync_0200
* @tc.name fileio_test_unlink_sync_002
* @tc.name fileio_test_unlink_sync_002
* @tc.desc Function of API, inva
il
d parameter
* @tc.desc Function of API, inva
li
d parameter
*/
*/
it
(
'
fileio_test_unlink_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_unlink_sync_002
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileIOTest
'
);
let
fpath
=
await
nextFileName
(
'
fileIOTest
'
);
...
@@ -1460,7 +1460,7 @@ describe('fileIOTest', function () {
...
@@ -1460,7 +1460,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_WriteSync_0500
* @tc.number SUB_STORAGE_FileIO_WriteSync_0500
* @tc.name fileio_test_write_sync_005
* @tc.name fileio_test_write_sync_005
* @tc.desc Function of API, inva
il
d offset.
* @tc.desc Function of API, inva
li
d offset.
*/
*/
it
(
'
fileio_test_write_sync_005
'
,
0
,
async
function
()
{
it
(
'
fileio_test_write_sync_005
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_write_sync_005
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_write_sync_005
'
);
...
@@ -1483,7 +1483,7 @@ describe('fileIOTest', function () {
...
@@ -1483,7 +1483,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_WriteSync_0600
* @tc.number SUB_STORAGE_FileIO_WriteSync_0600
* @tc.name fileio_test_write_sync_006
* @tc.name fileio_test_write_sync_006
* @tc.desc Function of API, inva
il
d length.
* @tc.desc Function of API, inva
li
d length.
*/
*/
it
(
'
fileio_test_write_sync_006
'
,
0
,
async
function
()
{
it
(
'
fileio_test_write_sync_006
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_write_sync_006
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_write_sync_006
'
);
...
@@ -1521,7 +1521,7 @@ describe('fileIOTest', function () {
...
@@ -1521,7 +1521,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_WriteSync_0800
* @tc.number SUB_STORAGE_FileIO_WriteSync_0800
* @tc.name fileio_test_write_sync_008
* @tc.name fileio_test_write_sync_008
* @tc.desc Function of API, inva
il
d parameter.
* @tc.desc Function of API, inva
li
d parameter.
*/
*/
it
(
'
fileio_test_write_sync_008
'
,
0
,
async
function
()
{
it
(
'
fileio_test_write_sync_008
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -1630,7 +1630,7 @@ describe('fileIOTest', function () {
...
@@ -1630,7 +1630,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_ReadSync_0300
* @tc.number SUB_STORAGE_FileIO_ReadSync_0300
* @tc.name fileio_test_read_sync_003
* @tc.name fileio_test_read_sync_003
* @tc.desc Function of API, inva
il
d offset
* @tc.desc Function of API, inva
li
d offset
*/
*/
it
(
'
fileio_test_read_sync_003
'
,
0
,
async
function
()
{
it
(
'
fileio_test_read_sync_003
'
,
0
,
async
function
()
{
let
fd
let
fd
...
@@ -1654,7 +1654,7 @@ describe('fileIOTest', function () {
...
@@ -1654,7 +1654,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_ReadSync_0300
* @tc.number SUB_STORAGE_FileIO_ReadSync_0300
* @tc.name fileio_test_read_sync_004
* @tc.name fileio_test_read_sync_004
* @tc.desc Function of API, inva
il
d length.
* @tc.desc Function of API, inva
li
d length.
*/
*/
it
(
'
fileio_test_read_sync_004
'
,
0
,
async
function
()
{
it
(
'
fileio_test_read_sync_004
'
,
0
,
async
function
()
{
let
fd
let
fd
...
@@ -1717,7 +1717,7 @@ describe('fileIOTest', function () {
...
@@ -1717,7 +1717,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_ReadSync_0700
* @tc.number SUB_STORAGE_FileIO_ReadSync_0700
* @tc.name fileio_test_read_sync_007
* @tc.name fileio_test_read_sync_007
* @tc.desc Function of API, inva
il
d position.
* @tc.desc Function of API, inva
li
d position.
*/
*/
it
(
'
fileio_test_read_sync_007
'
,
0
,
async
function
()
{
it
(
'
fileio_test_read_sync_007
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_read_sync_007
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_read_sync_007
'
);
...
@@ -2170,7 +2170,7 @@ describe('fileIOTest', function () {
...
@@ -2170,7 +2170,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0100
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0100
* @tc.name fileio_test_copy_file_sync_001
* @tc.name fileio_test_copy_file_sync_001
* @tc.desc Function of API, copy. fpatch is inva
il
d, fpathTarget is vaild, same path, file not same.
* @tc.desc Function of API, copy. fpatch is inva
li
d, fpathTarget is vaild, same path, file not same.
*/
*/
it
(
'
fileio_test_copy_file_sync_001
'
,
0
,
async
function
()
{
it
(
'
fileio_test_copy_file_sync_001
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_001
'
)
+
'
d
'
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_001
'
)
+
'
d
'
...
@@ -2187,7 +2187,7 @@ describe('fileIOTest', function () {
...
@@ -2187,7 +2187,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0200
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0200
* @tc.name fileio_test_copy_file_sync_002
* @tc.name fileio_test_copy_file_sync_002
* @tc.desc Function of API, copy. fpatch is vaild, fpathTarget is inva
il
d.
* @tc.desc Function of API, copy. fpatch is vaild, fpathTarget is inva
li
d.
*/
*/
it
(
'
fileio_test_copy_file_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_copy_file_sync_002
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_002
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_002
'
);
...
@@ -2262,7 +2262,7 @@ describe('fileIOTest', function () {
...
@@ -2262,7 +2262,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0600
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0600
* @tc.name fileio_test_copy_file_sync_006
* @tc.name fileio_test_copy_file_sync_006
* @tc.desc Function of API, copy. fpathTarget is inva
il
d.
* @tc.desc Function of API, copy. fpathTarget is inva
li
d.
*/
*/
it
(
'
fileio_test_copy_file_sync_006
'
,
0
,
async
function
()
{
it
(
'
fileio_test_copy_file_sync_006
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_006
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_copy_file_sync_006
'
);
...
@@ -2279,7 +2279,7 @@ describe('fileIOTest', function () {
...
@@ -2279,7 +2279,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0700
* @tc.number SUB_STORAGE_FileIO_copyFileSync_0700
* @tc.name fileio_test_copy_file_sync_007
* @tc.name fileio_test_copy_file_sync_007
* @tc.desc Function of API, copy. fpatch is inva
ild, fpathTarget is invail
d.
* @tc.desc Function of API, copy. fpatch is inva
lid, fpathTarget is invali
d.
*/
*/
it
(
'
fileio_test_copy_file_sync_007
'
,
0
,
async
function
()
{
it
(
'
fileio_test_copy_file_sync_007
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -2440,7 +2440,7 @@ describe('fileIOTest', function () {
...
@@ -2440,7 +2440,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_truncateSync_0200
* @tc.number SUB_STORAGE_FileIO_truncateSync_0200
* @tc.name fileio_test_truncate_sync_002
* @tc.name fileio_test_truncate_sync_002
* @tc.desc Function of API, no inva
il
d parameter.
* @tc.desc Function of API, no inva
li
d parameter.
*/
*/
it
(
'
fileio_test_truncate_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_truncate_sync_002
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_truncate_sync_001
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_truncate_sync_001
'
);
...
@@ -2511,7 +2511,7 @@ describe('fileIOTest', function () {
...
@@ -2511,7 +2511,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_RenameSync_0200
* @tc.number SUB_STORAGE_FileIO_RenameSync_0200
* @tc.name fileio_test_rename_sync_002
* @tc.name fileio_test_rename_sync_002
* @tc.desc Function of API, renameSync. The test file is exist, fpathTarget is inva
il
d.
* @tc.desc Function of API, renameSync. The test file is exist, fpathTarget is inva
li
d.
*/
*/
it
(
'
fileio_test_rename_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_rename_sync_002
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_rename_sync_002
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_rename_sync_002
'
);
...
@@ -2732,7 +2732,7 @@ describe('fileIOTest', function () {
...
@@ -2732,7 +2732,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_FchmodSync_0400
* @tc.number SUB_STORAGE_FileIO_FchmodSync_0400
* @tc.name fileio_test_fchmod_sync_004
* @tc.name fileio_test_fchmod_sync_004
* @tc.desc Function of API, mode is inva
il
d. The test file is exist.
* @tc.desc Function of API, mode is inva
li
d. The test file is exist.
*/
*/
it
(
'
fileio_test_fchmod_sync_004
'
,
0
,
async
function
()
{
it
(
'
fileio_test_fchmod_sync_004
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_fchmod_sync_004
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_fchmod_sync_004
'
);
...
@@ -3067,7 +3067,7 @@ describe('fileIOTest', function () {
...
@@ -3067,7 +3067,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_FtruncateSync_0200
* @tc.number SUB_STORAGE_FileIO_FtruncateSync_0200
* @tc.name fileio_test_ftruncate_sync_002
* @tc.name fileio_test_ftruncate_sync_002
* @tc.desc Function of API, inva
il
d parameter. The test file is not exist.
* @tc.desc Function of API, inva
li
d parameter. The test file is not exist.
*/
*/
it
(
'
fileio_test_ftruncate_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_ftruncate_sync_002
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -3082,7 +3082,7 @@ describe('fileIOTest', function () {
...
@@ -3082,7 +3082,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_FtruncateSync_0300
* @tc.number SUB_STORAGE_FileIO_FtruncateSync_0300
* @tc.name fileio_test_ftruncate_sync_003
* @tc.name fileio_test_ftruncate_sync_003
* @tc.desc Function of API, inva
il
d parameter. The test file is not exist.
* @tc.desc Function of API, inva
li
d parameter. The test file is not exist.
*/
*/
it
(
'
fileio_test_ftruncate_sync_003
'
,
0
,
async
function
()
{
it
(
'
fileio_test_ftruncate_sync_003
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -3150,7 +3150,7 @@ describe('fileIOTest', function () {
...
@@ -3150,7 +3150,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_FsyncSync_0200
* @tc.number SUB_STORAGE_FileIO_FsyncSync_0200
* @tc.name fileio_test_fsync_sync_002
* @tc.name fileio_test_fsync_sync_002
* @tc.desc Function of API, inva
il
d parameter.
* @tc.desc Function of API, inva
li
d parameter.
*/
*/
it
(
'
fileio_test_fsync_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_fsync_sync_002
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -3233,7 +3233,7 @@ describe('fileIOTest', function () {
...
@@ -3233,7 +3233,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_MkdirSync_RmdirSync_0400
* @tc.number SUB_STORAGE_FileIO_MkdirSync_RmdirSync_0400
* @tc.name fileio_test_mkdir_sync_rmdir_sync_004
* @tc.name fileio_test_mkdir_sync_rmdir_sync_004
* @tc.desc Function of API, inva
il
d parameter. The test file is not exist.
* @tc.desc Function of API, inva
li
d parameter. The test file is not exist.
*/
*/
it
(
'
fileio_test_mkdir_sync_rmdir_sync_004
'
,
0
,
async
function
()
{
it
(
'
fileio_test_mkdir_sync_rmdir_sync_004
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -3248,7 +3248,7 @@ describe('fileIOTest', function () {
...
@@ -3248,7 +3248,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_MkdirSync_RmdirSync_0500
* @tc.number SUB_STORAGE_FileIO_MkdirSync_RmdirSync_0500
* @tc.name fileio_test_mkdir_sync_rmdir_sync_005
* @tc.name fileio_test_mkdir_sync_rmdir_sync_005
* @tc.desc Function of API, inva
il
d parameter. The test file is not exist.
* @tc.desc Function of API, inva
li
d parameter. The test file is not exist.
*/
*/
it
(
'
fileio_test_mkdir_sync_rmdir_sync_005
'
,
0
,
async
function
()
{
it
(
'
fileio_test_mkdir_sync_rmdir_sync_005
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -3583,7 +3583,7 @@ describe('fileIOTest', function () {
...
@@ -3583,7 +3583,7 @@ describe('fileIOTest', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_ChownSync_0200
* @tc.number SUB_STORAGE_FileIO_ChownSync_0200
* @tc.name fileio_test_chown_sync_002
* @tc.name fileio_test_chown_sync_002
* @tc.desc Function of API, inva
il
d fd. The test file is not exist.
* @tc.desc Function of API, inva
li
d fd. The test file is not exist.
*/
*/
it
(
'
fileio_test_chown_sync_002
'
,
0
,
async
function
()
{
it
(
'
fileio_test_chown_sync_002
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_chown_sync_002
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_chown_sync_002
'
);
...
...
storage/storagefileiojstest/src/main/js/default/test/FileIOStream.test.js
浏览文件 @
95d17329
...
@@ -564,7 +564,7 @@ describe('fileIOTestStream', function () {
...
@@ -564,7 +564,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_CreateStreamSync_2400
* @tc.number SUB_STORAGE_FileIO_stream_CreateStreamSync_2400
* @tc.name fileio_test_stream_create_stream_sync_024
* @tc.name fileio_test_stream_create_stream_sync_024
* @tc.desc Function of API, inva
il
d fpath.
* @tc.desc Function of API, inva
li
d fpath.
*/
*/
it
(
'
fileio_test_stream_create_stream_sync_024
'
,
0
,
function
()
{
it
(
'
fileio_test_stream_create_stream_sync_024
'
,
0
,
function
()
{
try
{
try
{
...
@@ -579,7 +579,7 @@ describe('fileIOTestStream', function () {
...
@@ -579,7 +579,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_CreateStreamSync_2500
* @tc.number SUB_STORAGE_FileIO_stream_CreateStreamSync_2500
* @tc.name fileio_test_stream_create_stream_sync_025
* @tc.name fileio_test_stream_create_stream_sync_025
* @tc.desc Function of API, inva
il
d mode.
* @tc.desc Function of API, inva
li
d mode.
*/
*/
it
(
'
fileio_test_stream_create_stream_sync_025
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_create_stream_sync_025
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_create_stream_sync_025
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_create_stream_sync_025
'
);
...
@@ -1232,7 +1232,7 @@ describe('fileIOTestStream', function () {
...
@@ -1232,7 +1232,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_FdopenStreamSync_2400
* @tc.number SUB_STORAGE_FileIO_stream_FdopenStreamSync_2400
* @tc.name fileio_test_stream_fdopen_stream_sync_024
* @tc.name fileio_test_stream_fdopen_stream_sync_024
* @tc.desc Function of API, inva
ild fildes. The test file is
exist.
* @tc.desc Function of API, inva
lid fields. The test file is not
exist.
*/
*/
it
(
'
fileio_test_stream_fdopen_stream_sync_024
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_fdopen_stream_sync_024
'
,
0
,
async
function
()
{
try
{
try
{
...
@@ -1247,7 +1247,7 @@ describe('fileIOTestStream', function () {
...
@@ -1247,7 +1247,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_FdopenStreamSync_2400
* @tc.number SUB_STORAGE_FileIO_stream_FdopenStreamSync_2400
* @tc.name fileio_test_stream_fdopen_stream_sync_025
* @tc.name fileio_test_stream_fdopen_stream_sync_025
* @tc.desc Function of API, inva
il
d mode. The test file is exist.
* @tc.desc Function of API, inva
li
d mode. The test file is exist.
*/
*/
it
(
'
fileio_test_stream_fdopen_stream_sync_025
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_fdopen_stream_sync_025
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_fdopen_stream_sync_025
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_fdopen_stream_sync_025
'
);
...
@@ -1457,7 +1457,7 @@ describe('fileIOTestStream', function () {
...
@@ -1457,7 +1457,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_0100
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_0100
* @tc.name fileio_test_stream_write_sync_001
* @tc.name fileio_test_stream_write_sync_001
* @tc.desc Function of API, inva
il
d encoding.
* @tc.desc Function of API, inva
li
d encoding.
*/
*/
it
(
'
fileio_test_stream_write_sync_001
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_write_sync_001
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_001
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_001
'
);
...
@@ -1689,7 +1689,7 @@ describe('fileIOTestStream', function () {
...
@@ -1689,7 +1689,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_0900
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_0900
* @tc.name fileio_test_stream_write_sync_009
* @tc.name fileio_test_stream_write_sync_009
* @tc.desc Function of API, inva
il
d fcontent.
* @tc.desc Function of API, inva
li
d fcontent.
*/
*/
it
(
'
fileio_test_stream_write_sync_009
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_write_sync_009
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_009
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_009
'
);
...
@@ -1709,7 +1709,7 @@ describe('fileIOTestStream', function () {
...
@@ -1709,7 +1709,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1000
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1000
* @tc.name fileio_test_stream_write_sync_010
* @tc.name fileio_test_stream_write_sync_010
* @tc.desc Function of API, inva
il
d encoding.
* @tc.desc Function of API, inva
li
d encoding.
*/
*/
it
(
'
fileio_test_stream_write_sync_010
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_write_sync_010
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_010
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_010
'
);
...
@@ -1732,7 +1732,7 @@ describe('fileIOTestStream', function () {
...
@@ -1732,7 +1732,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1100
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1100
* @tc.name fileio_test_stream_write_sync_011
* @tc.name fileio_test_stream_write_sync_011
* @tc.desc Function of API, inva
il
d position.
* @tc.desc Function of API, inva
li
d position.
*/
*/
it
(
'
fileio_test_stream_write_sync_011
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_write_sync_011
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_011
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_011
'
);
...
@@ -1755,7 +1755,7 @@ describe('fileIOTestStream', function () {
...
@@ -1755,7 +1755,7 @@ describe('fileIOTestStream', function () {
/**
/**
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1200
* @tc.number SUB_STORAGE_FileIO_stream_WriteSync_1200
* @tc.name fileio_test_stream_write_sync_012
* @tc.name fileio_test_stream_write_sync_012
* @tc.desc Function of API, inva
il
d offset.
* @tc.desc Function of API, inva
li
d offset.
*/
*/
it
(
'
fileio_test_stream_write_sync_012
'
,
0
,
async
function
()
{
it
(
'
fileio_test_stream_write_sync_012
'
,
0
,
async
function
()
{
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_012
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_stream_write_sync_012
'
);
...
...
storage/storagefileiojstest/src/main/js/default/test/module_fileio/members/hash.test.js
浏览文件 @
95d17329
...
@@ -35,7 +35,7 @@ describe('fileio_hash', function () {
...
@@ -35,7 +35,7 @@ describe('fileio_hash', function () {
try
{
try
{
let
str
=
await
fileio
.
hash
(
fpath
,
'
md5
'
);
let
str
=
await
fileio
.
hash
(
fpath
,
'
md5
'
);
console
.
log
(
'
fileio_test_hash_async_000 hash va
ul
e is
'
+
str
);
console
.
log
(
'
fileio_test_hash_async_000 hash va
lu
e is
'
+
str
);
expect
(
str
==
'
5EB63BBBE01EEED093CB22BB8F5ACDC3
'
).
assertTrue
();
expect
(
str
==
'
5EB63BBBE01EEED093CB22BB8F5ACDC3
'
).
assertTrue
();
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
done
();
done
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录