Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
87259508
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,发现更多精彩内容 >>
未验证
提交
87259508
编写于
7月 01, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4033 【Storage】【master】createWatcher测试套注释修改
Merge pull request !4033 from 金海/fxb0701
上级
a6e94671
46be9dbd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
33 deletion
+33
-33
storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_watcher/createWatcher.test.js
...lt/test/module_fileio/class_watcher/createWatcher.test.js
+33
-33
未找到文件。
storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_watcher/createWatcher.test.js
浏览文件 @
87259508
...
...
@@ -21,8 +21,8 @@ import {
describe
(
'
fileio_createWatcher
'
,
function
()
{
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_000
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
0
* @tc.name fileio_test_createWatcher_
async_
000
* @tc.desc Test createWatcher() interface. rename 1 times stopSync()
* @tc.size MEDIUM(中型)
* @tc.type Function
...
...
@@ -49,15 +49,15 @@ describe('fileio_createWatcher', function () {
done
();
},
51
);
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_000 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
000 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_001
* @tc.desc Test createWatcher() interface. write
1
times stopSync()
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
1
00
* @tc.name fileio_test_createWatcher_
async_
001
* @tc.desc Test createWatcher() interface. write
2
times stopSync()
* @tc.size MEDIUM(中型)
* @tc.type Function
* @tc.level Level 0
...
...
@@ -82,14 +82,14 @@ describe('fileio_createWatcher', function () {
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
done
();
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_001 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
001 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_002
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
2
00
* @tc.name fileio_test_createWatcher_
async_
002
* @tc.desc Test createWatcher() interface. rename 1 time ,stop()
* @tc.size MEDIUM(中型)
* @tc.type Function
...
...
@@ -115,15 +115,15 @@ describe('fileio_createWatcher', function () {
done
();
},
50
);
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_002 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
002 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_003
* @tc.desc Test createWatcher() interface. rename
1
time ,stop()
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
3
00
* @tc.name fileio_test_createWatcher_
async_
003
* @tc.desc Test createWatcher() interface. rename
2
time ,stop()
* @tc.size MEDIUM(中型)
* @tc.type Function
* @tc.level Level 0
...
...
@@ -148,15 +148,15 @@ describe('fileio_createWatcher', function () {
done
();
});
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_003 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
003 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_004
* @tc.desc Test createWatcher() interface.write
1
time ,stop()
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
4
00
* @tc.name fileio_test_createWatcher_
async_
004
* @tc.desc Test createWatcher() interface.write
2
time ,stop()
* @tc.size MEDIUM(中型)
* @tc.type Function
* @tc.level Level 0
...
...
@@ -183,15 +183,15 @@ describe('fileio_createWatcher', function () {
done
();
});
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_004 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
004 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_005
* @tc.desc Test createWatcher() interface. rename 3 times
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
5
00
* @tc.name fileio_test_createWatcher_
async_
005
* @tc.desc Test createWatcher() interface. rename 3 times
stopSync()
* @tc.size MEDIUM(中型)
* @tc.type Function
* @tc.level Level 0
...
...
@@ -219,14 +219,14 @@ describe('fileio_createWatcher', function () {
done
();
},
51
);
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_005 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
005 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_006
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
6
00
* @tc.name fileio_test_createWatcher_
async_
006
* @tc.desc Test createWatcher() interface.write 2 times, stop()
* @tc.size MEDIUM(中型)
* @tc.type Function
...
...
@@ -254,14 +254,14 @@ describe('fileio_createWatcher', function () {
expect
(
fileio
.
unlinkSync
(
fpath
)
==
null
).
assertTrue
();
done
();
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_006 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
006 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_007
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
7
00
* @tc.name fileio_test_createWatcher_
async_
007
* @tc.desc Test createWatcher() interface.rename 1 times, write 1 times, stop()
* @tc.size MEDIUM(中型)
* @tc.type Function
...
...
@@ -289,22 +289,22 @@ describe('fileio_createWatcher', function () {
expect
(
fileio
.
unlinkSync
(
after
)
==
null
).
assertTrue
();
done
();
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_007 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
007 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
/**
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_000
* @tc.name fileio_test_createWatcher_008
* @tc.desc Test createWatcher() interface.rename 1 times, write 1 times
, stop()
* @tc.number SUB_DF_FILEIO_CREATEWATCHER_0
8
00
* @tc.name fileio_test_createWatcher_
async_
008
* @tc.desc Test createWatcher() interface.rename 1 times, write 1 times
* @tc.size MEDIUM(中型)
* @tc.type Function
* @tc.level Level 0
* @tc.require
*/
it
(
'
fileio_test_createWatcher_async_008
'
,
0
,
async
function
(
done
)
{
let
fpath
=
await
nextFileName
(
'
fileio_test_createWatcher_async_00
7
'
);
let
fpath
=
await
nextFileName
(
'
fileio_test_createWatcher_async_00
8
'
);
expect
(
prepareFile
(
fpath
,
FILE_CONTENT
)).
assertTrue
();
try
{
let
event
=
3
;
...
...
@@ -324,7 +324,7 @@ describe('fileio_createWatcher', function () {
done
();
},
50
);
}
catch
(
e
)
{
console
.
log
(
'
fileio_test_createWatcher_008 has failed for
'
+
e
);
console
.
log
(
'
fileio_test_createWatcher_
async_
008 has failed for
'
+
e
);
expect
(
null
).
assertFail
();
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录