From 4cc2492c93ae8b73402788509e1d882d00a0d631 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 5 Aug 2025 16:16:03 +0800 Subject: [PATCH] testrunner method to property Signed-off-by: zhangzezhong --- api/@ohos.application.testRunner.d.ts | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/api/@ohos.application.testRunner.d.ts b/api/@ohos.application.testRunner.d.ts index ea86d1c15b..eeaac9de0f 100644 --- a/api/@ohos.application.testRunner.d.ts +++ b/api/@ohos.application.testRunner.d.ts @@ -48,11 +48,20 @@ interface TestRunner { * * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ onPrepare(): void; + /** + * Prepare the unit testing environment for running test cases. + * + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + onPrepare: () => void; + /** * Run all test cases. * @@ -64,10 +73,19 @@ interface TestRunner { * * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ onRun(): void; + + /** + * Run all test cases. + * + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + onRun: () => void; } /*** if arkts 1.1 */ -- Gitee