提交 eb7d7b79 编写于 作者: F fengzewu

modify CreateIncrementalSource

Signed-off-by: Nfengzewu <fengzewu@huawei.com>
上级 cd8ca61e
......@@ -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;
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册