1.PngjTestCasePage add Async interface test

Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
zhoulisheng 2022-03-25 15:31:23 +08:00
parent 51946fe390
commit 8f394ea07b
1 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ struct PngjTestCasePage {
Button('测试readPngImageAsync')
.onClick(() => {
let pngj = new Pngj();
pngj.readPngImage(this.pngSource, (sender, value) => {
pngj.readPngImageAsync(this.pngSource, (sender, value) => {
this.pngSource = sender
this.hint2 = 'img with=' + value.width + ' img height=' + value.height
+ ' img depth=' + value.depth + ' img ctype=' + value.ctype
@ -124,7 +124,7 @@ struct PngjTestCasePage {
Button('测试writePngWithStringAsync')
.onClick(() => {
let pngj = new Pngj();
pngj.writePngWithString('hello world', this.pngSource, (sender, value) => {
pngj.writePngWithStringAsync('hello world', this.pngSource, (sender, value) => {
this.pngSource = sender
FileUtils.getInstance().createFileProcess(
this.rootFolder + '/pngj',
@ -137,7 +137,7 @@ struct PngjTestCasePage {
Button('测试writePngAsync')
.onClick(() => {
let pngj = new Pngj();
pngj.writePng(this.pngSource, (sender, value) => {
pngj.writePngAsync(this.pngSource, (sender, value) => {
this.pngSource = sender
FileUtils.getInstance().createFileProcess(
this.rootFolder + '/pngj',