diff --git a/api/application/abilityDelegator.d.ts b/api/application/abilityDelegator.d.ts index 72408dd34b8537ff2813565c1c8e45b91e4e8386..ae608c26cb0fd1cb06d983cea3f19a6155057378 100644 --- a/api/application/abilityDelegator.d.ts +++ b/api/application/abilityDelegator.d.ts @@ -132,7 +132,6 @@ export interface AbilityDelegator { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @param msg Log information */ - printSync(msg: string): void; print(msg: string, callback: AsyncCallback): void; print(msg: string): Promise; @@ -160,6 +159,16 @@ export interface AbilityDelegator { */ finishTest(msg: string, code: number, callback: AsyncCallback): void; finishTest(msg: string, code: number): Promise; + + /** + * Prints log information to the unit testing console synchronously. + * The total length of the log information to be printed cannot exceed 1000 characters. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @param msg Log information + */ + printSync(msg: string): void; } -export default AbilityDelegator; \ No newline at end of file +export default AbilityDelegator;