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
arkcompiler/esmodule/BUILD.gn
浏览文件 @
ac21e147
...
@@ -18,7 +18,7 @@ group("esmodule") {
...
@@ -18,7 +18,7 @@ group("esmodule") {
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"esmodule_entry:ActsEsmoduleEntryTest",
"esmodule_entry:ActsEsmoduleEntryTest",
"esmodule_ohostest:ActsEsmoduleOhostestTest"
"esmodule_ohostest:ActsEsmoduleOhostestTest"
,
]
]
}
}
}
}
arkcompiler/esmodule/esmodule_entry/BUILD.gn
浏览文件 @
ac21e147
...
@@ -18,5 +18,6 @@ ohos_js_app_suite("ActsEsmoduleEntryTest") {
...
@@ -18,5 +18,6 @@ ohos_js_app_suite("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"
}
}
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
...
@@ -19,5 +19,6 @@ ohos_js_app_suite("ActsEsmoduleOhostestTest") {
...
@@ -19,5 +19,6 @@ ohos_js_app_suite("ActsEsmoduleOhostestTest") {
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"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录