diff --git a/telephony/telephonyjstest/telephony_base/BUILD.gn b/telephony/telephonyjstest/telephony_base/BUILD.gn index ffda732a67e1c528883c3f5a1819c3040f2e8c81..06e307ca1afde0636c95dd1b7dfcd2c7b92475ed 100644 --- a/telephony/telephonyjstest/telephony_base/BUILD.gn +++ b/telephony/telephonyjstest/telephony_base/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2023 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 diff --git a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/List.test.js b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/List.test.js index 97c4850a72a674caaea155c61d2995b82c074875..8d9c5457d13abaa2353cebd1da656fa5fa3611f2 100644 --- a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/List.test.js +++ b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/List.test.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import PdpProfileDataStorageFunction from './PdpProfileDataStorageFunction.test.js' +import PdpProfileDataStorageFunction from './PdpProfileDataStorageFunction.test.js'; export default function testsuite() { PdpProfileDataStorageFunction(); diff --git a/telephony/telephonyjstest/telephony_base/sms_mms/signature/openharmony_sx.p7b b/telephony/telephonyjstest/telephony_base/sms_mms/signature/openharmony_sx.p7b index 36a63eda55acae81f0885c5a4f051df131264c32..daee588c1b316f3f8c4472196bbb9742ef6a9a11 100644 Binary files a/telephony/telephonyjstest/telephony_base/sms_mms/signature/openharmony_sx.p7b and b/telephony/telephonyjstest/telephony_base/sms_mms/signature/openharmony_sx.p7b differ diff --git a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml index 1761ec52614d15e232d2e5ba45299eff2b1179f9..cb389bfbdf4d04d87deeecf243bf92b910d5b965 100644 --- a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml +++ b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml @@ -1,5 +1,5 @@
- SIM TEST + SMS_MMS TEST
diff --git a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js index fa47ab46678b75efd91a9e2241904e9f7d9166ef..7641f832ef388aed5412205d7989e17188c745f9 100644 --- a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js +++ b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js @@ -18,7 +18,7 @@ import { Hypium } from '@ohos/hypium'; import testsuite from '../../../test/List.test'; const injectRef = Object.getPrototypeOf(global) || global -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator'); +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') export default { data: { diff --git a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js index 9b4f4166cba7305ccb40d2e81455e1137da23a25..02be70fc49480426000ea8368b3501cffd9a81e9 100644 --- a/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js +++ b/telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js @@ -39,7 +39,7 @@ function translateParamsToString(parameters) { var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments(); var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); - var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility'; + var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.MainAbility'; var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName; cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters); @@ -54,6 +54,6 @@ function translateParamsToString(parameters) { console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + data.stdResult); console.info('executeShellCommand : data : ' + data.exitCode); - }) + }); } -} \ No newline at end of file +}