Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b6a18b57
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看板
提交
b6a18b57
编写于
9月 03, 2022
作者:
X
xuchenghua09
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update seletor test
Signed-off-by:
N
xuchenghua09
<
xuchenghua09@huawei.com
>
上级
fc5d6978
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
86 addition
and
33 deletion
+86
-33
ability/ability_runtime/actsappselector/actsappselectorpctest/entry/src/main/ets/MainAbility/MainAbility.ts
...ectorpctest/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actsappselector/actsappselectorpctest/entry/src/main/ets/test/Ability.test.ets
...ppselectorpctest/entry/src/main/ets/test/Ability.test.ets
+22
-17
ability/ability_runtime/actsappselector/actsappselectortest/entry/src/main/ets/MainAbility/MainAbility.ts
...electortest/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actsappselector/actsappselectortest/entry/src/main/ets/test/Ability.test.ets
...sappselectortest/entry/src/main/ets/test/Ability.test.ets
+8
-10
ability/ability_runtime/actsappselector/actsimagejrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
...agejrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-2
ability/ability_runtime/actsappselector/actsimagejrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
...gejrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
+51
-0
ability/ability_runtime/actsappselector/actsserviceabilityarelyhap/entry/src/main/module.json
...tor/actsserviceabilityarelyhap/entry/src/main/module.json
+1
-1
ability/ability_runtime/actsappselector/actsserviceabilitybrelyhap/entry/src/main/module.json
...tor/actsserviceabilitybrelyhap/entry/src/main/module.json
+1
-1
未找到文件。
ability/ability_runtime/actsappselector/actsappselectorpctest/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
b6a18b57
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import
Ability
from
'
@ohos.application.Ability
'
import
Ability
from
'
@ohos.application.Ability
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
hypium/index
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../test/List.test
'
import
testsuite
from
'
../test/List.test
'
export
default
class
MainAbility
extends
Ability
{
export
default
class
MainAbility
extends
Ability
{
...
...
ability/ability_runtime/actsappselector/actsappselectorpctest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
b6a18b57
...
@@ -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
commonEvent
from
'@ohos.commonEvent'
import
commonEvent
from
'@ohos.commonEvent'
import
{
BY
,
UiDriver
,
UiComponent
,
MatchPattern
}
from
'@ohos.uitest'
import
{
BY
,
UiDriver
,
UiComponent
,
MatchPattern
}
from
'@ohos.uitest'
import
AbilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
import
AbilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
...
@@ -115,7 +115,8 @@ export default function abilityTest() {
...
@@ -115,7 +115,8 @@ export default function abilityTest() {
console
.
log
(
'ACTS_AppSelectorTest_1200 cmd = '
+
cmdInstall
);
console
.
log
(
'ACTS_AppSelectorTest_1200 cmd = '
+
cmdInstall
);
await
abilityDelegator
.
executeShellCommand
(
cmdInstall
);
await
abilityDelegator
.
executeShellCommand
(
cmdInstall
);
await
sleep
(
2000
);
let
subscriber
=
await
commonEvent
.
createSubscriber
(
subscriberInfo
);
globalThis
.
abilityContext
.
startAbility
(
globalThis
.
abilityContext
.
startAbility
(
{
{
action
:
"ohos.want.action.viewData"
,
action
:
"ohos.want.action.viewData"
,
...
@@ -123,20 +124,20 @@ export default function abilityTest() {
...
@@ -123,20 +124,20 @@ export default function abilityTest() {
parameters
:
{
parameters
:
{
uri
:
"filePath"
uri
:
"filePath"
}
}
},
(
error
,
data
)
=>
{
},
async
(
error
,
data
)
=>
{
console
.
debug
(
"ACTS_AppSelectorTest_1200 startAbility "
+
console
.
debug
(
"ACTS_AppSelectorTest_1200 startAbility "
+
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
console
.
debug
(
"ACTS_AppSelectorTest_1200 startAbility end"
);
console
.
debug
(
"ACTS_AppSelectorTest_1200 startAbility end"
);
})
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
await
sleep
(
2000
);
await
sleep
(
2000
);
console
.
log
(
"ACTS_AppSelectorTest_1200 findComponent"
);
console
.
log
(
"ACTS_AppSelectorTest_1200 findComponent"
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagearelyhap'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagearelyhap'
)
.
enabled
(
true
))
console
.
log
(
"ACTS_AppSelectorTest_1200 button "
+
JSON
.
stringify
(
button
));
console
.
log
(
"ACTS_AppSelectorTest_1200 button "
+
JSON
.
stringify
(
button
));
await
button
.
click
();
await
button
.
click
();
})
let
subscriber
=
await
commonEvent
.
createSubscriber
(
subscriberInfo
);
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
async
function
SubscribeCallBack
(
err
,
data
)
{
async
function
SubscribeCallBack
(
err
,
data
)
{
console
.
log
(
'ACTS_AppSelectorTest_1200 bundleName = '
+
data
.
parameters
.
bundleName
);
console
.
log
(
'ACTS_AppSelectorTest_1200 bundleName = '
+
data
.
parameters
.
bundleName
);
...
@@ -258,7 +259,7 @@ export default function abilityTest() {
...
@@ -258,7 +259,7 @@ export default function abilityTest() {
console
.
log
(
"ACTS_AppSelectorTest_1400 rectAlias "
+
JSON
.
stringify
(
rectAlias
));
console
.
log
(
"ACTS_AppSelectorTest_1400 rectAlias "
+
JSON
.
stringify
(
rectAlias
));
await
driver
.
swipe
(
rectSerial
.
leftX
,
rectSerial
.
topY
,
rectAlias
.
leftX
,
rectAlias
.
topY
)
await
driver
.
swipe
(
rectSerial
.
leftX
,
rectSerial
.
topY
,
rectAlias
.
leftX
,
rectAlias
.
topY
)
await
sleep
(
2
000
);
await
sleep
(
3
000
);
console
.
log
(
"ACTS_AppSelectorTest_1400 findComponent"
);
console
.
log
(
"ACTS_AppSelectorTest_1400 findComponent"
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagegrelyhap'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagegrelyhap'
)
.
enabled
(
true
))
console
.
log
(
"ACTS_AppSelectorTest_1400 button "
+
JSON
.
stringify
(
button
));
console
.
log
(
"ACTS_AppSelectorTest_1400 button "
+
JSON
.
stringify
(
button
));
...
@@ -310,13 +311,16 @@ export default function abilityTest() {
...
@@ -310,13 +311,16 @@ export default function abilityTest() {
console
.
debug
(
"ACTS_AppSelectorTest_1500 startAbility "
+
console
.
debug
(
"ACTS_AppSelectorTest_1500 startAbility "
+
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
console
.
debug
(
"ACTS_AppSelectorTest_1500 startAbility end"
);
console
.
debug
(
"ACTS_AppSelectorTest_1500 startAbility end"
);
await
driver
.
click
(
400
,
400
);
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
await
sleep
(
2000
);
console
.
log
(
"ACTS_AppSelectorTest_1500 findComponent"
);
console
.
log
(
"ACTS_AppSelectorTest_1500 findComponent"
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagebrelyhap'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'imagebrelyhap'
)
.
enabled
(
true
))
await
driver
.
click
(
400
,
400
);
console
.
log
(
"ACTS_AppSelectorTest_1500 button "
+
JSON
.
stringify
(
button
));
console
.
log
(
"ACTS_AppSelectorTest_1500 button "
+
JSON
.
stringify
(
button
));
await
button
.
click
();
await
button
.
click
();
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
})
})
async
function
SubscribeCallBack
(
err
,
data
)
{
async
function
SubscribeCallBack
(
err
,
data
)
{
...
@@ -371,6 +375,7 @@ export default function abilityTest() {
...
@@ -371,6 +375,7 @@ export default function abilityTest() {
await
button
.
click
();
await
button
.
click
();
try
{
try
{
await
sleep
(
2000
);
let
close
=
await
driver
.
findComponent
(
BY
.
text
(
'取消'
)
.
enabled
(
true
))
let
close
=
await
driver
.
findComponent
(
BY
.
text
(
'取消'
)
.
enabled
(
true
))
console
.
log
(
"ACTS_AppSelectorTest_1600 close "
+
JSON
.
stringify
(
close
));
console
.
log
(
"ACTS_AppSelectorTest_1600 close "
+
JSON
.
stringify
(
close
));
expect
(
close
==
null
)
.
assertTrue
();
expect
(
close
==
null
)
.
assertTrue
();
...
@@ -378,7 +383,7 @@ export default function abilityTest() {
...
@@ -378,7 +383,7 @@ export default function abilityTest() {
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
debug
(
"ACTS_AppSelectorTest_1600 catch err: "
+
JSON
.
stringify
(
err
));
console
.
debug
(
"ACTS_AppSelectorTest_1600 catch err: "
+
JSON
.
stringify
(
err
));
console
.
debug
(
"ACTS_AppSelectorTest_1600 catch err: "
+
err
);
console
.
debug
(
"ACTS_AppSelectorTest_1600 catch err: "
+
err
);
expect
(
""
)
.
assertFail
(
);
expect
(
err
.
code
)
.
assertEqual
(
"INTERNAL_ERROR"
);
done
();
done
();
}
}
})
})
...
@@ -425,7 +430,7 @@ export default function abilityTest() {
...
@@ -425,7 +430,7 @@ export default function abilityTest() {
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
debug
(
"ACTS_AppSelectorTest_1700 catch err: "
+
JSON
.
stringify
(
err
));
console
.
debug
(
"ACTS_AppSelectorTest_1700 catch err: "
+
JSON
.
stringify
(
err
));
console
.
debug
(
"ACTS_AppSelectorTest_1700 catch err: "
+
err
);
console
.
debug
(
"ACTS_AppSelectorTest_1700 catch err: "
+
err
);
expect
(
""
)
.
assertFail
(
);
expect
(
err
.
code
)
.
assertEqual
(
"INTERNAL_ERROR"
);
done
();
done
();
}
}
})
})
...
...
ability/ability_runtime/actsappselector/actsappselectortest/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
b6a18b57
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import
Ability
from
'
@ohos.application.Ability
'
import
Ability
from
'
@ohos.application.Ability
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
hypium/index
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../test/List.test
'
import
testsuite
from
'
../test/List.test
'
export
default
class
MainAbility
extends
Ability
{
export
default
class
MainAbility
extends
Ability
{
...
...
ability/ability_runtime/actsappselector/actsappselectortest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
b6a18b57
...
@@ -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
commonEvent
from
'@ohos.commonEvent'
import
commonEvent
from
'@ohos.commonEvent'
import
{
BY
,
UiDriver
,
UiComponent
,
MatchPattern
}
from
'@ohos.uitest'
import
{
BY
,
UiDriver
,
UiComponent
,
MatchPattern
}
from
'@ohos.uitest'
import
AbilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
import
AbilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
...
@@ -97,7 +97,7 @@ export default function abilityTest() {
...
@@ -97,7 +97,7 @@ export default function abilityTest() {
let
button
=
await
component
.
getBounds
()
let
button
=
await
component
.
getBounds
()
console
.
log
(
"ACTS_AppSelectorTest_3200 button "
+
JSON
.
stringify
(
button
));
console
.
log
(
"ACTS_AppSelectorTest_3200 button "
+
JSON
.
stringify
(
button
));
await
sleep
(
2
000
);
await
sleep
(
1
000
);
globalThis
.
abilityContext
.
startAbility
(
globalThis
.
abilityContext
.
startAbility
(
{
{
bundleName
:
"imagejrelyhap"
,
bundleName
:
"imagejrelyhap"
,
...
@@ -107,9 +107,9 @@ export default function abilityTest() {
...
@@ -107,9 +107,9 @@ export default function abilityTest() {
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
console
.
debug
(
"ACTS_AppSelectorTest_3200 startAbility end"
);
console
.
debug
(
"ACTS_AppSelectorTest_3200 startAbility end"
);
await
sleep
(
2000
);
await
sleep
(
5000
);
await
driver
.
click
(
button
.
leftX
,
button
.
topY
);
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
await
driver
.
click
(
button
.
leftX
,
button
.
topY
);
})
})
})
})
...
@@ -267,9 +267,9 @@ export default function abilityTest() {
...
@@ -267,9 +267,9 @@ export default function abilityTest() {
console
.
log
(
"ACTS_AppSelectorTest_0300 findComponent"
);
console
.
log
(
"ACTS_AppSelectorTest_0300 findComponent"
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'textbrelyhap.com.example'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'textbrelyhap.com.example'
)
.
enabled
(
true
))
console
.
log
(
"ACTS_AppSelectorTest_0300 button "
+
JSON
.
stringify
(
button
));
console
.
log
(
"ACTS_AppSelectorTest_0300 button "
+
JSON
.
stringify
(
button
));
await
button
.
click
();
subscriber
=
await
commonEvent
.
createSubscriber
(
subscriberInfo
);
subscriber
=
await
commonEvent
.
createSubscriber
(
subscriberInfo
);
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
commonEvent
.
subscribe
(
subscriber
,
SubscribeCallBack
)
await
button
.
click
();
async
function
SubscribeCallBack
(
err
,
data
)
{
async
function
SubscribeCallBack
(
err
,
data
)
{
console
.
log
(
'ACTS_AppSelectorTest_0300 SubscribeCallBack'
);
console
.
log
(
'ACTS_AppSelectorTest_0300 SubscribeCallBack'
);
...
@@ -869,7 +869,7 @@ export default function abilityTest() {
...
@@ -869,7 +869,7 @@ export default function abilityTest() {
},
async
(
error
,
data
)
=>
{
},
async
(
error
,
data
)
=>
{
console
.
log
(
"ACTS_AppSelectorTest_2300 startAbility "
+
console
.
log
(
"ACTS_AppSelectorTest_2300 startAbility "
+
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
expect
(
error
.
code
)
.
assertEqual
(
2097199
);
expect
(
error
.
code
)
.
assertEqual
(
1
);
await
sleep
(
2000
);
await
sleep
(
2000
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
console
.
debug
(
"ACTS_AppSelectorTest_2300 button: "
+
JSON
.
stringify
(
button
))
console
.
debug
(
"ACTS_AppSelectorTest_2300 button: "
+
JSON
.
stringify
(
button
))
...
@@ -902,7 +902,7 @@ export default function abilityTest() {
...
@@ -902,7 +902,7 @@ export default function abilityTest() {
},
async
(
error
,
data
)
=>
{
},
async
(
error
,
data
)
=>
{
console
.
log
(
"ACTS_AppSelectorTest_2400 startAbility "
+
console
.
log
(
"ACTS_AppSelectorTest_2400 startAbility "
+
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
expect
(
error
.
code
)
.
assertEqual
(
2097199
);
expect
(
error
.
code
)
.
assertEqual
(
1
);
await
sleep
(
2000
);
await
sleep
(
2000
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
console
.
debug
(
"ACTS_AppSelectorTest_2400 button: "
+
JSON
.
stringify
(
button
))
console
.
debug
(
"ACTS_AppSelectorTest_2400 button: "
+
JSON
.
stringify
(
button
))
...
@@ -935,7 +935,7 @@ export default function abilityTest() {
...
@@ -935,7 +935,7 @@ export default function abilityTest() {
},
async
(
error
,
data
)
=>
{
},
async
(
error
,
data
)
=>
{
console
.
log
(
"ACTS_AppSelectorTest_2500 startAbility "
+
console
.
log
(
"ACTS_AppSelectorTest_2500 startAbility "
+
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
JSON
.
stringify
(
error
)
+
","
+
JSON
.
stringify
(
data
));
expect
(
error
.
code
)
.
assertEqual
(
2097199
);
expect
(
error
.
code
)
.
assertEqual
(
1
);
await
sleep
(
2000
);
await
sleep
(
2000
);
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
let
button
=
await
driver
.
findComponent
(
BY
.
text
(
'知道了'
)
.
enabled
(
true
))
console
.
debug
(
"ACTS_AppSelectorTest_2500 button: "
+
JSON
.
stringify
(
button
))
console
.
debug
(
"ACTS_AppSelectorTest_2500 button: "
+
JSON
.
stringify
(
button
))
...
@@ -1243,8 +1243,6 @@ export default function abilityTest() {
...
@@ -1243,8 +1243,6 @@ export default function abilityTest() {
}
}
})
})
/*
/*
* @tc.number: ACTS_AppSelectorTest_3300
* @tc.number: ACTS_AppSelectorTest_3300
* @tc.name: Multi-hap application with action and type configured in feature
* @tc.name: Multi-hap application with action and type configured in feature
...
...
ability/ability_runtime/actsappselector/actsimagejrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
b6a18b57
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
Ability
from
'
@ohos.application.Ability
'
import
Ability
from
'
@ohos.application.Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
export
default
class
MainAbility
extends
Ability
{
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
onCreate
(
want
,
launchParam
)
{
...
@@ -28,7 +27,7 @@ export default class MainAbility extends Ability {
...
@@ -28,7 +27,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, "pages/index", null)
}
}
onWindowStageDestroy
()
{
onWindowStageDestroy
()
{
...
...
ability/ability_runtime/actsappselector/actsimagejrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
0 → 100644
浏览文件 @
b6a18b57
/*
* 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 '@system.router';
import file from '@system.file';
@Entry
@Component
struct Index {
aboutToAppear() {
console.info('MainAbility index aboutToAppear')
}
@State message: string = 'MainAbility'
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/actsappselector/actsserviceabilityarelyhap/entry/src/main/module.json
浏览文件 @
b6a18b57
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
"srcEntrance"
:
"./ets/ServiceAbility/ServiceAbility.ts"
,
"srcEntrance"
:
"./ets/ServiceAbility/ServiceAbility.ts"
,
"label"
:
"$string:service_ServiceAbility_desc"
,
"label"
:
"$string:service_ServiceAbility_desc"
,
"description"
:
"$string:service_ServiceAbility_desc"
,
"description"
:
"$string:service_ServiceAbility_desc"
,
"type"
:
"service"
,
"type"
:
"service
|dataShare
"
,
"visible"
:
true
"visible"
:
true
}
}
]
]
...
...
ability/ability_runtime/actsappselector/actsserviceabilitybrelyhap/entry/src/main/module.json
浏览文件 @
b6a18b57
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
"srcEntrance"
:
"./ets/ServiceAbility/ServiceAbility.ts"
,
"srcEntrance"
:
"./ets/ServiceAbility/ServiceAbility.ts"
,
"label"
:
"$string:service_ServiceAbility_label"
,
"label"
:
"$string:service_ServiceAbility_label"
,
"description"
:
"$string:service_ServiceAbility_desc"
,
"description"
:
"$string:service_ServiceAbility_desc"
,
"type"
:
"service"
,
"type"
:
"service
|dataShare
"
,
"visible"
:
true
,
"visible"
:
true
,
"skills"
:
[
"skills"
:
[
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录