From 34df45f0907a1e568bac3fede0ade8258bf3ab91 Mon Sep 17 00:00:00 2001 From: 15929983503 Date: Fri, 21 Jul 2023 11:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A5=97=E5=86=85=E5=AD=98?= =?UTF-8?q?=E6=B3=84=E6=BC=8F=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 15929983503 --- .../src/main/js/test/abilityconstant_test.js | 2 +- hiviewdfx/apprecoverytest/src/main/js/test/apprecovery_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hiviewdfx/abilityconstanttest/src/main/js/test/abilityconstant_test.js b/hiviewdfx/abilityconstanttest/src/main/js/test/abilityconstant_test.js index 06606ff0a..3f4e1c3ff 100755 --- a/hiviewdfx/abilityconstanttest/src/main/js/test/abilityconstant_test.js +++ b/hiviewdfx/abilityconstanttest/src/main/js/test/abilityconstant_test.js @@ -25,6 +25,7 @@ class AbilityTest extends Ability { return AbilityConstant.OnSaveResult.ALL_REJECT } } +let ability_test = new AbilityTest(); export default function ActsAbilityConstantTest() { describe("ActsAbilityConstantTest", function () { @@ -36,7 +37,6 @@ describe("ActsAbilityConstantTest", function () { it("DFX_DFR_AbilityConstant_Interface_0100", 0, function () { console.info("-------------------------DFX_DFR_AbilityConstant_Interface_0100 start-------------------------"); try{ - let ability_test = new AbilityTest(); let StateType = AbilityConstant.StateType.APP_RECOVERY; let wantParam = {"test1": 1, "test2": 2}; let ret = ability_test.onSaveState(StateType, wantParam); diff --git a/hiviewdfx/apprecoverytest/src/main/js/test/apprecovery_test.js b/hiviewdfx/apprecoverytest/src/main/js/test/apprecovery_test.js index 35f71a85c..d30c1c009 100755 --- a/hiviewdfx/apprecoverytest/src/main/js/test/apprecovery_test.js +++ b/hiviewdfx/apprecoverytest/src/main/js/test/apprecovery_test.js @@ -26,6 +26,7 @@ class AbilityTest extends Ability { return AbilityConstant.OnSaveResult.ALL_REJECT } } +let ability_test = new AbilityTest(); export default function ActsAppRecoveryTest() { describe("ActsAppRecoveryTest", function () { @@ -330,7 +331,6 @@ describe("ActsAppRecoveryTest", function () { it("DFX_DFR_AppRecovery_Interface_1900", 0, function () { console.info("-------------------------DFX_DFR_AppRecovery_Interface_1900 start-------------------------"); try{ - let ability_test = new AbilityTest(); let StateType = AbilityConstant.StateType.APP_RECOVERY; let wantParam = {"test1": 1, "test2": 2}; let ret = ability_test.onSaveState(StateType, wantParam); -- GitLab