From 53e07a403d2569b5c220afbfda239abb31ba5186 Mon Sep 17 00:00:00 2001 From: fengzewu Date: Tue, 6 Dec 2022 11:03:58 +0800 Subject: [PATCH] modify createIncrementalSource Signed-off-by: fengzewu --- .../image/src/main/js/test/addImage.test.js | 8 ++++---- .../image/src/main/js/test/image.test.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js b/multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js index 9e2b3a2ad..53b3c7dc1 100644 --- a/multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js +++ b/multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js @@ -69,10 +69,10 @@ export default function addImage() { let offset = 0; if (type == "sourceOpts") { console.info(`${testNum} have sourceopts`); - incSouce = image.createIncrementalSource(new ArrayBuffer(1), opts); + incSouce = image.CreateIncrementalSource(new ArrayBuffer(1), opts); } else { console.info(`${testNum} no sourceopts`); - incSouce = image.createIncrementalSource(new ArrayBuffer(1)); + incSouce = image.CreateIncrementalSource(new ArrayBuffer(1)); } let ret; let isFinished = false; @@ -120,9 +120,9 @@ export default function addImage() { let bufferSize = 5000; let offset = 0; if (type == "sourceOpts") { - incSouce = image.createIncrementalSource(new ArrayBuffer(1), opts); + incSouce = image.CreateIncrementalSource(new ArrayBuffer(1), opts); } else { - incSouce = image.createIncrementalSource(new ArrayBuffer(1)); + incSouce = image.CreateIncrementalSource(new ArrayBuffer(1)); } let ret; let isFinished = false; diff --git a/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js b/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js index e19da436a..e52bc5935 100644 --- a/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js +++ b/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js @@ -2294,7 +2294,7 @@ export default function imageJsTest() { console.info('SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_0100 0003 ' + testimagebuffer.length); let bufferSize = testimagebuffer.length; let offset = 0; - const incSouce = image.createIncrementalSource(new ArrayBuffer(1)); + const incSouce = image.CreateIncrementalSource(new ArrayBuffer(1)); let ret; let isFinished = false; while (offset < testimagebuffer.length) { @@ -2347,7 +2347,7 @@ export default function imageJsTest() { console.info('SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_0200 0003 ' + testimagebuffer.length); let bufferSize = testimagebuffer.length; let offset = 0; - const incSouce = image.createIncrementalSource(new ArrayBuffer(1)); + const incSouce = image.CreateIncrementalSource(new ArrayBuffer(1)); let isFinished = false; let ret; while (offset < testimagebuffer.length) { -- GitLab