Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f6b37ee9
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看板
提交
f6b37ee9
编写于
11月 04, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts--编译报错适配
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
978b0d12
变更
81
隐藏空白更改
内联
并排
Showing
81 changed file
with
62 addition
and
165 deletion
+62
-165
ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts
...Command07/entry/src/main/ets/MainAbility3/MainAbility3.ts
+0
-1
ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts
...Command08/entry/src/main/ets/MainAbility3/MainAbility3.ts
+0
-1
ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
...yusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
+0
-1
ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
...yusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
+0
-1
ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets
...bilitytest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets
...est/entry/src/main/ets/MainAbility/test/callTest.test.ets
+0
-3
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets
...estagetest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts
...stagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts
+1
-2
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts
...stagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts
+1
-2
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets
...tystatestagetest/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets
...bilitystageatest/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets
...bilitystagebtest/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets
.../SystemSingleton/entry/src/main/ets/test/Ability.test.ets
+0
-3
ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets
...ngletonExtension/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets
...onExtensionFalse/entry/src/main/ets/test/Ability.test.ets
+0
-9
ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets
...emSingletonFalse/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets
...n/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets
+0
-3
ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets
...ngletonExtension/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets
...onExtensionFalse/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets
...rdSingletonFalse/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
...unnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
+0
-1
ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
...unnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
+0
-1
ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets
...tionmultipletest/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets
...rmationmultitest/entry/src/main/ets/test/Ability.test.ets
+0
-1
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets
...rc/main/ets/CreateFormAbility/pages/MainAbility_pages.ets
+2
-2
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets
.../src/main/ets/FormHostAbility/pages/MainAbility_pages.ets
+1
-1
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
...ntry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
+0
-1
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets
...ry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets
+0
-1
ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets
...ystemhostk/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets
...ystemhostl/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets
...lityfatest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
...ntry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
+0
-2
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets
...try/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets
+0
-2
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets
...y/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets
+0
-1
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets
...onnectabilitystagetest/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
...ystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
+0
-2
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets
...getest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets
...lityfatest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets
...ntry/src/main/ets/MainAbility/test/StartAbility.test2.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets
...ilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets
+9
-8
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets
...listfatest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets
...entry/src/main/ets/MainAbility/test/StartAbility.test.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets
...elistfatest/entry/src/main/ets/MainAbility/test/Utils.ets
+9
-8
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets
...sultfatest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets
.../main/ets/MainAbility/test/StartAbilityForResult.test.ets
+19
-22
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets
...main/ets/MainAbility/test/StartAbilityForResult2.test.ets
+0
-3
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets
...esultfatest/entry/src/main/ets/MainAbility/test/Utils.ets
+9
-8
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets
...rgetfatest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets
.../main/ets/MainAbility/test/StartAbilityForResult.test.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets
...argetfatest/entry/src/main/ets/MainAbility/test/Utils.ets
+9
-8
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets
...lityforresultstagetest/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets
...agetest/entry/src/main/ets/test/StartAbilityForResult.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets
...getbundleliststagetest/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets
...agetest/entry/src/main/ets/test/StartAbilityForResult.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets
...lstartabilitystagetest/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets
...startabilitystagetest/entry/src/main/ets/pages/second.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets
...itystagetest/entry/src/main/ets/test/StartAbilityTest.ets
+0
-3
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets
...getbundleliststagetest/entry/src/main/ets/pages/index.ets
+0
-2
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets
...iststagetest/entry/src/main/ets/test/StartAbilityTest.ets
+0
-2
ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets
...a_test/entry/src/main/ets/test/AbilityPermission.test.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
...ntry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
+0
-1
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
...clemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
+0
-1
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets
...glehaptest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
...lesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
+1
-2
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets
...tslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
...try/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
...ntry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
...clemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets
...glehaptest/entry/src/main/ets/MainAbility/pages/index.ets
+0
-1
ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
...lesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
+1
-2
未找到文件。
ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
// @ts-nocheck
import router from '@ohos.router';
import file from '@system.file';
import testsuite from "../../test/List.test"
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -21,7 +20,7 @@ export default class MainAbility3 extends Ability {
console
.
log
(
"
MainAbility3 onCreate
"
)
}
onDestroy
(
want
)
{
onDestroy
()
{
// Ability is destroying, release resources for this ability
console
.
log
(
"
MainAbility3 onDestroy
"
)
}
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -21,7 +20,7 @@ export default class MainAbility4 extends Ability {
console
.
log
(
"
MainAbility4 onCreate
"
)
}
onDestroy
(
want
)
{
onDestroy
()
{
// Ability is destroying, release resources for this ability
console
.
log
(
"
MainAbility4 onDestroy
"
)
}
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 4000;
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 2000;
...
...
@@ -259,7 +258,6 @@ export default function singleusermodelTest() {
let temp
let cmd = 'aa dump -a'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0800: err : ' + JSON.stringify(err));
console.info('executeShellCommand 0800: data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("SingleUserModel1800") == -1).assertTrue()
...
...
@@ -269,7 +267,6 @@ export default function singleusermodelTest() {
})
cmd = 'aa dump -a -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand : data 0: ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("SingleUserModel1800") == -1).assertTrue()
...
...
ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
...
...
ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const ABILITY_TIMEOUT=5000;
...
...
@@ -137,7 +136,6 @@ export default function singleusermodelTest() {
let temp
let cmd ='aa dump -e'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility2") == -1).assertTrue()
...
...
@@ -147,7 +145,6 @@ export default function singleusermodelTest() {
})
cmd ='aa dump -e -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand : data 0: ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility2") == -1).assertTrue()
...
...
@@ -215,7 +212,6 @@ export default function singleusermodelTest() {
let temp
let cmd ='aa dump -e'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility3") == -1).assertTrue()
...
...
@@ -225,7 +221,6 @@ export default function singleusermodelTest() {
})
cmd ='aa dump -e -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand : data 0: ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility3") == -1).assertTrue()
...
...
@@ -284,7 +279,6 @@ export default function singleusermodelTest() {
let temp
let cmd ='aa dump -e'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility4") == -1).assertTrue()
...
...
@@ -294,7 +288,6 @@ export default function singleusermodelTest() {
})
cmd ='aa dump -e -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand : data 0: ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility4") == -1).assertTrue()
...
...
@@ -361,7 +354,6 @@ export default function singleusermodelTest() {
let temp
let cmd ='aa dump -e'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility5") == -1).assertTrue()
...
...
@@ -371,7 +363,6 @@ export default function singleusermodelTest() {
})
cmd ='aa dump -e -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand : data 0: ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("ServiceAbility5") == -1).assertTrue()
...
...
ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 3000;
...
...
ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const START_ABILITY_TIMEOUT = 3000;
...
...
@@ -41,7 +40,6 @@ export default function singleusermodelTest() {
let temp
let cmd = 'aa dump -a'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("SingleUserModel1900") >= 0).assertTrue()
...
...
@@ -51,7 +49,6 @@ export default function singleusermodelTest() {
})
cmd = 'aa dump -a -u 0'
await abilityDelegator.executeShellCommand(cmd).then((data) => {
console.info('executeShellCommand 0: err : ' + JSON.stringify(err));
console.info('executeShellCommand 0: data : ' + JSON.stringify(data));
temp = data["stdResult"];
expect(temp.indexOf("SingleUserModel1900") == -1).assertTrue()
...
...
ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
...
...
ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
...
...
ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const START_ABILITY_TIMEOUT = 3000;
...
...
ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent';
...
...
ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent';
...
...
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -29,6 +28,7 @@ struct Index {
@State ability: string = "FormAbility";
@State moduleName: string = "phone";
@State name: string = "form1";
@State allowUpate: boolean = true;
private dimension: FormDimension = FormDimension.Dimension_2_2;
private temporary = false;
...
...
@@ -49,7 +49,7 @@ struct Index {
dimension: this.dimension,
temporary: this.temporary,
})
.allowUpdate(this.allowUpate)
.allowUpdate(this.allowUpate
)
.visibility(this.isShowing ? Visibility.Visible : Visibility.Hidden)
.onAcquired((form) => {
console.log("[FormComponent.host] get form, form id:" + form.id);
...
...
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -26,6 +25,7 @@ struct Index {
@State ability: string = "FormAbility";
@State moduleName: string = "phone";
@State name: string = "widget";
@State allowUpate: boolean = true;
private dimension: FormDimension = FormDimension.Dimension_2_1;
private temporary = false;
...
...
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
...
...
@@ -18,7 +18,6 @@ import formHost from '@ohos.application.formHost';
import commonEvent from '@ohos.commonEvent';
import systemTime from '@ohos.systemTime';
// @ts-nocheck
@Entry
@Component
struct Index {
...
...
ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
...
...
@@ -17,7 +17,6 @@ import commonEvent from '@ohos.commonEvent';
import featureAbility from '@ohos.ability.featureAbility';
import formHost from '@ohos.application.formHost';
// @ts-nocheck
@Entry
@Component
struct Index {
...
...
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets
浏览文件 @
f6b37ee9
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
// @ts-nocheck
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '@ohos/hypium'
import testsuite from '../test/ListTest'
...
...
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -24,7 +23,7 @@ export default class Utils {
static sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
resolve(
reject
)
}, time)
}).then(() => {
console.info(`sleep ${time} over...`)
...
...
@@ -76,6 +75,8 @@ export default class Utils {
x: downX,
y: downY,
type: TouchType.Down,
screenX: 0,
screenY: 1,
}
console.info('down touch started: ' + JSON.stringify(downPonit))
sendTouchEvent(downPonit);
...
...
@@ -88,7 +89,9 @@ export default class Utils {
id: 1,
x: downX + (xStep * i),
y: downY + (yStep * i),
type: TouchType.Move
type: TouchType.Move,
screenX: 0,
screenY: 1,
}
console.info('move touch started: ' + JSON.stringify(movePoint))
ret = sendTouchEvent(movePoint)
...
...
@@ -106,6 +109,8 @@ export default class Utils {
x: upX,
y: upY,
type: TouchType.Up,
screenX: 0,
screenY: 1,
}
console.info('up touch started: ' + JSON.stringify(upPoint))
sendTouchEvent(upPoint)
...
...
@@ -123,8 +128,4 @@ export default class Utils {
console.info("Get Interface duration: " + duration);
return duration;
}
}
}
\ No newline at end of file
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -24,7 +23,7 @@ export default class Utils {
static sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
resolve(
reject
)
}, time)
}).then(() => {
console.info(`sleep ${time} over...`)
...
...
@@ -76,6 +75,8 @@ export default class Utils {
x: downX,
y: downY,
type: TouchType.Down,
screenX: 0,
screenY: 1,
}
console.info('down touch started: ' + JSON.stringify(downPonit))
sendTouchEvent(downPonit);
...
...
@@ -88,7 +89,9 @@ export default class Utils {
id: 1,
x: downX + (xStep * i),
y: downY + (yStep * i),
type: TouchType.Move
type: TouchType.Move,
screenX: 0,
screenY: 1,
}
console.info('move touch started: ' + JSON.stringify(movePoint))
ret = sendTouchEvent(movePoint)
...
...
@@ -106,6 +109,8 @@ export default class Utils {
x: upX,
y: upY,
type: TouchType.Up,
screenX: 0,
screenY: 1,
}
console.info('up touch started: ' + JSON.stringify(upPoint))
sendTouchEvent(upPoint)
...
...
@@ -123,8 +128,4 @@ export default class Utils {
console.info("Get Interface duration: " + duration);
return duration;
}
}
}
\ No newline at end of file
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -753,15 +750,15 @@ export default function StartAbilityForResult() {
console.log("------------start FreeInstall_FA_StartAbilityForResult_1800-------------");
TAG = "FreeInstall_FA_StartAbilityForResult_1800";
let wrong;
var str =
{
'want'
: {
"bundleName"
: "com.example.qianyiyingyong.hmservice",
"abilityName"
: "com.example.qianyiyingyong.MainAbility",
"moduleName"
: "entry",
'flags': '11'
let startAbilityParameter =
{
want
: {
bundleName
: "com.example.qianyiyingyong.hmservice",
abilityName
: "com.example.qianyiyingyong.MainAbility",
moduleName
: "entry",
flags: 11
}
}
await featureAbility.startAbilityForResult(str)
await featureAbility.startAbilityForResult(st
artAbilityParamete
r)
.then((data) => {
console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data))
}).catch((error) => {
...
...
@@ -793,15 +790,15 @@ export default function StartAbilityForResult() {
})
await Utils.sleep(500);
let details;
var st
r = {
'want'
: {
let startAbilityParamete
r = {
want
: {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
'flags':
'11'
'flags':
11
}
}
await featureAbility.startAbilityForResult(str)
await featureAbility.startAbilityForResult(st
artAbilityParamete
r)
.then((data) => {
details = data;
console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data))
...
...
@@ -824,15 +821,15 @@ export default function StartAbilityForResult() {
console.log("------------start FreeInstall_FA_StartAbilityForResult_2000-------------");
TAG = "FreeInstall_FA_StartAbilityForResult_2000";
let wrong;
var st
r = {
'want'
: {
let startAbilityParamete
r = {
want
: {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
'flags':
''
'flags':
0
}
}
await featureAbility.startAbilityForResult(str)
await featureAbility.startAbilityForResult(st
artAbilityParamete
r)
.then((data) => {
console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data))
}).catch((error) => {
...
...
@@ -859,15 +856,15 @@ export default function StartAbilityForResult() {
})
await Utils.sleep(1000);
let details;
var st
r = {
'want'
: {
let startAbilityParamete
r = {
want
: {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
'flags':
''
'flags':
2
}
}
await featureAbility.startAbilityForResult(str)
await featureAbility.startAbilityForResult(st
artAbilityParamete
r)
.then((data) => {
details = data;
console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data))
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -24,7 +23,7 @@ export default class Utils {
static sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
resolve(
reject
)
}, time)
}).then(() => {
console.info(`sleep ${time} over...`)
...
...
@@ -76,6 +75,8 @@ export default class Utils {
x: downX,
y: downY,
type: TouchType.Down,
screenX: 0,
screenY: 1,
}
console.info('down touch started: ' + JSON.stringify(downPonit))
sendTouchEvent(downPonit);
...
...
@@ -88,7 +89,9 @@ export default class Utils {
id: 1,
x: downX + (xStep * i),
y: downY + (yStep * i),
type: TouchType.Move
type: TouchType.Move,
screenX: 0,
screenY: 1,
}
console.info('move touch started: ' + JSON.stringify(movePoint))
ret = sendTouchEvent(movePoint)
...
...
@@ -106,6 +109,8 @@ export default class Utils {
x: upX,
y: upY,
type: TouchType.Up,
screenX: 0,
screenY: 1,
}
console.info('up touch started: ' + JSON.stringify(upPoint))
sendTouchEvent(upPoint)
...
...
@@ -123,8 +128,4 @@ export default class Utils {
console.info("Get Interface duration: " + duration);
return duration;
}
}
}
\ No newline at end of file
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -24,7 +23,7 @@ export default class Utils {
static sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
resolve(
reject
)
}, time)
}).then(() => {
console.info(`sleep ${time} over...`)
...
...
@@ -76,6 +75,8 @@ export default class Utils {
x: downX,
y: downY,
type: TouchType.Down,
screenX: 0,
screenY: 1,
}
console.info('down touch started: ' + JSON.stringify(downPonit))
sendTouchEvent(downPonit);
...
...
@@ -88,7 +89,9 @@ export default class Utils {
id: 1,
x: downX + (xStep * i),
y: downY + (yStep * i),
type: TouchType.Move
type: TouchType.Move,
screenX: 0,
screenY: 1,
}
console.info('move touch started: ' + JSON.stringify(movePoint))
ret = sendTouchEvent(movePoint)
...
...
@@ -106,6 +109,8 @@ export default class Utils {
x: upX,
y: upY,
type: TouchType.Up,
screenX: 0,
screenY: 1,
}
console.info('up touch started: ' + JSON.stringify(upPoint))
sendTouchEvent(upPoint)
...
...
@@ -123,8 +128,4 @@ export default class Utils {
console.info("Get Interface duration: " + duration);
return duration;
}
}
}
\ No newline at end of file
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets
浏览文件 @
f6b37ee9
...
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import osaccount from '@ohos.account.osAccount'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent'
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -62,7 +61,7 @@ export default function lifecycleTest() {
});
var TAG = "";
var listKeyTemp
= ""
var listKeyTemp
;
var tempCallbackId;
function sleep(time) {
...
...
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
浏览文件 @
f6b37ee9
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -62,7 +61,7 @@ export default function lifecycleTest() {
});
var TAG = "";
var listKeyTemp
= ""
var listKeyTemp
;
var tempCallbackId;
function sleep(time) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录