diff --git a/multimedia/media/media_js_standard/videoDecoder/Test.json b/multimedia/media/media_js_standard/videoDecoder/Test.json index adab06c26613e3825dd6a515e87c72f243525ac0..0c35c8551dfed5a5116eb34efc8f7dd6094c7f8f 100644 --- a/multimedia/media/media_js_standard/videoDecoder/Test.json +++ b/multimedia/media/media_js_standard/videoDecoder/Test.json @@ -15,23 +15,24 @@ "cleanup-apps": true }, { - "type": "ShellKit", - "run-command": [ - "mkdir -p /data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/" + "type": "PushKit", + "pre-push": [ ], - "teardown-command":[ + "push": [ + "./resource/media/es/out_1920_1080_30fps_3s.h264 ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/", + "./resource/media/es/h263_1408_1152.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/", + "./resource/media/es/MPEG2_720_480.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/", + "./resource/media/es/mpeg4_320_240.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/", + "./resource/media/es/out_320_240_10s.h264 ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/" ] }, { - "type": "PushKit", - "pre-push": [ + "type": "ShellKit", + "run-command": [ + "chmod 777 -R /data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder", + "chmod 777 /data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/*" ], - "push": [ - "./resource/media/es/out_1920_1080_30fps_3s.h264 ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/", - "./resource/media/es/h263_1408_1152.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/", - "./resource/media/es/MPEG2_720_480.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/", - "./resource/media/es/mpeg4_320_240.es ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/", - "./resource/media/es/out_320_240_10s.h264 ->/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/" + "teardown-command":[ ] } ] diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncCallbackTest.test.js index 2de714fb248277adfba0871d1930bd8aaee32c0c..3ad753e550772026f4a08c71cf523f4e367bb81a 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncCallbackTest.test.js @@ -31,7 +31,7 @@ describe('VideoDecoderFuncCallbackTest', function () { let surfaceID = ''; const events = require('events'); const eventEmitter = new events.EventEmitter(); - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; let ES_FRAME_SIZE = []; const H264_FRAME_SIZE_60FPS_320 = [ 2106, 11465, 321, 72, 472, 68, 76, 79, 509, 90, 677, 88, 956, 99, 347, 77, 452, 681, 81, 1263, 94, 106, 97, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js index 1d38876b60a99bb0c75abab2aa2cb4a45442069d..1a62ba4ab25f963ba78a5cac3a826a0121354657 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js @@ -32,7 +32,7 @@ describe('VideoDecoderFuncPromiseTest', function () { let surfaceID = ''; const events = require('events'); const eventEmitter = new events.EventEmitter(); - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; let ES_FRAME_SIZE = []; const H264_FRAME_SIZE_60FPS_320 = [ 2106, 11465, 321, 72, 472, 68, 76, 79, 509, 90, 677, 88, 956, 99, 347, 77, 452, 681, 81, 1263, 94, 106, 97, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js index feb64760ca9223347a03cedb5658dcfd9b5ccf2c..9d48c158cdf56dc2a8fee428c3f4f5c13ab96a83 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js @@ -46,7 +46,7 @@ describe('VideoDecoderReliCallbackTest', function () { let inputEosFlag = false; let workdoneAtEOS = false; let surfaceID = ''; - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; const SRCPATH = BASIC_PATH + 'out_320_240_10s.h264'; let mediaDescription = { 'track_type': 1, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js index c15e0af1e781d06a622caa4331cd83fee1bcaaa4..72336909cbbce00674ca2f725bea44b0cec8de28 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js @@ -46,7 +46,7 @@ describe('VideoDecoderReliPromiseTest', function () { let inputEosFlag = false; let workdoneAtEOS = false; let surfaceID = ''; - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; const SRCPATH = BASIC_PATH + 'out_320_240_10s.h264'; let mediaDescription = { 'track_type': 1, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncCallbackTest.test.js index 568b6f24cd2bbec836d8778a781384d4beef2644..9dd52372dd8439b0b3b885ee712ff0527469d5ba 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncCallbackTest.test.js @@ -31,7 +31,7 @@ describe('VideoDecoderFuncCallbackTest', function () { let surfaceID = ''; const events = require('events'); const eventEmitter = new events.EventEmitter(); - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; let ES_FRAME_SIZE = []; const H264_FRAME_SIZE_240 = [ 2106, 11465, 321, 72, 472, 68, 76, 79, 509, 90, 677, 88, 956, 99, 347, 77, 452, 681, 81, 1263, 94, 106, 97, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncPromiseTest.test.js index 65496cfb9b967c78044fe07a419d7d889aa53a45..1a2f651a134a5049680158e50aaddc30b128a896 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareFuncPromiseTest.test.js @@ -32,7 +32,7 @@ describe('VideoDecoderFuncPromiseTest', function () { let surfaceID = ''; const events = require('events'); const eventEmitter = new events.EventEmitter(); - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; let ES_FRAME_SIZE = []; const H264_FRAME_SIZE_240 = [ 2106, 11465, 321, 72, 472, 68, 76, 79, 509, 90, 677, 88, 956, 99, 347, 77, 452, 681, 81, 1263, 94, 106, 97, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js index 0dec28e78bd20bf3c40e2efb0d8c6cd67cb8901a..7ad1caf9be468689cfeb4be52dd66bb78dbfbc83 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js @@ -46,7 +46,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { let inputEosFlag = false; let workdoneAtEOS = false; let surfaceID = ''; - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; const SRCPATH = BASIC_PATH + 'out_320_240_10s.h264'; let mediaDescription = { 'track_type': 1, diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js index 4feb2c2dd7dfca5afe585fd01dbf257514de7d53..a186f706378885be11a74b1bc36dc166f022a1fa 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js @@ -46,7 +46,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { let inputEosFlag = false; let workdoneAtEOS = false; let surfaceID = ''; - const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/shared/'; + const BASIC_PATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.video.videodecoder/'; const SRCPATH = BASIC_PATH + 'out_320_240_10s.h264'; let mediaDescription = { 'track_type': 1,