Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ef612c88
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看板
未验证
提交
ef612c88
编写于
7月 04, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 04, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4047 【XTS】【事件通知子系统】order和unorder用例修改
Merge pull request !4047 from 付家睿/master
上级
925753ff
85d09be7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
26 deletion
+0
-26
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/test/ActsSubscriber_test_ordered.js
...est/entry/src/main/js/test/ActsSubscriber_test_ordered.js
+0
-24
notification/ces_standard/subscribeandpublish/actssubscriberunordertest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
...est/entry/src/main/js/test/ActsSubscriber_test_unorder.js
+0
-2
未找到文件。
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/test/ActsSubscriber_test_ordered.js
浏览文件 @
ef612c88
...
...
@@ -57,7 +57,6 @@ describe('ActsSubscriberTestOrder', function () {
};
let
commonEventPublishData
=
{
bundleName
:
'
publish_event0100_bundleName
'
,
code
:
1
,
data
:
'
publish_event1001_init
'
,
isOrdered
:
true
,
...
...
@@ -65,13 +64,11 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0100
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0100========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0100========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0100=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0100=========data:
'
+
data
.
data
);
expect
(
data
.
event
).
assertEqual
(
'
publish_event0100
'
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event1001_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0100_bundleName
'
);
commonEventSubscriber0100
.
setCode
(
2
).
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0100 setCode promise
'
);
...
...
@@ -107,7 +104,6 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0101
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0101========code:
'
+
err
.
code
);
console
.
info
(
'
===============>subscriberCallBack0101========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0101========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0101=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0101=========data:
'
+
data
.
data
);
expect
(
data
.
event
).
assertEqual
(
'
publish_event0100
'
);
...
...
@@ -120,7 +116,6 @@ describe('ActsSubscriberTestOrder', function () {
commonEventSubscriber0100
.
getData
().
then
((
data
)
=>
{
console
.
info
(
'
===============>subscriberCallBack0101 getData promise data:
'
+
data
);
})
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0100_bundleName
'
);
commonEventSubscriber0101
.
finishCommonEvent
().
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0101 finishCommonEvent promise
'
);
done
();
...
...
@@ -175,14 +170,12 @@ describe('ActsSubscriberTestOrder', function () {
};
let
commonEventPublishData1
=
{
bundleName
:
'
publish_event0200_bundleName
'
,
code
:
1
,
data
:
'
publish_event0200_init
'
,
isOrdered
:
false
,
}
let
commonEventPublishData2
=
{
bundleName
:
'
publish_event0201_bundleName
'
,
code
:
1
,
data
:
'
publish_event0201_init
'
,
isOrdered
:
true
,
...
...
@@ -190,7 +183,6 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0200
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0200========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0200========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0200=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0200=========data:
'
+
data
.
data
);
console
.
info
(
'
===============>subscriberCallBack0200=========num2:
'
+
num2
);
...
...
@@ -200,14 +192,12 @@ describe('ActsSubscriberTestOrder', function () {
console
.
info
(
'
===============>subscriberCallBack0200=====num2:0====code:
'
+
data
.
code
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0200_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0200_bundleName
'
);
}
else
{
num2
=
0
;
expect
(
data
.
event
).
assertEqual
(
'
publish_event0201
'
);
console
.
info
(
'
===============>subscriberCallBack0200=====num2:1====code:
'
+
data
.
code
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0201_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0201_bundleName
'
);
commonEventSubscriber0200
.
finishCommonEvent
().
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0200:num2:1:finishCommonEvent promise
'
);
})
...
...
@@ -216,7 +206,6 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0201
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0201========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0201========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0201=========code=:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0201=========data:
'
+
data
.
data
);
...
...
@@ -224,7 +213,6 @@ describe('ActsSubscriberTestOrder', function () {
console
.
info
(
'
===============>subscriberCallBack0201=========code:
'
+
data
.
code
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0201_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0201_bundleName
'
);
commonEventSubscriber0201
.
finishCommonEvent
().
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0201:finishCommonEvent promise
'
);
done
();
...
...
@@ -286,7 +274,6 @@ describe('ActsSubscriberTestOrder', function () {
};
let
commonEventPublishData2
=
{
bundleName
:
'
publish_event0301_bundleName
'
,
code
:
1
,
data
:
'
publish_event0301_init
'
,
isOrdered
:
true
,
...
...
@@ -295,7 +282,6 @@ describe('ActsSubscriberTestOrder', function () {
let
callBackNum
=
0
;
async
function
subscriberCallBack0300
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0300========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0300========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0300=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0300=========dat:
'
+
data
.
data
);
console
.
info
(
'
===============>subscriberCallBack0300=========order:
'
+
order
);
...
...
@@ -303,7 +289,6 @@ describe('ActsSubscriberTestOrder', function () {
expect
(
data
.
event
).
assertEqual
(
'
publish_event0301
'
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0301_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0301_bundleName
'
);
expect
(
order
).
assertEqual
(
true
);
if
(
order
==
true
)
{
...
...
@@ -326,7 +311,6 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0301
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0301========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0301========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0301=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0301=========data:
'
+
data
.
data
);
console
.
info
(
'
===============>subscriberCallBack0301=========order:
'
+
order
);
...
...
@@ -334,7 +318,6 @@ describe('ActsSubscriberTestOrder', function () {
expect
(
data
.
event
).
assertEqual
(
'
publish_event0301
'
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0301_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0301_bundleName
'
);
if
(
order
==
false
)
{
order
=
true
;
...
...
@@ -399,7 +382,6 @@ describe('ActsSubscriberTestOrder', function () {
};
let
commonEventPublishData
=
{
bundleName
:
'
publish_event0400_bundleName
'
,
code
:
1
,
data
:
'
publish_event0400_init
'
,
isOrdered
:
true
,
...
...
@@ -413,7 +395,6 @@ describe('ActsSubscriberTestOrder', function () {
expect
(
data
.
event
).
assertEqual
(
'
publish_eventOrder0400
'
);
expect
(
data
.
code
).
assertEqual
(
1
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0400_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0400_bundleName
'
);
commonEventSubscriber0400
.
getAbortCommonEvent
().
then
((
data
)
=>
{
console
.
info
(
'
===============>subscriberCallBack0400 getAbortCommonEvent promise abort2:
'
+
data
);
});
...
...
@@ -483,7 +464,6 @@ describe('ActsSubscriberTestOrder', function () {
};
let
commonEventPublishData
=
{
bundleName
:
'
publish_event0500_bundleName
'
,
code
:
10
,
data
:
'
publish_event0500_init
'
,
isOrdered
:
true
,
...
...
@@ -491,13 +471,11 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0500
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0500========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0500========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0500=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0500=========data:
'
+
data
.
data
);
expect
(
data
.
event
).
assertEqual
(
'
publish_event0500
'
);
expect
(
data
.
code
).
assertEqual
(
10
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0500_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0500_bundleName
'
);
commonEventSubscriber0500
.
finishCommonEvent
().
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0500 finishCommonEvent promise
'
);
});
...
...
@@ -505,13 +483,11 @@ describe('ActsSubscriberTestOrder', function () {
async
function
subscriberCallBack0501
(
err
,
data
)
{
console
.
info
(
'
===============>subscriberCallBack0501========event:
'
+
data
.
event
);
console
.
info
(
'
===============>subscriberCallBack0501========bundleName:
'
+
data
.
bundleName
);
console
.
info
(
'
===============>subscriberCallBack0501=========code:
'
+
data
.
code
);
console
.
info
(
'
===============>subscriberCallBack0501========data:
'
+
data
.
data
);
expect
(
data
.
event
).
assertEqual
(
'
publish_event0500
'
);
expect
(
data
.
code
).
assertEqual
(
10
);
expect
(
data
.
data
).
assertEqual
(
'
publish_event0500_init
'
);
expect
(
data
.
bundleName
).
assertEqual
(
'
publish_event0500_bundleName
'
);
commonEventSubscriber0501
.
finishCommonEvent
().
then
(()
=>
{
console
.
info
(
'
===============>subscriberCallBack0501 finishCommonEvent promise
'
);
done
();
...
...
notification/ces_standard/subscribeandpublish/actssubscriberunordertest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
浏览文件 @
ef612c88
...
...
@@ -136,7 +136,6 @@ describe('ActsSubscriberTestUnorder', async function (done) {
let
commonEventPublishData
=
{
isOrdered
:
false
,
bundleName
:
"
PublishBundleName0300
"
,
code
:
55
,
data
:
"
PublishData0300
"
,
}
...
...
@@ -150,7 +149,6 @@ describe('ActsSubscriberTestUnorder', async function (done) {
function
subscriberCallBack003
(
err
,
data
)
{
console
.
info
(
"
==========================>subscriberCallBack003
"
);
expect
(
data
.
event
).
assertEqual
(
"
publish_event0300
"
);
expect
(
data
.
bundleName
).
assertEqual
(
"
PublishBundleName0300
"
);
expect
(
data
.
code
).
assertEqual
(
55
);
expect
(
data
.
data
).
assertEqual
(
"
PublishData0300
"
);
commonEventSubscriber003
.
isOrderedCommonEvent
(
isOrderedCommonEventCallback003
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录