diff --git a/multimedia/media/media_js_standard/MediaTestBase.js b/multimedia/media/media_js_standard/MediaTestBase.js index dea260ba7eec488e69bca3a4d5f21a9e65c8a3b6..b3e21d99848db343a64d2779acafbbf0fd3953df 100644 --- a/multimedia/media/media_js_standard/MediaTestBase.js +++ b/multimedia/media/media_js_standard/MediaTestBase.js @@ -155,6 +155,16 @@ export function checkDescription(actualDescription, descriptionKey, descriptionV } } +export function checkOldDescription(actualDescription, descriptionKey, descriptionValue) { + for (let i = 0; i < descriptionKey.length; i++) { + let property = actualDescription[descriptionKey[i]]; + console.info('case key is '+ descriptionKey[i]); + console.info('case actual value is '+ property); + console.info('case hope value is '+ descriptionValue[i]); + expect(property).assertEqual(descriptionValue[i]); + } +} + export function printDescription(obj) { let description = ""; for(let i in obj) { diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js index d4269db05b96e9f6b3535119c02018fe5a8c55ce..b9e6de7b0dcc00efeb83c9491fa8d6b02480b67b 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js @@ -157,7 +157,7 @@ describe('PlayerLocalTestAudioFUNC', function () { console.info('case getTrackDescription called!!'); if (typeof (arrayList) != 'undefined') { for (let i = 0; i < arrayList.length; i++) { - mediaTestBase.checkDescription(arrayList[i], descriptionKey[i], descriptionValue[i]); + mediaTestBase.checkOldDescription(arrayList[i], descriptionKey[i], descriptionValue[i]); } } else { console.info('case getTrackDescription is failed'); @@ -171,7 +171,7 @@ describe('PlayerLocalTestAudioFUNC', function () { audioPlayer.getTrackDescription((err, arrayList) => { if (typeof (err) == 'undefined') { for (let i = 0; i < arrayList.length; i++) { - mediaTestBase.checkDescription(arrayList[i], descriptionKey[i], descriptionValue[i]); + mediaTestBase.checkOldDescription(arrayList[i], descriptionKey[i], descriptionValue[i]); } nextStep(mySteps, done); } else { diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js index 1a6479618a9be4700076842480fb6633f26ea7d4..3e60d2a52148139bceaa2f7d5c45a68e265ca294 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js @@ -244,7 +244,7 @@ describe('VideoPlayerFuncCallbackTest', function () { videoPlayer.getTrackDescription((err, arrlist) => { if (err == null) { for (let i = 0; i < arrlist.length; i++) { - mediaTestBase.checkDescription(arrlist[i], descriptionKey[i], descriptionValue[i]); + mediaTestBase.checkOldDescription(arrlist[i], descriptionKey[i], descriptionValue[i]); } toNextStep(videoPlayer, steps, done); } else if ((err != null) && (steps[0] == ERROR_EVENT)) { diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js index bb0b01c92d9d83f65b40368cdd603e2d926c23bd..2173b80017d531ebbabce0824902d28dfa696f8a 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js @@ -517,7 +517,7 @@ describe('VideoPlayerFuncPromiseTest', function () { }, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); for (let i = 0; i < arrayDescription.length; i++) { - mediaTestBase.checkDescription(arrayDescription[i], descriptionKey[i], descriptionValue[i]); + mediaTestBase.checkOldDescription(arrayDescription[i], descriptionKey[i], descriptionValue[i]); } await videoPlayer.release().then(() => {