提交 34df45f0 编写于 作者: 1 15929983503

测试套内存泄漏整改

Signed-off-by: N15929983503 <duanhaizhen@huawei.com>
上级 8df9de89
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册