From 5c1b0578b6bdc9cfb4d2ef05f14ed89c572a12eb Mon Sep 17 00:00:00 2001 From: zgf Date: Wed, 7 Aug 2024 18:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dxts=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=9AImageKnifeOption=E7=94=A8=E6=B3=95=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zgf --- entry/src/ohosTest/ets/test/imageknifeOption.test.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/ohosTest/ets/test/imageknifeOption.test.ets b/entry/src/ohosTest/ets/test/imageknifeOption.test.ets index 4d12c58..6a3acac 100644 --- a/entry/src/ohosTest/ets/test/imageknifeOption.test.ets +++ b/entry/src/ohosTest/ets/test/imageknifeOption.test.ets @@ -59,9 +59,9 @@ export default function ImageKnifeOptionTest() { }, }, }) - if (ImageKnifeOption.onLoadListener && ImageKnifeOption.onLoadListener.onLoadSuccess && ImageKnifeOption.onLoadListener.onLoadFailed) { - ImageKnifeOption.onLoadListener.onLoadSuccess(a,imageData); - ImageKnifeOption.onLoadListener.onLoadFailed(a); + if (imageKnifeOption.onLoadListener && imageKnifeOption.onLoadListener.onLoadSuccess && imageKnifeOption.onLoadListener.onLoadFailed) { + imageKnifeOption.onLoadListener.onLoadSuccess(a,imageData); + imageKnifeOption.onLoadListener.onLoadFailed(a); } expect(a).assertEqual(b); });