Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bbdd53cb
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看板
未验证
提交
bbdd53cb
编写于
3月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2753 【XTS】【事件通知子系统】规范性修改
Merge pull request !2753 from zhijianwen/OpenHarmony-3.1-Release
上级
4421287d
4de9965d
变更
27
展开全部
隐藏空白更改
内联
并排
Showing
27 changed file
with
387 addition
and
238 deletion
+387
-238
notification/ans_standard/actsansnotificationcancel/entry/src/main/js/test/ActsAnsNotificationCancel.test.js
.../entry/src/main/js/test/ActsAnsNotificationCancel.test.js
+59
-59
notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js
.../entry/src/main/js/test/ActsAnsNotificationRemove.test.js
+116
-117
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js
...vebtn/activebutton/entry/src/main/js/test/ActiveButton.js
+2
-2
notification/ans_standard/publish_test/actsansgetallactive/entry/src/main/js/default/pages/index/index.css
...allactive/entry/src/main/js/default/pages/index/index.css
+15
-0
notification/ans_standard/publish_test/actsansgetallactive/entry/src/main/js/default/pages/index/index.hml
...allactive/entry/src/main/js/default/pages/index/index.hml
+15
-0
notification/ans_standard/publish_test/enablenotification/enablenotification/entry/src/main/js/default/pages/index/index.hml
...ification/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/publish/entry/src/main/js/default/pages/index/index.css
...t/publish/entry/src/main/js/default/pages/index/index.css
+15
-0
notification/ans_standard/publish_test/publish/entry/src/main/js/default/pages/index/index.hml
...t/publish/entry/src/main/js/default/pages/index/index.hml
+16
-1
notification/ans_standard/publish_test/sub/entry/src/main/js/default/pages/index/index.css
..._test/sub/entry/src/main/js/default/pages/index/index.css
+15
-0
notification/ans_standard/publish_test/sub/entry/src/main/js/default/pages/index/index.hml
..._test/sub/entry/src/main/js/default/pages/index/index.hml
+16
-1
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/default/pages/index/index.hml
...antagent1/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/default/pages/index/index.hml
...t1promise/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/default/pages/index/index.hml
...antagent3/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/default/pages/index/index.hml
...t3promise/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/default/pages/index/index.hml
...antagent4/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/default/pages/index/index.hml
...t4promise/entry/src/main/js/default/pages/index/index.hml
+2
-2
notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/default/pages/index/index.hml
...antagent5/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/default/pages/index/index.hml
...t5promise/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ces_standard/subscribeandpublish/actspublish/entry/src/main/js/default/pages/index/index.css
...tspublish/entry/src/main/js/default/pages/index/index.css
+15
-0
notification/ces_standard/subscribeandpublish/actspublish/entry/src/main/js/default/pages/index/index.hml
...tspublish/entry/src/main/js/default/pages/index/index.hml
+16
-1
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/default/pages/index/index.hml
...deredtest/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/test/ActsSubscriber_test_ordered.js
...est/entry/src/main/js/test/ActsSubscriber_test_ordered.js
+30
-30
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/default/pages/index/index.hml
...ystemtest/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
...est/entry/src/main/js/test/ActsSubscriber_test_unorder.js
+12
-12
notification/ces_standard/subscribeandpublish/actssubscriberunordertest/entry/src/main/js/default/pages/index/index.hml
...ordertest/entry/src/main/js/default/pages/index/index.hml
+1
-1
notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/default/pages/index/index.css
...ittertest/entry/src/main/js/default/pages/index/index.css
+16
-1
notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/default/pages/index/index.hml
...ittertest/entry/src/main/js/default/pages/index/index.hml
+16
-1
未找到文件。
notification/ans_standard/actsansnotificationcancel/entry/src/main/js/test/ActsAnsNotificationCancel.test.js
浏览文件 @
bbdd53cb
此差异已折叠。
点击以展开。
notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js
浏览文件 @
bbdd53cb
此差异已折叠。
点击以展开。
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js
浏览文件 @
bbdd53cb
...
@@ -228,9 +228,9 @@ describe('ActsAnsActionButtonTest', function () {
...
@@ -228,9 +228,9 @@ describe('ActsAnsActionButtonTest', function () {
WantAgent
.
trigger
(
wantAgentD
,
triggerInfoD
,
WantAgent
.
trigger
(
wantAgentD
,
triggerInfoD
,
(
err
,
data
)
=>
{
(
err
,
data
)
=>
{
if
(
err
.
code
==
0
)
{
if
(
err
.
code
==
0
)
{
console
.
info
(
'
==== trigger
D
success
'
+
err
.
code
+
JSON
.
stringify
(
data
)
);
console
.
info
(
'
==== trigger
ed
success
'
+
err
.
code
+
JSON
.
stringify
(
data
)
);
}
else
{
}
else
{
console
.
info
(
'
----trigger
D
failed!----
'
+
err
.
code
);
console
.
info
(
'
----trigger
ed
failed!----
'
+
err
.
code
);
}
}
});
});
}
}
...
...
notification/ans_standard/publish_test/actsansgetallactive/entry/src/main/js/default/pages/index/index.css
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
.container
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
...
...
notification/ans_standard/publish_test/actsansgetallactive/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="container">
<text class="title">
<text class="title">
currentApp
currentApp
...
...
notification/ans_standard/publish_test/enablenotification/enablenotification/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
通知许可设定测试
Test Enabling of Notifiction
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/publish/entry/src/main/js/default/pages/index/index.css
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
.container
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
...
...
notification/ans_standard/publish_test/publish/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="container">
<text class="title">
<text class="title">
发布Icon通知
Publishing ICON Notifiction
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/sub/entry/src/main/js/default/pages/index/index.css
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
.container
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
...
...
notification/ans_standard/publish_test/sub/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="container">
<text class="title">
<text class="title">
订阅发布
Text of Publishing Common Event
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgent1
WantAgent1
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgent1Promise
WantAgent1Promise
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgent3
WantAgent3
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgentPromise3
WantAgentPromise3
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgent4
WantAgent4
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgentPromise4
WantAgentPromise4
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgent5
WantAgent5
Startup
</text>
</text>
</div>
</div>
notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
WantAgentPromise5
WantAgentPromise5
Startup
</text>
</text>
</div>
</div>
notification/ces_standard/subscribeandpublish/actspublish/entry/src/main/js/default/pages/index/index.css
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
.container
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
...
...
notification/ces_standard/subscribeandpublish/actspublish/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="container">
<text class="title">
<text class="title">
您好,地球1111
Hello, World!
{{ $t('strings.hello') }} {{ title }}
{{ $t('strings.hello') }} {{ title }}
</text>
</text>
</div>
</div>
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
Hello,
Earth! 1111
Hello,
World!
{{ $t('strings.hello') }} {{ title }}
{{ $t('strings.hello') }} {{ title }}
</text>
</text>
</div>
</div>
notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/entry/src/main/js/test/ActsSubscriber_test_ordered.js
浏览文件 @
bbdd53cb
...
@@ -17,18 +17,18 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
...
@@ -17,18 +17,18 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
describe
(
'
ActsSubscriberTestOrder
'
,
function
()
{
describe
(
'
ActsSubscriberTestOrder
'
,
function
()
{
console
.
info
(
"
===========ActsSubscriberTestOrder start====================>
"
);
console
.
info
(
"
===========ActsSubscriberTestOrder start====================>
"
);
var
num2
=
0
;
let
num2
=
0
;
var
order
=
false
;
let
order
=
false
;
var
commonEventSubscriber0100
;
let
commonEventSubscriber0100
;
var
commonEventSubscriber0101
;
let
commonEventSubscriber0101
;
var
commonEventSubscriber0200
;
let
commonEventSubscriber0200
;
var
commonEventSubscriber0201
;
let
commonEventSubscriber0201
;
var
commonEventSubscriber0300
;
let
commonEventSubscriber0300
;
var
commonEventSubscriber0301
;
let
commonEventSubscriber0301
;
var
commonEventSubscriber0400
;
let
commonEventSubscriber0400
;
var
commonEventSubscriber0401
;
let
commonEventSubscriber0401
;
var
commonEventSubscriber0500
;
let
commonEventSubscriber0500
;
var
commonEventSubscriber0501
;
let
commonEventSubscriber0501
;
function
publishCallback
(
err
)
{
function
publishCallback
(
err
)
{
console
.
info
(
"
===============>publishCallback
"
);
console
.
info
(
"
===============>publishCallback
"
);
...
@@ -46,17 +46,17 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -46,17 +46,17 @@ describe('ActsSubscriberTestOrder', function () {
it
(
'
ActsSubscriberTestOrder_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestOrder_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0100===============>
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0100===============>
"
);
var
commonEventSubscribeInfo1
=
{
let
commonEventSubscribeInfo1
=
{
events
:
[
"
publish_event0100
"
],
events
:
[
"
publish_event0100
"
],
priority
:
10
priority
:
10
};
};
var
commonEventSubscribeInfo2
=
{
let
commonEventSubscribeInfo2
=
{
events
:
[
"
publish_event0100
"
],
events
:
[
"
publish_event0100
"
],
priority
:
9
priority
:
9
};
};
var
commonEventPublishData
=
{
let
commonEventPublishData
=
{
bundleName
:
"
publish_event0100_bundleName
"
,
bundleName
:
"
publish_event0100_bundleName
"
,
code
:
1
,
code
:
1
,
data
:
"
publish_event1001_init
"
,
data
:
"
publish_event1001_init
"
,
...
@@ -163,25 +163,25 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -163,25 +163,25 @@ describe('ActsSubscriberTestOrder', function () {
it
(
'
ActsSubscriberTestOrder_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestOrder_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0200===============>
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0200===============>
"
);
var
commonEventSubscribeInfo1
=
{
let
commonEventSubscribeInfo1
=
{
events
:
[
"
publish_event0200
"
,
events
:
[
"
publish_event0200
"
,
"
publish_event0201
"
],
"
publish_event0201
"
],
priority
:
10
priority
:
10
};
};
var
commonEventSubscribeInfo2
=
{
let
commonEventSubscribeInfo2
=
{
events
:
[
"
publish_event0201
"
],
events
:
[
"
publish_event0201
"
],
priority
:
9
priority
:
9
};
};
var
commonEventPublishData1
=
{
let
commonEventPublishData1
=
{
bundleName
:
"
publish_event0200_bundleName
"
,
bundleName
:
"
publish_event0200_bundleName
"
,
code
:
1
,
code
:
1
,
data
:
"
publish_event0200_init
"
,
data
:
"
publish_event0200_init
"
,
isOrdered
:
false
,
isOrdered
:
false
,
}
}
var
commonEventPublishData2
=
{
let
commonEventPublishData2
=
{
bundleName
:
"
publish_event0201_bundleName
"
,
bundleName
:
"
publish_event0201_bundleName
"
,
code
:
1
,
code
:
1
,
data
:
"
publish_event0201_init
"
,
data
:
"
publish_event0201_init
"
,
...
@@ -275,24 +275,24 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -275,24 +275,24 @@ describe('ActsSubscriberTestOrder', function () {
it
(
'
ActsSubscriberTestOrder_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestOrder_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0300===============>
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0300===============>
"
);
var
commonEventSubscribeInfo1
=
{
let
commonEventSubscribeInfo1
=
{
events
:
[
"
publish_event0301
"
],
events
:
[
"
publish_event0301
"
],
priority
:
9
priority
:
9
};
};
var
commonEventSubscribeInfo2
=
{
let
commonEventSubscribeInfo2
=
{
events
:
[
"
publish_event0301
"
],
events
:
[
"
publish_event0301
"
],
priority
:
10
priority
:
10
};
};
var
commonEventPublishData2
=
{
let
commonEventPublishData2
=
{
bundleName
:
"
publish_event0301_bundleName
"
,
bundleName
:
"
publish_event0301_bundleName
"
,
code
:
1
,
code
:
1
,
data
:
"
publish_event0301_init
"
,
data
:
"
publish_event0301_init
"
,
isOrdered
:
true
,
isOrdered
:
true
,
}
}
var
callBackNum
=
0
;
let
callBackNum
=
0
;
async
function
subscriberCallBack0300
(
err
,
data
)
{
async
function
subscriberCallBack0300
(
err
,
data
)
{
console
.
info
(
"
===============>subscriberCallBack0300========event:
"
+
data
.
event
);
console
.
info
(
"
===============>subscriberCallBack0300========event:
"
+
data
.
event
);
console
.
info
(
"
===============>subscriberCallBack0300========bundleName:
"
+
data
.
bundleName
);
console
.
info
(
"
===============>subscriberCallBack0300========bundleName:
"
+
data
.
bundleName
);
...
@@ -368,7 +368,7 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -368,7 +368,7 @@ describe('ActsSubscriberTestOrder', function () {
data
.
getSubscribeInfo
().
then
(()
=>
{
data
.
getSubscribeInfo
().
then
(()
=>
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0300=========getSubscribeInfo promise2
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0300=========getSubscribeInfo promise2
"
);
Subscriber
.
subscribe
(
commonEventSubscriber0301
,
subscriberCallBack0301
);
Subscriber
.
subscribe
(
commonEventSubscriber0301
,
subscriberCallBack0301
);
var
numindex
=
0
;
let
numindex
=
0
;
for
(;
numindex
<
3
;
++
numindex
)
{
for
(;
numindex
<
3
;
++
numindex
)
{
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
===================ActsSubscriberTestOrder_0300 delay 100ms==================
"
);
console
.
debug
(
"
===================ActsSubscriberTestOrder_0300 delay 100ms==================
"
);
...
@@ -388,17 +388,17 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -388,17 +388,17 @@ describe('ActsSubscriberTestOrder', function () {
it
(
'
ActsSubscriberTestOrder_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestOrder_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0400===============>
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0400===============>
"
);
var
commonEventSubscribeInfo1
=
{
let
commonEventSubscribeInfo1
=
{
events
:
[
"
publish_eventOrder0400
"
],
events
:
[
"
publish_eventOrder0400
"
],
priority
:
10
priority
:
10
};
};
var
commonEventSubscribeInfo2
=
{
let
commonEventSubscribeInfo2
=
{
events
:
[
"
publish_eventOrder0400
"
],
events
:
[
"
publish_eventOrder0400
"
],
priority
:
9
priority
:
9
};
};
var
commonEventPublishData
=
{
let
commonEventPublishData
=
{
bundleName
:
"
publish_event0400_bundleName
"
,
bundleName
:
"
publish_event0400_bundleName
"
,
code
:
1
,
code
:
1
,
data
:
"
publish_event0400_init
"
,
data
:
"
publish_event0400_init
"
,
...
@@ -472,17 +472,17 @@ describe('ActsSubscriberTestOrder', function () {
...
@@ -472,17 +472,17 @@ describe('ActsSubscriberTestOrder', function () {
it
(
'
ActsSubscriberTestOrder_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestOrder_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestOrder_0500===============>
"
);
console
.
info
(
"
===============ActsSubscriberTestOrder_0500===============>
"
);
var
commonEventSubscribeInfo1
=
{
let
commonEventSubscribeInfo1
=
{
events
:
[
"
publish_event0500
"
],
events
:
[
"
publish_event0500
"
],
priority
:
1001
priority
:
1001
};
};
var
commonEventSubscribeInfo2
=
{
let
commonEventSubscribeInfo2
=
{
events
:
[
"
publish_event0500
"
],
events
:
[
"
publish_event0500
"
],
priority
:
-
101
priority
:
-
101
};
};
var
commonEventPublishData
=
{
let
commonEventPublishData
=
{
bundleName
:
"
publish_event0500_bundleName
"
,
bundleName
:
"
publish_event0500_bundleName
"
,
code
:
10
,
code
:
10
,
data
:
"
publish_event0500_init
"
,
data
:
"
publish_event0500_init
"
,
...
...
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
Hello,
Earth! 1111
Hello,
World!
{{ $t('strings.hello') }} {{ title }}
{{ $t('strings.hello') }} {{ title }}
</text>
</text>
</div>
</div>
notification/ces_standard/subscribeandpublish/actssubscriberunordersystemtest/entry/src/main/js/test/ActsSubscriber_test_unorder.js
浏览文件 @
bbdd53cb
...
@@ -17,10 +17,10 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
...
@@ -17,10 +17,10 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
describe
(
'
ActsSubscriberTestUnorderSystem
'
,
async
function
(
done
)
{
describe
(
'
ActsSubscriberTestUnorderSystem
'
,
async
function
(
done
)
{
console
.
info
(
"
===========ActsSubscriberTestUnorderSystem start====================>
"
);
console
.
info
(
"
===========ActsSubscriberTestUnorderSystem start====================>
"
);
var
commonEventSubscriber1
;
let
commonEventSubscriber1
;
var
commonEventSubscriber2
;
let
commonEventSubscriber2
;
var
commonEventSubscriber3
;
let
commonEventSubscriber3
;
var
array
=
[
let
array
=
[
Subscriber
.
Support
.
COMMON_EVENT_SHUTDOWN
,
Subscriber
.
Support
.
COMMON_EVENT_SHUTDOWN
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_LOW
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_LOW
,
...
@@ -116,9 +116,9 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -116,9 +116,9 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
}
}
function
findArray
(
str
)
{
function
findArray
(
str
)
{
var
value
=
false
;
let
value
=
false
;
var
index1
=
0
;
let
index1
=
0
;
var
length
=
array
.
length
;
let
length
=
array
.
length
;
for
(;
index1
<
length
;
++
index1
)
{
for
(;
index1
<
length
;
++
index1
)
{
if
(
array
[
index1
]
==
str
)
{
if
(
array
[
index1
]
==
str
)
{
value
=
true
;
value
=
true
;
...
@@ -135,7 +135,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -135,7 +135,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
*/
*/
it
(
'
ActsSubscriberTestUnorderSystem_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestUnorderSystem_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0100 start==========================>
"
);
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0100 start==========================>
"
);
var
commonEventSubscribeInfo
=
{
let
commonEventSubscribeInfo
=
{
events
:
[
events
:
[
Subscriber
.
Support
.
COMMON_EVENT_SHUTDOWN
,
Subscriber
.
Support
.
COMMON_EVENT_SHUTDOWN
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_CHANGED
,
Subscriber
.
Support
.
COMMON_EVENT_BATTERY_CHANGED
,
...
@@ -190,7 +190,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -190,7 +190,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
],
],
};
};
var
result
=
0
;
let
result
=
0
;
function
subscriberCallBack001
(
err
,
data
)
{
function
subscriberCallBack001
(
err
,
data
)
{
console
.
info
(
"
==========================>subscriberCallBack001 event =
"
+
data
.
event
);
console
.
info
(
"
==========================>subscriberCallBack001 event =
"
+
data
.
event
);
...
@@ -226,7 +226,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -226,7 +226,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
*/
*/
it
(
'
ActsSubscriberTestUnorderSystem_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestUnorderSystem_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0200 start==========================>
"
);
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0200 start==========================>
"
);
var
commonEventSubscribeInfo
=
{
let
commonEventSubscribeInfo
=
{
events
:
[
events
:
[
Subscriber
.
Support
.
COMMON_EVENT_WIFI_HOTSPOT_STATE
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_HOTSPOT_STATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE
,
...
@@ -267,7 +267,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -267,7 +267,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
],
],
};
};
var
result
=
0
;
let
result
=
0
;
function
subscriberCallBack002
(
err
,
data
)
{
function
subscriberCallBack002
(
err
,
data
)
{
console
.
info
(
"
==========================>subscriberCallBack002 event =
"
+
data
.
event
);
console
.
info
(
"
==========================>subscriberCallBack002 event =
"
+
data
.
event
);
...
@@ -304,7 +304,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
...
@@ -304,7 +304,7 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
*/
*/
it
(
'
ActsSubscriberTestUnorderSystem_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsSubscriberTestUnorderSystem_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0300 start==========================>
"
);
console
.
info
(
"
===============ActsSubscriberTestUnorderSystem_0300 start==========================>
"
);
var
commonEventSubscribeInfo
=
{
let
commonEventSubscribeInfo
=
{
events
:
[
events
:
[
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_CONN_STATE
,
Subscriber
.
Support
.
COMMON_EVENT_WIFI_P2P_CONN_STATE
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED
,
Subscriber
.
Support
.
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED
,
...
...
notification/ces_standard/subscribeandpublish/actssubscriberunordertest/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div class="container">
<div class="container">
<text class="title">
<text class="title">
Hello,
Earth! 1111
Hello,
World!
{{ $t('strings.hello') }} {{ title }}
{{ $t('strings.hello') }} {{ title }}
</text>
</text>
</div>
</div>
notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/default/pages/index/index.css
浏览文件 @
bbdd53cb
.container
{
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
...
notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/default/pages/index/index.hml
浏览文件 @
bbdd53cb
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="container">
<text class="title">
<text class="title">
您好,地球1111
Hello, World!
{{ $t('strings.hello') }} {{ title }}
{{ $t('strings.hello') }} {{ title }}
</text>
</text>
</div>
</div>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录