Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ea723ddb
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看板
未验证
提交
ea723ddb
编写于
1月 28, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 28, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1716 【XTS】【事件通知子系统】API接口覆盖率提升(二)
Merge pull request !1716 from dwq/master
上级
b43f28e6
585736b3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
58 addition
and
10 deletion
+58
-10
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
...est/entry/src/main/js/test/ActsSubscriber_test_unorder.js
+58
-10
未找到文件。
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
浏览文件 @
ea723ddb
...
@@ -113,11 +113,6 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -113,11 +113,6 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
console
.
info
(
"
==========================>publishCallback
"
);
console
.
info
(
"
==========================>publishCallback
"
);
}
}
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{}
}
function
findArray
(
str
)
{
function
findArray
(
str
)
{
var
value
=
false
;
var
value
=
false
;
var
index1
=
0
;
var
index1
=
0
;
...
@@ -214,8 +209,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -214,8 +209,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
commonEventSubscriber1
=
data
;
commonEventSubscriber1
=
data
;
Subscriber
.
subscribe
(
commonEventSubscriber1
,
subscriberCallBack001
);
Subscriber
.
subscribe
(
commonEventSubscriber1
,
subscriberCallBack001
);
for
(
var
i
=
0
;
i
<
50
;
++
i
)
{
for
(
var
i
=
0
;
i
<
50
;
++
i
)
{
sleep
(
1000
);
setTimeout
(
function
(){
Subscriber
.
publish
(
commonEventSubscribeInfo
.
events
[
i
],
publishCallback
);
console
.
debug
(
"
===============>ActsSubscriberTestUnorderSystem_0100 delay 1s==================
"
);
Subscriber
.
publish
(
commonEventSubscribeInfo
.
events
[
i
],
publishCallback
);
},
1000
);
}
}
})
})
})
})
...
@@ -289,8 +286,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -289,8 +286,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
commonEventSubscriber2
=
data
;
commonEventSubscriber2
=
data
;
Subscriber
.
subscribe
(
commonEventSubscriber2
,
subscriberCallBack002
);
Subscriber
.
subscribe
(
commonEventSubscriber2
,
subscriberCallBack002
);
for
(
var
i
=
0
;
i
<
36
;
++
i
)
{
for
(
var
i
=
0
;
i
<
36
;
++
i
)
{
sleep
(
1000
);
setTimeout
(
function
(){
Subscriber
.
publish
(
commonEventSubscribeInfo
.
events
[
i
],
publishCallback
);
console
.
debug
(
"
===============>ActsSubscriberTestUnorderSystem_0200 delay 1s==================
"
);
Subscriber
.
publish
(
commonEventSubscribeInfo
.
events
[
i
],
publishCallback
);
},
1000
);
}
}
})
})
})
})
...
@@ -312,7 +311,56 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -312,7 +311,56 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
Subscriber
.
Support
.
COMMON_EVENT_DISK_MOUNTED
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_MOUNTED
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_BAD_REMOVAL
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_BAD_REMOVAL
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_UNMOUNTABLE
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_UNMOUNTABLE
,
Subscriber
.
Support
.
COMMON_EVENT_DISK_EJECT
Subscriber
.
Support
.
COMMON_EVENT_DISK_EJECT
,
Subscriber
.
Support
.
COMMON_EVENT_LOCKED_BOOT_COMPLETED
,
Subscriber
.
Support
.
COMMON_EVENT_USER_SWITCHED
,
Subscriber
.
Support
.
COMMON_EVENT_USER_STARTING
,
Subscriber
.
Support
.
COMMON_EVENT_USER_STOPPING
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_SCAN_FINISHED
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_RSSI_VALUE
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_AP_STA_JOIN
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_AP_STA_LEAVE
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_STATE_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED
,
Subscriber
.
Support
.
COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED
,
Subscriber
.
Support
.
COMMON_EVENT_USER_ADDED
,
Subscriber
.
Support
.
COMMON_EVENT_USER_REMOVED
,
Subscriber
.
Support
.
COMMON_EVENT_ABILITY_ADDED
,
Subscriber
.
Support
.
COMMON_EVENT_ABILITY_REMOVED
,
Subscriber
.
Support
.
COMMON_EVENT_ABILITY_UPDATED
,
Subscriber
.
Support
.
COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED
,
Subscriber
.
Support
.
COMMON_EVENT_ACCOUNT_DELETED
,
Subscriber
.
Support
.
COMMON_EVENT_FOUNDATION_READY
],
],
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录