From 6099021f9386994070e4a43461ebcab28555dd4c Mon Sep 17 00:00:00 2001 From: ling990 Date: Mon, 11 Apr 2022 20:11:32 +0800 Subject: [PATCH] modify testcases Signed-off-by: ling990 Signed-off-by: ling990 --- .../src/main/js/test/AudioEncoderFuncCallbackTest.test.js | 4 ++-- .../src/main/js/test/AudioEncoderFuncPromiseTest.test.js | 4 ++-- .../main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js | 2 +- .../main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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 0e7086cd9..437a9124e 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 4831a1ebc..32db3e63f 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 a7a351692..d17bf8c1d 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 fbd871d50..1c62aa97d 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); -- GitLab