From 51eea22f864de2692c80f0c969e6b438fe0620df Mon Sep 17 00:00:00 2001 From: dy_study Date: Fri, 17 Jun 2022 11:12:54 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#I5CQGL=20Description:=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=A1=86=E6=9E=B6=E5=90=8C=E6=AD=A5=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=8E=A5=E5=8F=A3API=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20Sig:SIG=5FApplicationFramework=20Feature?= =?UTF-8?q?=20or=20Bugfix:Feature=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dy_study Change-Id: I486faedcdb2703611237bb40cdfc2d66fec0137c --- api/application/abilityDelegator.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/api/application/abilityDelegator.d.ts b/api/application/abilityDelegator.d.ts index 72408dd34b..ae608c26cb 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; -- Gitee