Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
76c8bf81
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看板
提交
76c8bf81
编写于
8月 04, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS用例上库
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
10213a13
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
220 addition
and
45 deletion
+220
-45
ability/ability_runtime/formmanager/BUILD.gn
ability/ability_runtime/formmanager/BUILD.gn
+2
-2
ability/ability_runtime/formmanager/stage/BUILD.gn
ability/ability_runtime/formmanager/stage/BUILD.gn
+1
-3
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/BUILD.gn
...e/formmanager/stage/actsformprovidergetformsinfo/BUILD.gn
+1
-1
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/BUILD.gn
...manager/stage/actsformprovidergetformsinfo/entry/BUILD.gn
+4
-1
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/Test.json
...anager/stage/actsformprovidergetformsinfo/entry/Test.json
+6
-4
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/MainAbility/MainAbility.ts
...etformsinfo/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/MainAbility/pages/index.ets
...tformsinfo/entry/src/main/ets/MainAbility/pages/index.ets
+11
-18
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestAbility/TestAbility.ts
...etformsinfo/entry/src/main/ets/TestAbility/TestAbility.ts
+50
-0
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestAbility/pages/index.ets
...tformsinfo/entry/src/main/ets/TestAbility/pages/index.ets
+48
-0
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...fo/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+78
-0
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
...rmsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
+7
-4
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/resources/base/profile/main_pages.json
...nfo/entry/src/main/resources/base/profile/main_pages.json
+1
-1
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module1/BUILD.gn
...nager/stage/actsformprovidergetformsinfo/module1/BUILD.gn
+4
-4
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module1/src/main/ets/pages/index.ets
...providergetformsinfo/module1/src/main/ets/pages/index.ets
+1
-1
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module2/BUILD.gn
...nager/stage/actsformprovidergetformsinfo/module2/BUILD.gn
+4
-4
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module2/src/main/ets/pages/index.ets
...providergetformsinfo/module2/src/main/ets/pages/index.ets
+1
-1
未找到文件。
ability/ability_runtime/formmanager/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -16,9 +16,9 @@ import("//test/xts/tools/build/suite.gni")
...
@@ -16,9 +16,9 @@ import("//test/xts/tools/build/suite.gni")
group("formmanager") {
group("formmanager") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"fa:formmanager",
"fa:formmanager",
"stage:stage"
#"stage:stage",
]
]
}
}
}
}
ability/ability_runtime/formmanager/stage/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -16,8 +16,6 @@ import("//test/xts/tools/build/suite.gni")
...
@@ -16,8 +16,6 @@ import("//test/xts/tools/build/suite.gni")
group("stage") {
group("stage") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [ "actsformprovidergetformsinfo:actsformprovidergetformsinfo" ]
"actsformprovidergetformsinfo:actsformprovidergetformsinfo",
]
}
}
}
}
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -19,7 +19,7 @@ group("actsformprovidergetformsinfo") {
...
@@ -19,7 +19,7 @@ group("actsformprovidergetformsinfo") {
deps = [
deps = [
"entry:ActsFormProviderGetFormsInfoTest",
"entry:ActsFormProviderGetFormsInfoTest",
"module1:ActsFormProviderGetFormsInfoModule1",
"module1:ActsFormProviderGetFormsInfoModule1",
"module2:ActsFormProviderGetFormsInfoModule2"
"module2:ActsFormProviderGetFormsInfoModule2"
,
]
]
}
}
}
}
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -19,8 +19,12 @@ ohos_js_hap_suite("ActsFormProviderGetFormsInfoTest") {
...
@@ -19,8 +19,12 @@ ohos_js_hap_suite("ActsFormProviderGetFormsInfoTest") {
":actsformprovidergetformsinfotest_js_assets",
":actsformprovidergetformsinfotest_js_assets",
":actsformprovidergetformsinfotest_resources",
":actsformprovidergetformsinfotest_resources",
]
]
ets2abc = true
certificate_profile = "../signature/openharmony_sx.p7b"
certificate_profile = "../signature/openharmony_sx.p7b"
hap_name = "ActsFormProviderGetFormsInfoTest"
hap_name = "ActsFormProviderGetFormsInfoTest"
js_build_mode = "debug"
subsystem_name = "ability"
part_name = "form_fwk"
}
}
ohos_app_scope("actsformprovidergetformsinfotest_app_profile") {
ohos_app_scope("actsformprovidergetformsinfotest_app_profile") {
...
@@ -29,7 +33,6 @@ ohos_app_scope("actsformprovidergetformsinfotest_app_profile") {
...
@@ -29,7 +33,6 @@ ohos_app_scope("actsformprovidergetformsinfotest_app_profile") {
}
}
ohos_js_assets("actsformprovidergetformsinfotest_js_assets") {
ohos_js_assets("actsformprovidergetformsinfotest_js_assets") {
ets2abc = true
source_dir = "src/main/ets"
source_dir = "src/main/ets"
}
}
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/Test.json
浏览文件 @
76c8bf81
{
{
"description"
:
"Configuration for hjunit demo Tests"
,
"description"
:
"Configuration for hjunit demo Tests"
,
"driver"
:
{
"driver"
:
{
"type"
:
"JSUnitTest"
,
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"180000"
,
"test-timeout"
:
"600000"
,
"package"
:
"com.example.getformsinfotest"
,
"bundle-name"
:
"com.example.getformsinfotest"
,
"shell-timeout"
:
"600000"
"module-name"
:
"entry"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
20000
},
},
"kits"
:
[
"kits"
:
[
{
{
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
76c8bf81
...
@@ -28,7 +28,7 @@ export default class MainAbility extends Ability {
...
@@ -28,7 +28,7 @@ export default class MainAbility extends Ability {
// Main window is created, set main page for this ability
// Main window is created, set main page for this ability
console
.
log
(
"
[Demo] MainAbility onWindowStageCreate
"
)
console
.
log
(
"
[Demo] MainAbility onWindowStageCreate
"
)
windowStage
.
setUIContent
(
this
.
context
,
"
pages/index
"
,
null
)
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/
pages/index
"
,
null
)
}
}
onWindowStageDestroy
()
{
onWindowStageDestroy
()
{
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/pages/index.ets
→
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/
MainAbility/
pages/index.ets
浏览文件 @
76c8bf81
...
@@ -12,31 +12,24 @@
...
@@ -12,31 +12,24 @@
* 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 file from '@system.file';
import router from '@ohos.router';
import { Core, ExpectExtend, InstrumentLog, ReportExtend } from "deccjsunit/index"
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import List from '../test/List.test'
import { Hypium } from '@ohos/hypium'
import testsuite from '../../test/List.test'
@Entry
@Entry
@Component
@Component
struct Index {
struct Index {
@State message: string = 'Hello World'
@State message: string = 'Hello World
entry
'
aboutToAppear() {
aboutToAppear() {
console.info("start run testcase!!!!")
console.info("start run testcase!!!!")
const core = Core.getInstance()
var abilityDelegator: any
const expectExtend = new ExpectExtend({
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
'id': 'extend'
var abilityDelegatorArguments: any
})
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
core.addService('expect', expectExtend)
console.info('start run testcase!!!')
const reportExtend = new ReportExtend(file)
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
core.addService('report', reportExtend)
core.init()
globalThis.abilityWant.parameters.timeout = 10000;
core.subscribeEvent('task', reportExtend)
const configService = core.getDefaultService('config')
configService.setConfig(globalThis.abilityWant.parameters);
List()
core.execute()
}
}
build() {
build() {
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestAbility/TestAbility.ts
0 → 100644
浏览文件 @
76c8bf81
/*
* 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.
*/
import
Ability
from
'
@ohos.application.Ability
'
export
default
class
TestAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
console
.
log
(
'
TestAbility onCreate
'
)
}
onDestroy
()
{
console
.
log
(
'
TestAbility onDestroy
'
)
}
onWindowStageCreate
(
windowStage
)
{
console
.
log
(
'
TestAbility onWindowStageCreate
'
)
windowStage
.
loadContent
(
"
TestAbility/pages/index
"
,
(
err
,
data
)
=>
{
if
(
err
.
code
)
{
console
.
error
(
'
Failed to load the content. Cause:
'
+
JSON
.
stringify
(
err
));
return
;
}
console
.
info
(
'
Succeeded in loading the content. Data:
'
+
JSON
.
stringify
(
data
))
});
globalThis
.
abilityContext
=
this
.
context
;
}
onWindowStageDestroy
()
{
console
.
log
(
'
TestAbility onWindowStageDestroy
'
)
}
onForeground
()
{
console
.
log
(
'
TestAbility onForeground
'
)
}
onBackground
()
{
console
.
log
(
'
TestAbility onBackground
'
)
}
};
\ No newline at end of file
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestAbility/pages/index.ets
0 → 100644
浏览文件 @
76c8bf81
/*
* 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.
*/
import router from '@ohos.router';
@Entry
@Component
struct Index {
aboutToAppear() {
console.info('TestAbility index aboutToAppear')
}
@State message: string = 'Hello World'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('next page')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.width('35%')
.height('5%')
.onClick(()=>{
})
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
0 → 100644
浏览文件 @
76c8bf81
/*
* 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.
*/
import
TestRunner
from
'
@ohos.application.testRunner
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
var
abilityDelegator
=
undefined
var
abilityDelegatorArguments
=
undefined
function
translateParamsToString
(
parameters
)
{
const
keySet
=
new
Set
([
'
-s class
'
,
'
-s notClass
'
,
'
-s suite
'
,
'
-s it
'
,
'
-s level
'
,
'
-s testType
'
,
'
-s size
'
,
'
-s timeout
'
,
'
-s dryRun
'
])
let
targetParams
=
''
;
for
(
const
key
in
parameters
)
{
if
(
keySet
.
has
(
key
))
{
targetParams
=
`
${
targetParams
}
${
key
}
${
parameters
[
key
]}
`
}
}
return
targetParams
.
trim
()
}
async
function
onAbilityCreateCallback
()
{
console
.
log
(
"
onAbilityCreateCallback
"
);
}
async
function
addAbilityMonitorCallback
(
err
:
any
)
{
console
.
info
(
"
addAbilityMonitorCallback :
"
+
JSON
.
stringify
(
err
))
}
export
default
class
OpenHarmonyTestRunner
implements
TestRunner
{
constructor
()
{
}
onPrepare
()
{
console
.
info
(
"
OpenHarmonyTestRunner OnPrepare
"
)
}
async
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
)
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
testAbilityName
=
abilityDelegatorArguments
.
bundleName
+
'
.MainAbility
'
let
lMonitor
=
{
abilityName
:
testAbilityName
,
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a com.example.getformsinfotest.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
if
(
debug
==
'
true
'
)
{
cmd
+=
'
-D
'
}
console
.
info
(
'
cmd :
'
+
cmd
)
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
:
any
,
d
:
any
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
stdResult
);
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
exitCode
);
})
console
.
info
(
'
OpenHarmonyTestRunner onRun end
'
)
}
};
\ No newline at end of file
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
浏览文件 @
76c8bf81
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
hypium/index
'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
@ohos/hypium
'
import formProvider from '@ohos.application.formProvider';
import formProvider from '@ohos.application.formProvider';
import formInfo from '@ohos.application.formInfo';
import formInfo from '@ohos.application.formInfo';
import formError from '@ohos.application.formError';
import formError from '@ohos.application.formError';
...
@@ -183,7 +183,9 @@ export default function abilityTest() {
...
@@ -183,7 +183,9 @@ export default function abilityTest() {
formProvider.getFormsInfo(filter, function(err, value) {
formProvider.getFormsInfo(filter, function(err, value) {
console.info("formProvider::GetFormsInfoTest err: " + JSON.stringify(err));
console.info("formProvider::GetFormsInfoTest err: " + JSON.stringify(err));
console.info("formProvider::GetFormsInfoTest value: " + JSON.stringify(value));
console.info("formProvider::GetFormsInfoTest value: " + JSON.stringify(value));
expect(err.code).assertEqual(formError.FormError.ERR_ADD_INVALID_PARAM);
expect(err.code).assertEqual(0);
expect(value.length).assertEqual(2);
checkResultArray(expectResult, value);
done();
done();
});
});
});
});
...
@@ -294,10 +296,11 @@ export default function abilityTest() {
...
@@ -294,10 +296,11 @@ export default function abilityTest() {
moduleName: undefined
moduleName: undefined
};
};
formProvider.getFormsInfo(filter).then((value) => {
formProvider.getFormsInfo(filter).then((value) => {
expect().assertFail();
expect(value.length).assertEqual(2);
checkResultArray(expectResult, value);
}).catch((err) => {
}).catch((err) => {
console.info('formProvider::GetFormsInfoTest failed' + JSON.stringify(err));
console.info('formProvider::GetFormsInfoTest failed' + JSON.stringify(err));
expect(
err.code).assertEqual(formError.FormError.ERR_ADD_INVALID_PARAM
);
expect(
).assertFail(
);
})
})
done();
done();
});
});
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/resources/base/profile/main_pages.json
浏览文件 @
76c8bf81
{
{
"src"
:
[
"src"
:
[
"pages/index"
"
MainAbility/
pages/index"
]
]
}
}
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module1/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -13,12 +13,9 @@
...
@@ -13,12 +13,9 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsFormProviderGetFormsInfoModule1") {
ohos_hap
_assist_suite
("ActsFormProviderGetFormsInfoModule1") {
hap_name = "ActsFormProviderGetFormsInfoModule1"
hap_name = "ActsFormProviderGetFormsInfoModule1"
hap_profile = "src/main/module.json"
hap_profile = "src/main/module.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
testonly = true
deps = [
deps = [
":actsformprovidergetformsinfomodule1_js_assets",
":actsformprovidergetformsinfomodule1_js_assets",
...
@@ -26,6 +23,9 @@ ohos_hap("ActsFormProviderGetFormsInfoModule1") {
...
@@ -26,6 +23,9 @@ ohos_hap("ActsFormProviderGetFormsInfoModule1") {
]
]
ets2abc = true
ets2abc = true
certificate_profile = "../signature/openharmony_sx.p7b"
certificate_profile = "../signature/openharmony_sx.p7b"
js_build_mode = "debug"
subsystem_name = "ability"
part_name = "form_fwk"
}
}
ohos_app_scope("actsformprovidergetformsinfomodule1_app_profile") {
ohos_app_scope("actsformprovidergetformsinfomodule1_app_profile") {
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module1/src/main/ets/pages/index.ets
浏览文件 @
76c8bf81
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
@Entry
@Entry
@Component
@Component
struct Index {
struct Index {
@State message: string = 'Hello World'
@State message: string = 'Hello World
module1
'
build() {
build() {
Row() {
Row() {
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module2/BUILD.gn
浏览文件 @
76c8bf81
...
@@ -13,12 +13,9 @@
...
@@ -13,12 +13,9 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsFormProviderGetFormsInfoModule2") {
ohos_hap
_assist_suite
("ActsFormProviderGetFormsInfoModule2") {
hap_name = "ActsFormProviderGetFormsInfoModule2"
hap_name = "ActsFormProviderGetFormsInfoModule2"
hap_profile = "src/main/module.json"
hap_profile = "src/main/module.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
testonly = true
deps = [
deps = [
":actsformprovidergetformsinfomodule2_js_assets",
":actsformprovidergetformsinfomodule2_js_assets",
...
@@ -26,6 +23,9 @@ ohos_hap("ActsFormProviderGetFormsInfoModule2") {
...
@@ -26,6 +23,9 @@ ohos_hap("ActsFormProviderGetFormsInfoModule2") {
]
]
ets2abc = true
ets2abc = true
certificate_profile = "../signature/openharmony_sx.p7b"
certificate_profile = "../signature/openharmony_sx.p7b"
js_build_mode = "debug"
subsystem_name = "ability"
part_name = "form_fwk"
}
}
ohos_app_scope("actsformprovidergetformsinfomodule2_app_profile") {
ohos_app_scope("actsformprovidergetformsinfomodule2_app_profile") {
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/module2/src/main/ets/pages/index.ets
浏览文件 @
76c8bf81
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
@Entry
@Entry
@Component
@Component
struct Index {
struct Index {
@State message: string = 'Hello World'
@State message: string = 'Hello World
module2
'
build() {
build() {
Row() {
Row() {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录