diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js index 0e7086cd9e2729ab51655ae21624ddc627ec5aee..437a9124edcd8e98c6d29d5110cfb713427f07ae 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js @@ -211,7 +211,7 @@ describe('AudioEncoderFuncCallback', function () { try{ let head = new ArrayBuffer(7); addADTStoPacket(head, len); - let res = fileio.write(fdWrite, head, {length: 7}); + let res = fileio.writeSync(fdWrite, head, {length: 7}); console.info('case fileio.write head success'); } catch(e) { console.info('case fileio.write head error is ' + e); @@ -220,7 +220,7 @@ describe('AudioEncoderFuncCallback', function () { function writeFile(path, buf, len) { try{ - let res = fileio.write(fdWrite, buf, {length: len}); + let res = fileio.writeSync(fdWrite, buf, {length: len}); console.info('case fileio.write buffer success'); } catch(e) { console.info('case fileio.write buffer error is ' + e); diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js index 4831a1ebc9ef61e2b681966961de1e980a299c6e..32db3e63f9be997d20d2eb7c5578d8a15266694a 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js @@ -220,7 +220,7 @@ describe('AudioEncoderFuncPromise', function () { try{ let head = new ArrayBuffer(7); addADTStoPacket(head, len); - let res = fileio.write(fdWrite, head, {length: 7}); + let res = fileio.writeSync(fdWrite, head, {length: 7}); console.info('case fileio.write head success'); } catch(e) { console.info('case fileio.write head error is ' + e); @@ -229,7 +229,7 @@ describe('AudioEncoderFuncPromise', function () { function writeFile(path, buf, len) { try{ - let res = fileio.write(fdWrite, buf, {length: len}); + let res = fileio.writeSync(fdWrite, buf, {length: len}); console.info('case fileio.write buffer success'); } catch(e) { console.info('case fileio.write buffer error is ' + e); diff --git a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js index a7a3516929d00cb18f968066cf116d113fd1c3e0..d17bf8c1d6867d9dfa3d859729ed81ead3143a7f 100644 --- a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js @@ -158,7 +158,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () { function writeFile(buf, len) { try{ - let res = fileio.write(fdWrite, buf, {length: len}); + let res = fileio.writeSync(fdWrite, buf, {length: len}); console.info('case fileio.write buffer success'); } catch(e) { console.info('case fileio.write buffer error is ' + e); diff --git a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js index fbd871d50882271abd04e2e2227a25d039ca77f1..1c62aa97d06d7ab42476aeae14b6171423683f21 100644 --- a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js @@ -178,7 +178,7 @@ describe('videoSoftwareEncoderFuncPromise', function () { function writeFile(buf, len) { try{ - let res = fileio.write(fdWrite, buf, {length: len}); + let res = fileio.writeSync(fdWrite, buf, {length: len}); console.info('case fileio.write buffer success'); } catch(e) { console.info('case fileio.write buffer error is ' + e);