diff --git a/multimedia/medialibrary/mediaLibrary_album/Test.json b/multimedia/medialibrary/mediaLibrary_album/Test.json index b907d3d2d9b281e17207f071496ca105ffc0206b..35371947bfc8c196a8301bf86b3ee5315a3727f3 100755 --- a/multimedia/medialibrary/mediaLibrary_album/Test.json +++ b/multimedia/medialibrary/mediaLibrary_album/Test.json @@ -45,6 +45,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_favorite/Test.json b/multimedia/medialibrary/mediaLibrary_favorite/Test.json index a8abf3311b02c895ab40fe0845a553eac874c7c7..f749a8bd5c1d34cd1bcaf8f076c66df9802cdc2c 100755 --- a/multimedia/medialibrary/mediaLibrary_favorite/Test.json +++ b/multimedia/medialibrary/mediaLibrary_favorite/Test.json @@ -46,6 +46,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_file/Test.json b/multimedia/medialibrary/mediaLibrary_file/Test.json index a7a92e54869dcee112dbd17f155567eaab859553..caefa0872869c138f4d708f6bce18741af053275 100755 --- a/multimedia/medialibrary/mediaLibrary_file/Test.json +++ b/multimedia/medialibrary/mediaLibrary_file/Test.json @@ -51,6 +51,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_fileAsset/Test.json b/multimedia/medialibrary/mediaLibrary_fileAsset/Test.json index d9a4cbcacaaf8356689b33c75fbd185786545c6b..52a26a285cfe41920510be508064f1057a337f23 100755 --- a/multimedia/medialibrary/mediaLibrary_fileAsset/Test.json +++ b/multimedia/medialibrary/mediaLibrary_fileAsset/Test.json @@ -51,6 +51,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json b/multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json index c08ed7fe1d8f9644e7bae44c5e033545cdac5351..641fc5813726885ccaf4f8aac38d70e1c08ca9a0 100755 --- a/multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json +++ b/multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json @@ -46,6 +46,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_fileKey/Test.json b/multimedia/medialibrary/mediaLibrary_fileKey/Test.json index 2587f380983c8901a14cf4940339dcbb86feeb90..fc3091c075f340d260fa6284196b6ef4a389f283 100755 --- a/multimedia/medialibrary/mediaLibrary_fileKey/Test.json +++ b/multimedia/medialibrary/mediaLibrary_fileKey/Test.json @@ -42,6 +42,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_fileResult/Test.json b/multimedia/medialibrary/mediaLibrary_fileResult/Test.json index aa5a3d96ca9b4ff8aa750e060151085d3174a24c..d9a6902ee925e494b0def5cc2810d4d362fc5b4f 100755 --- a/multimedia/medialibrary/mediaLibrary_fileResult/Test.json +++ b/multimedia/medialibrary/mediaLibrary_fileResult/Test.json @@ -47,6 +47,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json b/multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json index 10fac8c90536ad50edbba87643189c096931327d..969fe647f173112b10865281fe68d9f13352e4e0 100755 --- a/multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json +++ b/multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json @@ -43,6 +43,7 @@ "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", + "hilog -b I", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" diff --git a/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets b/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets index 593b206e7d432f9d006692682d4790a8562f2406..5d1dd82044122e8497e8fd3dbbf69249758383b6 100755 --- a/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets +++ b/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets @@ -58,20 +58,16 @@ export default function getThumbnailCallback(abilityContext) { size = { width: 256, height: 256 }; asset.getThumbnail(async (err, pixelmap) => { await pixelmap.getImageInfo((err, info) => { - console.info(`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`); - console.info(`${testNum}:: param width ${size.width},param height: ${size.height}`); - expect(info.size.width == size.width).assertTrue(); - expect(info.size.height == size.height).assertTrue(); + expect(info.size.width).assertEqual(size.width); + expect(info.size.height).assertEqual(size.height); done(); }); }) } else { asset.getThumbnail(size, async (err, pixelmap) => { await pixelmap.getImageInfo((err, info) => { - console.info(`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`); - console.info(`${testNum}:: param width ${size.width},param height: ${size.height}`); - expect(info.size.width == size.width).assertTrue(); - expect(info.size.height == size.height).assertTrue(); + expect(info.size.width).assertEqual(size.width); + expect(info.size.height).assertEqual(size.height); done(); }); }) diff --git a/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets b/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets index 1904a8cd6a2c75f51deb98b33a1208bb328e0689..cdd093ad7dd96ee84fa3b45a58b795f84b6565c6 100755 --- a/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets +++ b/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets @@ -63,10 +63,8 @@ export default function getThumbnailPromise(abilityContext) { pixelmap = await asset.getThumbnail(size) } let info = await pixelmap.getImageInfo(); - console.info(`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`); - console.info(`${testNum}:: param width ${size.width},param height: ${size.height}`); - expect(info.size.width == size.width).assertTrue(); - expect(info.size.height == size.height).assertTrue(); + expect(info.size.width).assertEqual(size.width); + expect(info.size.height).assertEqual(size.height); done(); } catch (error) { console.info(`${testNum}:: error :${error}`);