From 7cfdd3c6a6229c48ee9a403a2a4f8ab9f4cd7c49 Mon Sep 17 00:00:00 2001 From: lijiaying <1640106564@qq.com> Date: Tue, 15 Mar 2022 17:05:33 +0800 Subject: [PATCH] getAbilityIcon Signed-off-by: lijiaying <1640106564@qq.com> --- .../entry/src/main/js/test/ActsBmsFormsInfoTest.test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js index 39dda2fb6..571c48527 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsFormsInfoTest.test.js @@ -1675,9 +1675,10 @@ describe('ActsBmsFormsInfoTest', function () { * @tc.desc: get the abilityIcon */ it('bms_getAbilityIcon_0200', 0, async function (done) { - let pixelmap = await bundle.getAbilityIcon(BUNDLE_NAME6, ABILITIY_NAME) - console.log('bms_getAbilityIcon_0200 success: ' + pixelmap); - expect(pixelmap !== null).assertTrue() - done() + bundle.getAbilityIcon(BUNDLE_NAME6, ABILITIY_NAME, (err, pixelmap) => { + expect(err).assertFail() + expect(pixelmap !== null).assertTrue() + done() + }) }) }) \ No newline at end of file -- GitLab