Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ac21e147
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看板
提交
ac21e147
编写于
7月 08, 2023
作者:
H
huyunhui1
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of gitee.com:huyunhui1/xts_acts
Signed-off-by:
N
huyunhui1
<
huyunhui1@huawei.com
>
上级
65199644
fab5a9ad
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
92 addition
and
90 deletion
+92
-90
arkcompiler/BUILD.gn
arkcompiler/BUILD.gn
+21
-21
arkcompiler/esmodule/BUILD.gn
arkcompiler/esmodule/BUILD.gn
+23
-23
arkcompiler/esmodule/esmodule_entry/BUILD.gn
arkcompiler/esmodule/esmodule_entry/BUILD.gn
+22
-21
arkcompiler/esmodule/esmodule_entry/entry/src/main/ets/workers/workerImportNapi.ts
...dule_entry/entry/src/main/ets/workers/workerImportNapi.ts
+2
-2
arkcompiler/esmodule/esmodule_entry/entry/src/main/ets/workers/workerImportRelative.ts
..._entry/entry/src/main/ets/workers/workerImportRelative.ts
+1
-1
arkcompiler/esmodule/esmodule_ohostest/BUILD.gn
arkcompiler/esmodule/esmodule_ohostest/BUILD.gn
+23
-22
未找到文件。
arkcompiler/BUILD.gn
浏览文件 @
ac21e147
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//build/ohos_var.gni")
import("//build/ohos_var.gni")
group("arkcompiler") {
group("arkcompiler") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [ "esmodule:esmodule" ]
deps = [ "esmodule:esmodule" ]
}
}
}
}
\ No newline at end of file
arkcompiler/esmodule/BUILD.gn
浏览文件 @
ac21e147
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//build/ohos_var.gni")
import("//build/ohos_var.gni")
group("esmodule") {
group("esmodule") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"esmodule_entry:ActsEsmoduleEntryTest",
"esmodule_entry:ActsEsmoduleEntryTest",
"esmodule_ohostest:ActsEsmoduleOhostestTest"
"esmodule_ohostest:ActsEsmoduleOhostestTest",
]
]
}
}
}
}
\ No newline at end of file
arkcompiler/esmodule/esmodule_entry/BUILD.gn
浏览文件 @
ac21e147
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_app_suite("ActsEsmoduleEntryTest") {
ohos_js_app_suite("ActsEsmoduleEntryTest") {
hap_name = "ActsEsmoduleEntryTest"
hap_name = "ActsEsmoduleEntryTest"
testonly = true
testonly = true
part_name = "ets_frontend"
part_name = "ets_frontend"
subsystem_name = "arkcompiler"
subsystem_name = "arkcompiler"
certificate_profile = "./signature/auto_ohos_default_esmodule_entry_com.esmodule.acts.p7b"
certificate_profile =
}
"./signature/auto_ohos_default_esmodule_entry_com.esmodule.acts.p7b"
\ No newline at end of file
}
arkcompiler/esmodule/esmodule_entry/entry/src/main/ets/workers/workerImportNapi.ts
浏览文件 @
ac21e147
...
@@ -18,9 +18,9 @@ import worker from '@ohos.worker';
...
@@ -18,9 +18,9 @@ import worker from '@ohos.worker';
const
ADDEND_FIRST
=
2
;
const
ADDEND_FIRST
=
2
;
const
ADDEND_SECOND
=
3
;
const
ADDEND_SECOND
=
3
;
const
SUM
=
5
;
const
SUM
=
5
;
var
workerPort
=
worker
.
workerPort
;
let
workerPort
=
worker
.
workerPort
;
workerPort
.
onmessage
=
function
():
void
{
workerPort
.
onmessage
=
function
():
void
{
if
(
add
(
ADDEND_FIRST
,
ADD_SECOND
)
===
SUM
)
{
if
(
add
(
ADDEND_FIRST
,
ADD
END
_SECOND
)
===
SUM
)
{
workerPort
.
postMessage
(
'
ModuleTest receive data from main thread
'
);
workerPort
.
postMessage
(
'
ModuleTest receive data from main thread
'
);
}
}
};
};
\ No newline at end of file
arkcompiler/esmodule/esmodule_entry/entry/src/main/ets/workers/workerImportRelative.ts
浏览文件 @
ac21e147
...
@@ -20,7 +20,7 @@ const ADDEND_SECOND = 3;
...
@@ -20,7 +20,7 @@ const ADDEND_SECOND = 3;
const
SUM
=
5
;
const
SUM
=
5
;
let
workerPort
=
worker
.
workerPort
;
let
workerPort
=
worker
.
workerPort
;
workerPort
.
onmessage
=
function
():
void
{
workerPort
.
onmessage
=
function
():
void
{
if
(
add
(
ADDEND_FIRST
,
ADD_SECOND
)
===
SUM
)
{
if
(
add
(
ADDEND_FIRST
,
ADD
END
_SECOND
)
===
SUM
)
{
workerPort
.
postMessage
(
'
ModuleTest receive data from main thread
'
);
workerPort
.
postMessage
(
'
ModuleTest receive data from main thread
'
);
}
}
};
};
\ No newline at end of file
arkcompiler/esmodule/esmodule_ohostest/BUILD.gn
浏览文件 @
ac21e147
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_app_suite("ActsEsmoduleOhostestTest") {
ohos_js_app_suite("ActsEsmoduleOhostestTest") {
hap_name = "ActsEsmoduleOhostestTest"
hap_name = "ActsEsmoduleOhostestTest"
test_hap = true
test_hap = true
testonly = true
testonly = true
part_name = "ets_frontend"
part_name = "ets_frontend"
subsystem_name = "arkcompiler"
subsystem_name = "arkcompiler"
certificate_profile = "./signature/auto_ohos_default_esmodule_ohosTest_com.esmodule.acts.p7b"
certificate_profile =
}
"./signature/auto_ohos_default_esmodule_ohosTest_com.esmodule.acts.p7b"
\ No newline at end of file
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录