Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a0e9e53e
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看板
提交
a0e9e53e
编写于
1月 04, 2023
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts编译报错整改
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
66fc06df
变更
28
隐藏空白更改
内联
并排
Showing
28 changed file
with
50 addition
and
49 deletion
+50
-49
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/Application/AbilityStage.ts
...appcalleea/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/MainAbility/MainAbility.ts
...mappcalleea/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/SecondAbility/SecondAbility.ts
...calleea/entry/src/main/ets/SecondAbility/SecondAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
...ppcalleea/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/Application/AbilityStage.ts
...appcallera/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/MainAbility/MainAbility.ts
...mappcallera/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/SecondAbility/SecondAbility.ts
...callera/entry/src/main/ets/SecondAbility/SecondAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
...ppcallera/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallerb/entry/src/main/ets/Application/AbilityStage.ts
...appcallerb/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallerb/entry/src/main/ets/MainAbility/MainAbility.ts
...mappcallerb/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallerc/entry/src/main/ets/Application/AbilityStage.ts
...appcallerc/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemappcallerc/entry/src/main/ets/MainAbility/MainAbility.ts
...mappcallerc/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/Application/AbilityStage.ts
...lentrytest/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/MainAbility/MainAbility.ts
...llentrytest/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/SecondAbility/SecondAbility.ts
...trytest/entry/src/main/ets/SecondAbility/SecondAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/TestAbility/TestAbility.ts
...llentrytest/entry/src/main/ets/TestAbility/TestAbility.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/test/Ability.test.ets
...temcallentrytest/entry/src/main/ets/test/Ability.test.ets
+23
-22
ability/ability_runtime/actscalltest/systemcallfeature/entry/src/main/ets/Application/AbilityStage.ts
...allfeature/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/systemcallfeature/entry/src/main/ets/MainAbility/MainAbility.ts
...callfeature/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdappa/entry/src/main/ets/Application/AbilityStage.ts
.../thirdappa/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/thirdappa/entry/src/main/ets/MainAbility/MainAbility.ts
...t/thirdappa/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/Application/AbilityStage.ts
...rdcalltest/entry/src/main/ets/Application/AbilityStage.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/FifthAbility/FifthAbility.ts
...dcalltest/entry/src/main/ets/FifthAbility/FifthAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/ForthAbility/ForthAbility.ts
...dcalltest/entry/src/main/ets/ForthAbility/ForthAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/MainAbility/MainAbility.ts
...irdcalltest/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/SecondAbility/SecondAbility.ts
...alltest/entry/src/main/ets/SecondAbility/SecondAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/TestAbility/TestAbility.ts
...irdcalltest/entry/src/main/ets/TestAbility/TestAbility.ts
+1
-1
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
...dcalltest/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
+1
-1
未找到文件。
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/SecondAbility/SecondAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/systemappcalleea/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
...
...
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/SecondAbility/SecondAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/systemappcallera/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/systemappcallerb/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemappcallerb/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
...
...
ability/ability_runtime/actscalltest/systemappcallerc/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemappcallerc/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
var
bundleNameCallee
=
"
com.example.systemcalltest
"
;
...
...
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
class
MySequenceable
{
class
MySequenceable
{
num
:
number
=
0
;
num
:
number
=
0
;
...
...
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/SecondAbility/SecondAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
callerA
=
"
SystemAppCallerA
"
var
callerA
=
"
SystemAppCallerA
"
...
...
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/TestAbility/TestAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
export
default
class
TestAbility
extends
Ability
{
export
default
class
TestAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
onCreate
(
want
,
launchParam
)
{
...
...
ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
a0e9e53e
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
*/
*/
import { describe, afterEach, it, expect } from "@ohos/hypium"
import { describe, afterEach, it, expect } from "@ohos/hypium"
import commonEvent from '@ohos.commonEvent'
import commonEvent from '@ohos.commonEvent'
import missionManager from '@ohos.application.missionManager'
var sysABundleName = "com.example.systemcalltest";
var sysABundleName = "com.example.systemcalltest";
var sysASecondAbilityName = "com.example.systemcalltest.SecondAbility";
var sysASecondAbilityName = "com.example.systemcalltest.SecondAbility";
...
@@ -520,7 +521,7 @@ export default function abilityTest() {
...
@@ -520,7 +521,7 @@ export default function abilityTest() {
done();
done();
}).catch(err => {
}).catch(err => {
console.log('ACTS_CommonComponent_Call_1700 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_1700 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_TYPE_ERROR);
expect(err.code).assertEqual(ERROR_CODE_TYPE_ERROR);
exceptionFlag = true;
exceptionFlag = true;
});
});
...
@@ -546,7 +547,7 @@ export default function abilityTest() {
...
@@ -546,7 +547,7 @@ export default function abilityTest() {
globalThis.callee.on('', onTest);
globalThis.callee.on('', onTest);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3100 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3100 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -572,7 +573,7 @@ export default function abilityTest() {
...
@@ -572,7 +573,7 @@ export default function abilityTest() {
globalThis.callee.on(null, onTest);
globalThis.callee.on(null, onTest);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3200 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3200 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -598,7 +599,7 @@ export default function abilityTest() {
...
@@ -598,7 +599,7 @@ export default function abilityTest() {
globalThis.callee.on(undefined, onTest);
globalThis.callee.on(undefined, onTest);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3300 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3300 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -620,7 +621,7 @@ export default function abilityTest() {
...
@@ -620,7 +621,7 @@ export default function abilityTest() {
globalThis.callee.off('');
globalThis.callee.off('');
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3400 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3400 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -642,7 +643,7 @@ export default function abilityTest() {
...
@@ -642,7 +643,7 @@ export default function abilityTest() {
globalThis.callee.off(null);
globalThis.callee.off(null);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3500 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3500 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -664,7 +665,7 @@ export default function abilityTest() {
...
@@ -664,7 +665,7 @@ export default function abilityTest() {
globalThis.callee.off(undefined);
globalThis.callee.off(undefined);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_3600 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_3600 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -685,7 +686,7 @@ export default function abilityTest() {
...
@@ -685,7 +686,7 @@ export default function abilityTest() {
globalThis.callee.on('testCall', "");
globalThis.callee.on('testCall', "");
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_4300 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_4300 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -727,7 +728,7 @@ export default function abilityTest() {
...
@@ -727,7 +728,7 @@ export default function abilityTest() {
globalThis.callee.on('testCall', undefined);
globalThis.callee.on('testCall', undefined);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_4500 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_4500 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -761,7 +762,7 @@ export default function abilityTest() {
...
@@ -761,7 +762,7 @@ export default function abilityTest() {
globalThis.callee.on('ACTS_CommonComponent_Call_5000', testCallback_5100);
globalThis.callee.on('ACTS_CommonComponent_Call_5000', testCallback_5100);
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_5000 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_5000 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_FUNC_REGISTERED);
expect(err.code).assertEqual(ERROR_CODE_FUNC_REGISTERED);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -798,7 +799,7 @@ export default function abilityTest() {
...
@@ -798,7 +799,7 @@ export default function abilityTest() {
globalThis.callee.off('ACTS_CommonComponent_Call_5100');
globalThis.callee.off('ACTS_CommonComponent_Call_5100');
} catch (err) {
} catch (err) {
console.log('ACTS_CommonComponent_Call_5100 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_5100 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_FUNC_NOT_EXIST);
expect(err.code).assertEqual(ERROR_CODE_FUNC_NOT_EXIST);
finishFlag = 1;
finishFlag = 1;
}
}
...
@@ -818,12 +819,12 @@ export default function abilityTest() {
...
@@ -818,12 +819,12 @@ export default function abilityTest() {
let exceptionFlag = false;
let exceptionFlag = false;
await globalThis.globalThis.abilityContext.startAbilityByCall(null)
await globalThis.globalThis.abilityContext.startAbilityByCall(null)
.then(data => {
.then(data => {
expect().assertFail();
expect().assertFail();
done();
done();
}).catch(err => {
}).catch(err => {
console.log('ACTS_CommonComponent_Call_5200 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_5200 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
exceptionFlag = true;
exceptionFlag = true;
...
@@ -850,7 +851,7 @@ export default function abilityTest() {
...
@@ -850,7 +851,7 @@ export default function abilityTest() {
done();
done();
}).catch(err => {
}).catch(err => {
console.log('ACTS_CommonComponent_Call_5300 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_5300 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INNER_ERROR);
expect(err.code).assertEqual(ERROR_CODE_INNER_ERROR);
exceptionFlag = true;
exceptionFlag = true;
});
});
...
@@ -872,12 +873,12 @@ export default function abilityTest() {
...
@@ -872,12 +873,12 @@ export default function abilityTest() {
.then(data => {
.then(data => {
expect().assertFail();
expect().assertFail();
done();
done();
}).catch(err => {
}).catch(err => {
console.log('ACTS_CommonComponent_Call_5400 call err.code: ' + JSON.stringify(err.code) +
console.log('ACTS_CommonComponent_Call_5400 call err.code: ' + JSON.stringify(err.code) +
' err.msg: ' + JSON.stringify(err.message));
' err.msg: ' + JSON.stringify(err.message));
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
expect(err.code).assertEqual(ERROR_CODE_INVALID_PARAM);
exceptionFlag = true;
exceptionFlag = true;
});
});
expect(exceptionFlag).assertEqual(true);
expect(exceptionFlag).assertEqual(true);
done();
done();
...
...
ability/ability_runtime/actscalltest/systemcallfeature/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/systemcallfeature/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
class
MySequenceable
{
class
MySequenceable
{
num
:
number
=
0
;
num
:
number
=
0
;
...
...
ability/ability_runtime/actscalltest/thirdappa/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/thirdappa/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/Application/AbilityStage.ts
浏览文件 @
a0e9e53e
...
@@ -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
AbilityStage
from
"
@ohos.app
lication
.AbilityStage
"
import
AbilityStage
from
"
@ohos.app
.ability
.AbilityStage
"
var
onAcceptWantCalledSeq
;
var
onAcceptWantCalledSeq
;
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/FifthAbility/FifthAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/ForthAbility/ForthAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
export
default
class
MainAbility
extends
Ability
{
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
onCreate
(
want
,
launchParam
)
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/SecondAbility/SecondAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/TestAbility/TestAbility.ts
浏览文件 @
a0e9e53e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
export
default
class
TestAbility
extends
Ability
{
export
default
class
TestAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
onCreate
(
want
,
launchParam
)
{
...
...
ability/ability_runtime/actscalltest/thirdcalltest/entry/src/main/ets/ThirdAbility/ThirdAbility.ts
浏览文件 @
a0e9e53e
...
@@ -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
Ability
from
'
@ohos.app
lication.
Ability
'
import
Ability
from
'
@ohos.app
.ability.UI
Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
class
MySequenceable
{
class
MySequenceable
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录