Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
69102b16
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
69102b16
编写于
7月 20, 2022
作者:
F
fjr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
getactive
Signed-off-by:
N
fjr
<
fujiarui6@huawei.com
>
上级
4af5ee50
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
23 addition
and
48 deletion
+23
-48
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
...tive/actsansgetactive/entry/src/main/js/test/getActive.js
+23
-48
未找到文件。
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
浏览文件 @
69102b16
...
...
@@ -160,29 +160,16 @@ describe('ActsAnsActiveTest', function () {
console
.
log
(
"
Ans_GetActive_0300 getCallback data============>
"
+
JSON
.
stringify
(
data
));
var
i
;
for
(
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
i
==
0
){
expect
(
data
[
i
].
content
.
normal
.
title
).
assertEqual
(
"
test_title_1
"
);
expect
(
data
[
i
].
content
.
normal
.
title
!=
undefined
).
assertTrue
();
console
.
log
(
"
==========Ans_GetActive_0300 getCallback title=========>
"
+
data
[
i
].
content
.
normal
.
title
)
expect
(
data
[
i
].
content
.
normal
.
text
).
assertEqual
(
"
test_text_1
"
);
expect
(
data
[
i
].
content
.
normal
.
text
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
==========Ans_GetActive_0300 getCallback text============>
"
+
data
[
i
].
content
.
normal
.
text
)
expect
(
data
[
i
].
content
.
normal
.
additionalText
).
assertEqual
(
"
test_additionalText_1
"
);
expect
(
data
[
i
].
content
.
normal
.
additionalText
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
======Ans_GetActive_0300 getCallback text=======>
"
+
data
[
i
].
content
.
normal
.
additionalText
)
expect
(
data
[
i
].
id
).
assertEqual
(
1
);
expect
(
data
[
i
].
id
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
============Ans_GetActive_0300 getCallback id============>
"
+
data
[
i
].
id
)
expect
(
data
[
i
].
label
).
assertEqual
(
"
0300_1
"
);
expect
(
data
[
i
].
label
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
============Ans_GetActive_0300 getCallback label=====>
"
+
data
[
i
].
label
)
}
else
if
(
i
==
1
){
expect
(
data
[
i
].
content
.
normal
.
title
).
assertEqual
(
"
test_title_2
"
);
console
.
log
(
"
==========Ans_GetActive_0300 getCallback title=========>
"
+
data
[
i
].
content
.
normal
.
title
)
expect
(
data
[
i
].
content
.
normal
.
text
).
assertEqual
(
"
test_text_2
"
);
console
.
log
(
"
==========Ans_GetActive_0300 getCallback text============>
"
+
data
[
i
].
content
.
normal
.
text
)
expect
(
data
[
i
].
content
.
normal
.
additionalText
).
assertEqual
(
"
test_additionalText_2
"
);
console
.
log
(
"
======Ans_GetActive_0300 getCallback text=======>
"
+
data
[
i
].
content
.
normal
.
additionalText
)
expect
(
data
[
i
].
id
).
assertEqual
(
2
);
console
.
log
(
"
============Ans_GetActive_0300 getCallback id============>
"
+
data
[
i
].
id
)
expect
(
data
[
i
].
label
).
assertEqual
(
"
0300_2
"
);
console
.
log
(
"
============Ans_GetActive_0300 getCallback label=====>
"
+
data
[
i
].
label
)
}
}
}
...
...
@@ -270,36 +257,24 @@ describe('ActsAnsActiveTest', function () {
expect
(
promiseData
.
length
).
assertEqual
(
2
);
var
i
;
for
(
i
=
0
;
i
<
promiseData
.
length
;
i
++
)
{
if
(
i
==
0
){
expect
(
promiseData
[
i
].
content
.
normal
.
title
).
assertEqual
(
"
test_title_1
"
);
expect
(
promiseData
[
i
].
content
.
normal
!=
undefined
).
assertTrue
();
console
.
log
(
"
====Ans_GetActive_0400 getCallback title=====>
"
+
promiseData
[
i
].
content
.
normal
.
title
)
expect
(
promiseData
[
i
].
content
.
normal
.
text
).
assertEqual
(
"
test_text_1
"
);
expect
(
promiseData
[
i
].
content
.
normal
.
text
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
===Ans_GetActive_0400 getCallback text========>
"
+
promiseData
[
i
].
content
.
normal
.
text
)
expect
(
promiseData
[
i
].
content
.
normal
.
additionalText
).
assertEqual
(
"
test_additionalText_1
"
);
expect
(
promiseData
[
i
].
content
.
normal
.
additionalText
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
Ans_GetActive_0400 getCallback text=====>
"
+
promiseData
[
i
].
content
.
normal
.
additionalText
)
expect
(
promiseData
[
i
].
id
).
assertEqual
(
1
);
expect
(
promiseData
[
i
].
id
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
============Ans_GetActive_0400 getCallback id============>
"
+
promiseData
[
i
].
id
)
expect
(
promiseData
[
i
].
label
).
assertEqual
(
"
0400_1
"
);
expect
(
promiseData
[
i
].
label
!=
undefined
).
assertTrue
(
);
console
.
log
(
"
============Ans_GetActive_0400 getCallback label=====>
"
+
promiseData
[
i
].
label
)
}
else
if
(
i
==
1
){
expect
(
promiseData
[
i
].
content
.
normal
.
title
).
assertEqual
(
"
test_title_2
"
);
console
.
log
(
"
===Ans_GetActive_0400 getCallback title=========>
"
+
promiseData
[
i
].
content
.
normal
.
title
)
expect
(
promiseData
[
i
].
content
.
normal
.
text
).
assertEqual
(
"
test_text_2
"
);
console
.
log
(
"
====Ans_GetActive_0400 getCallback text============>
"
+
promiseData
[
i
].
content
.
normal
.
text
)
expect
(
promiseData
[
i
].
content
.
normal
.
additionalText
).
assertEqual
(
"
test_additionalText_2
"
);
console
.
log
(
"
Ans_GetActive_0400 getCallback text=====>
"
+
promiseData
[
i
].
content
.
normal
.
additionalText
)
expect
(
promiseData
[
i
].
id
).
assertEqual
(
2
);
console
.
log
(
"
============Ans_GetActive_0400 getCallback id============>
"
+
promiseData
[
i
].
id
)
expect
(
promiseData
[
i
].
label
).
assertEqual
(
"
0400_2
"
);
console
.
log
(
"
============Ans_GetActive_0400 getCallback label=====>
"
+
promiseData
[
i
].
label
)
}
}
console
.
debug
(
"
===============Ans_GetActive_0400 getActiveNotifications end==================>
"
);
setTimeout
(
async
function
(){
console
.
debug
(
"
===============Ans_GetActive_0400 done==================>
"
);
done
();
},
time
);
})
})
/*
* @tc.number: Ans_GetActive_0500
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录