Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f49b750c
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看板
未验证
提交
f49b750c
编写于
7月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4433 【XTS】【事件通知子系统】ActsAnsActiveTest测试套修改
Merge pull request !4433 from 付家睿/OpenHarmony-3.1-Release
上级
85f2c7e2
69102b16
变更
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
浏览文件 @
f49b750c
...
...
@@ -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
"
);
console
.
log
(
"
====Ans_GetActive_0400 getCallback title=====>
"
+
promiseData
[
i
].
content
.
normal
.
title
)
expect
(
promiseData
[
i
].
content
.
normal
.
text
).
assertEqual
(
"
test_text_1
"
);
console
.
log
(
"
===Ans_GetActive_0400 getCallback text========>
"
+
promiseData
[
i
].
content
.
normal
.
text
)
expect
(
promiseData
[
i
].
content
.
normal
.
additionalText
).
assertEqual
(
"
test_additionalText_1
"
);
console
.
log
(
"
Ans_GetActive_0400 getCallback text=====>
"
+
promiseData
[
i
].
content
.
normal
.
additionalText
)
expect
(
promiseData
[
i
].
id
).
assertEqual
(
1
);
console
.
log
(
"
============Ans_GetActive_0400 getCallback id============>
"
+
promiseData
[
i
].
id
)
expect
(
promiseData
[
i
].
label
).
assertEqual
(
"
0400_1
"
);
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
);
})
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
!=
undefined
).
assertTrue
();
console
.
log
(
"
===Ans_GetActive_0400 getCallback text========>
"
+
promiseData
[
i
].
content
.
normal
.
text
)
expect
(
promiseData
[
i
].
content
.
normal
.
additionalText
!=
undefined
).
assertTrue
();
console
.
log
(
"
Ans_GetActive_0400 getCallback text=====>
"
+
promiseData
[
i
].
content
.
normal
.
additionalText
)
expect
(
promiseData
[
i
].
id
!=
undefined
).
assertTrue
();
console
.
log
(
"
============Ans_GetActive_0400 getCallback id============>
"
+
promiseData
[
i
].
id
)
expect
(
promiseData
[
i
].
label
!=
undefined
).
assertTrue
();
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录