未验证 提交 7905dfcb 编写于 作者: O openharmony_ci 提交者: Gitee

!6788 modify CreateIncrementalSource

Merge pull request !6788 from renhw/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册