Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
25d3461b
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看板
提交
25d3461b
编写于
4月 16, 2022
作者:
R
renyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Increase assertion
Signed-off-by:
N
renyi
<
ry.renyi@huawei.com
>
上级
d7faec8f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
111 addition
and
6 deletion
+111
-6
appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js
...ntry/src/main/js/test/actszipfileandunzipfiletest.test.js
+111
-6
未找到文件。
appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js
浏览文件 @
25d3461b
...
@@ -54,6 +54,7 @@ it('ACTS_ZipFile_0100', 0, async function (done) {
...
@@ -54,6 +54,7 @@ it('ACTS_ZipFile_0100', 0, async function (done) {
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
done
();
})
})
console
.
log
(
"
==================ACTS_ZipFile_0100 end==================
"
);
})
})
/*
/*
...
@@ -81,8 +82,10 @@ it('ACTS_ZipFile_0200', 0, async function (done) {
...
@@ -81,8 +82,10 @@ it('ACTS_ZipFile_0200', 0, async function (done) {
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_0200 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_0200 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_0200 end==================
"
);
})
})
/*
/*
...
@@ -110,8 +113,10 @@ it('ACTS_ZipFile_0300', 0, async function (done) {
...
@@ -110,8 +113,10 @@ it('ACTS_ZipFile_0300', 0, async function (done) {
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_0300 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_0300 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_0300 end==================
"
);
})
})
/*
/*
...
@@ -139,8 +144,10 @@ it('ACTS_ZipFile_0400', 0, async function (done) {
...
@@ -139,8 +144,10 @@ it('ACTS_ZipFile_0400', 0, async function (done) {
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_0400 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_0400 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_0400 end==================
"
);
})
})
/*
/*
...
@@ -182,17 +189,23 @@ it('ACTS_ZipFile_2200', 0, async function (done) {
...
@@ -182,17 +189,23 @@ it('ACTS_ZipFile_2200', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2200 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2200 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2200 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2200 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2200 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2200 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2200 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2200 end==================
"
);
});
});
...
@@ -236,17 +249,23 @@ it('ACTS_ZipFile_2300', 0, async function (done) {
...
@@ -236,17 +249,23 @@ it('ACTS_ZipFile_2300', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2300 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2300 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2300 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2300 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2200 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2200 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2300 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2300 end==================
"
);
})
})
...
@@ -290,17 +309,23 @@ it('ACTS_ZipFile_2400', 0, async function (done) {
...
@@ -290,17 +309,23 @@ it('ACTS_ZipFile_2400', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2400 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2400 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2400 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2400 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2400 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2400 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2400 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2400 end==================
"
);
});
});
...
@@ -344,17 +369,23 @@ it('ACTS_ZipFile_2500', 0, async function (done) {
...
@@ -344,17 +369,23 @@ it('ACTS_ZipFile_2500', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2500 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2500 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
()
done
()
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2500 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2500 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2500 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2500 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2500 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2500 end==================
"
);
});
});
...
@@ -398,17 +429,23 @@ it('ACTS_ZipFile_2600', 0, async function (done) {
...
@@ -398,17 +429,23 @@ it('ACTS_ZipFile_2600', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2600 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2600 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2600 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2600 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2600 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2600 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2600 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2600 end==================
"
);
});
});
...
@@ -452,17 +489,23 @@ it('ACTS_ZipFile_2700', 0, async function (done) {
...
@@ -452,17 +489,23 @@ it('ACTS_ZipFile_2700', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2700 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2700 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2700 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2700 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2700 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2700 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2700 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2700 end==================
"
);
});
});
...
@@ -506,17 +549,23 @@ it('ACTS_ZipFile_2800', 0, async function (done) {
...
@@ -506,17 +549,23 @@ it('ACTS_ZipFile_2800', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2800 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2800 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2800 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2800 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2800 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2800 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2800 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2800 end==================
"
);
});
});
...
@@ -560,17 +609,23 @@ it('ACTS_ZipFile_2900', 0, async function (done) {
...
@@ -560,17 +609,23 @@ it('ACTS_ZipFile_2900', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_2900 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_2900 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_2900 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_2900 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_2900 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_2900 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_2900 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_2900 end==================
"
);
});
});
...
@@ -614,17 +669,23 @@ it('ACTS_ZipFile_3000', 0, async function (done) {
...
@@ -614,17 +669,23 @@ it('ACTS_ZipFile_3000', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_3000 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_3000 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_3000 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_3000 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3000 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3000 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_3000 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_3000 end==================
"
);
});
});
...
@@ -668,17 +729,23 @@ it('ACTS_ZipFile_3100', 0, async function (done) {
...
@@ -668,17 +729,23 @@ it('ACTS_ZipFile_3100', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_3100 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_3100 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_3100 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_3100 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3100 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3100 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_3100 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_3100 end==================
"
);
});
});
...
@@ -722,16 +789,23 @@ it('ACTS_ZipFile_3200', 0, async function (done) {
...
@@ -722,16 +789,23 @@ it('ACTS_ZipFile_3200', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_3200 err:
"
+
err
);
done
();
console
.
log
(
"
ACTS_ZipFile_3200 err:
"
+
err
);
done
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_3200 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_3200 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3200 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3200 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_3200 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_3200 end==================
"
);
});
});
...
@@ -775,17 +849,23 @@ it('ACTS_ZipFile_3300', 0, async function (done) {
...
@@ -775,17 +849,23 @@ it('ACTS_ZipFile_3300', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_3300 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_3300 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_3300 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_3300 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3300 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3300 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_3300 end==================
"
);
console
.
log
(
"
==================ACTS_ZipFile_3300 end==================
"
);
});
});
...
@@ -806,17 +886,20 @@ it('ACTS_ZipFile_3500', 0, async function (done) {
...
@@ -806,17 +886,20 @@ it('ACTS_ZipFile_3500', 0, async function (done) {
fileio
.
write
(
fd
,
infos
).
then
(
function
(
number
)
{
fileio
.
write
(
fd
,
infos
).
then
(
function
(
number
)
{
console
.
info
(
"
ACTS_ZipFile_3500 write successfully:
"
+
number
);
console
.
info
(
"
ACTS_ZipFile_3500 write successfully:
"
+
number
);
zlib
.
zipFile
(
src
,
dir
,
options
).
then
((
data
)
=>
{
zlib
.
zipFile
(
src
,
dir
,
options
).
then
((
data
)
=>
{
console
.
log
(
"
zipFilePromis
e_3500 data:
"
+
data
);
console
.
log
(
"
ACTS_ZipFil
e_3500 data:
"
+
data
);
expect
(
data
).
assertEqual
(
zlib
.
ErrorCode
.
ERROR_CODE_ERRNO
);
expect
(
data
).
assertEqual
(
zlib
.
ErrorCode
.
ERROR_CODE_ERRNO
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFilePromise_3500 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_3500 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
});
});
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3500 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3500 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================
zipFilePromis
e_3500 end ==================
"
);
console
.
log
(
"
==================
ACTS_ZipFil
e_3500 end ==================
"
);
})
})
/*
/*
...
@@ -834,17 +917,20 @@ it('ACTS_ZipFile_3600', 0, async function (done) {
...
@@ -834,17 +917,20 @@ it('ACTS_ZipFile_3600', 0, async function (done) {
fileio
.
write
(
fd
,
infos
).
then
(
function
(
number
)
{
fileio
.
write
(
fd
,
infos
).
then
(
function
(
number
)
{
console
.
info
(
"
ACTS_ZipFile_3600 write data to file successfully:
"
+
number
);
console
.
info
(
"
ACTS_ZipFile_3600 write data to file successfully:
"
+
number
);
zlib
.
zipFile
(
path
,
zipDest
,
options
).
then
((
data
)
=>
{
zlib
.
zipFile
(
path
,
zipDest
,
options
).
then
((
data
)
=>
{
console
.
log
(
"
zipFilePromis
e_3600 data:
"
+
data
);
console
.
log
(
"
ACTS_ZipFil
e_3600 data:
"
+
data
);
expect
(
data
).
assertEqual
(
zlib
.
ErrorCode
.
ERROR_CODE_ERRNO
);
expect
(
data
).
assertEqual
(
zlib
.
ErrorCode
.
ERROR_CODE_ERRNO
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFilePromise_3600 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_3600 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
});
});
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_3600 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_3600 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================
zipFilePromis
e_3600 end ==================
"
)
console
.
log
(
"
==================
ACTS_ZipFil
e_3600 end ==================
"
)
})
})
/*
/*
...
@@ -880,18 +966,25 @@ it('ACTS_ZipFile_4500', 0, async function (done) {
...
@@ -880,18 +966,25 @@ it('ACTS_ZipFile_4500', 0, async function (done) {
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
ACTS_ZipFile_4500 err:
"
+
err
);
console
.
log
(
"
ACTS_ZipFile_4500 err:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
done
();
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_4500 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_4500 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_4500 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_4500 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_4500 end==================
"
);
})
})
/*
/*
...
@@ -932,14 +1025,20 @@ it('ACTS_ZipFile_4900', 0, async function (done) {
...
@@ -932,14 +1025,20 @@ it('ACTS_ZipFile_4900', 0, async function (done) {
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_4900 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_4900 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_4900 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_4900 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_4900 end==================
"
);
})
})
/*
/*
...
@@ -978,14 +1077,20 @@ it('ACTS_ZipFile_5000', 0, async function (done) {
...
@@ -978,14 +1077,20 @@ it('ACTS_ZipFile_5000', 0, async function (done) {
})
})
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
console
.
info
(
"
ACTS_ZipFile_5000 mkdir failed with error:
"
+
error
);
console
.
info
(
"
ACTS_ZipFile_5000 mkdir failed with error:
"
+
error
);
expect
(
error
).
assertFail
();
done
();
});
});
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"
zipFile fail:
"
+
err
);
console
.
log
(
"
zipFile fail:
"
+
err
);
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
done
();
})
})
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
info
(
"
ACTS_ZipFile_5000 write data to file failed with error:
"
+
err
);
console
.
info
(
"
ACTS_ZipFile_5000 write data to file failed with error:
"
+
err
);
expect
(
err
).
assertFail
();
done
();
});
});
console
.
log
(
"
==================ACTS_ZipFile_5000 end==================
"
);
})
})
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录