diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultCallBack.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultCallBack.test.js index 9740c6c81a02e23c9be565bb565796a84c880505..adb06aacfc7495a49aec7d1f7c4bf69027f06e1f 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultCallBack.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultCallBack.test.js @@ -466,11 +466,11 @@ describe('fetchFileResultCallback.test.js', async function() { if (firstObject.uri == undefined) { console.info('MediaLibraryTest :firstObject.uri === undefined'); } - - expect(firstObject.mimeType == 'image/*').assertTrue(); - if (firstObject.mimeType != 'image/*') { - console.info('MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); - } + + expect(firstObject.mimeType.startsWith('image/')).assertTrue(); + if (!firstObject.mimeType.startsWith('image/')) { + console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); + } expect(firstObject.mediaType == imageType).assertTrue(); if (firstObject.mediaType != imageType) { diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultPromise.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultPromise.test.js index 71289c6d0d84353d50409dc02c5c7a7f0b8cf0af..f32df82a1d79c3dfdf5d7937ef6910710c8aab6e 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultPromise.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fetchFileResultPromise.test.js @@ -578,11 +578,11 @@ describe('fetchFileResultPromise.test.js', async function() { if (firstObject.uri == undefined) { console.info('MediaLibraryTest :firstObject.uri === undefined'); } - - expect(firstObject.mimeType == 'image/*').assertTrue(); - if (firstObject.mimeType != 'image/*') { - console.info('MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); - } + + expect(firstObject.mimeType.startsWith('image/')).assertTrue(); + if (!firstObject.mimeType.startsWith('image/')) { + console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); + } expect(firstObject.mediaType == imageType).assertTrue(); if (firstObject.mediaType != imageType) { diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAsset2.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAsset2.test.js index d43b10cb0f4c1acd09202bd34aae94350be05930..c3e0de030518ceff71367f8d36b77dc7ef48a4bb 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAsset2.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAsset2.test.js @@ -83,7 +83,7 @@ describe('fileAsset2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - const newName = 'newName'; + const newName = 'newName' + new Date().getTime() + '.jpg'; asset.displayName = newName; const id = asset.id; await asset.commitModify(); @@ -200,8 +200,8 @@ describe('fileAsset2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - let neworientation = 1; - if (asset.orientation == 1) { + let neworientation = 90; + if (asset.orientation == 90) { neworientation = 0; } asset.orientation = neworientation; diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js index 2fe3c0f4d57ef43cea52d476e255cd771a776610..9f1f4db96ca23e941db5d217866647e9d4fb07b3 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js @@ -83,7 +83,7 @@ describe('fileAssetCallBack2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - const newName = 'newName'; + const newName = 'newName' + new Date().getTime() + '.jpg'; asset.displayName = newName; const id = asset.id; asset.commitModify(async () => { @@ -202,8 +202,8 @@ describe('fileAssetCallBack2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - let neworientation = 1; - if (asset.orientation == 1) { + let neworientation = 90; + if (asset.orientation == 90) { neworientation = 0; } asset.orientation = neworientation; diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js index bbf4715f9a69f947b5c38480bcfe32fa49a39a8e..0671c14cdcab76d8915d751cc4c9faa4bf7ffefe 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js @@ -83,7 +83,7 @@ describe('fileAssetPromise2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - const newName = 'newName'; + const newName = 'newName' + new Date().getTime() + '.jpg'; asset.displayName = newName; const id = asset.id; await asset.commitModify(); @@ -200,8 +200,8 @@ describe('fileAssetPromise2.test.js', async function () { try { const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); - let neworientation = 1; - if (asset.orientation == 1) { + let neworientation = 90; + if (asset.orientation == 90) { neworientation = 0; } asset.orientation = neworientation;