forked from floraachy/ImageKnife
1.PngjTestCasePage add Async interface test
Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
parent
51946fe390
commit
8f394ea07b
|
@ -114,7 +114,7 @@ struct PngjTestCasePage {
|
||||||
Button('测试readPngImageAsync')
|
Button('测试readPngImageAsync')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
let pngj = new Pngj();
|
let pngj = new Pngj();
|
||||||
pngj.readPngImage(this.pngSource, (sender, value) => {
|
pngj.readPngImageAsync(this.pngSource, (sender, value) => {
|
||||||
this.pngSource = sender
|
this.pngSource = sender
|
||||||
this.hint2 = 'img with=' + value.width + ' img height=' + value.height
|
this.hint2 = 'img with=' + value.width + ' img height=' + value.height
|
||||||
+ ' img depth=' + value.depth + ' img ctype=' + value.ctype
|
+ ' img depth=' + value.depth + ' img ctype=' + value.ctype
|
||||||
|
@ -124,7 +124,7 @@ struct PngjTestCasePage {
|
||||||
Button('测试writePngWithStringAsync')
|
Button('测试writePngWithStringAsync')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
let pngj = new Pngj();
|
let pngj = new Pngj();
|
||||||
pngj.writePngWithString('hello world', this.pngSource, (sender, value) => {
|
pngj.writePngWithStringAsync('hello world', this.pngSource, (sender, value) => {
|
||||||
this.pngSource = sender
|
this.pngSource = sender
|
||||||
FileUtils.getInstance().createFileProcess(
|
FileUtils.getInstance().createFileProcess(
|
||||||
this.rootFolder + '/pngj',
|
this.rootFolder + '/pngj',
|
||||||
|
@ -137,7 +137,7 @@ struct PngjTestCasePage {
|
||||||
Button('测试writePngAsync')
|
Button('测试writePngAsync')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
let pngj = new Pngj();
|
let pngj = new Pngj();
|
||||||
pngj.writePng(this.pngSource, (sender, value) => {
|
pngj.writePngAsync(this.pngSource, (sender, value) => {
|
||||||
this.pngSource = sender
|
this.pngSource = sender
|
||||||
FileUtils.getInstance().createFileProcess(
|
FileUtils.getInstance().createFileProcess(
|
||||||
this.rootFolder + '/pngj',
|
this.rootFolder + '/pngj',
|
||||||
|
|
Loading…
Reference in New Issue