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

!4892 imageXTS失败用例适配

Merge pull request !4892 from liuxueqi/OpenHarmony-3.1-Release
......@@ -2225,14 +2225,22 @@ describe('Image', function () {
index: 0
};
imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => {
globalpixelmap = pixelmap;
if (pixelmap == undefined) {
console.info('TC_050-10 success ');
expect(true).assertTrue();
done();
} else {
if (err) {
console.info('TC_050-10 createPixelMap err ' + JSON.stringify(err));
expect(false).assertTrue();
done();
} else {
globalpixelmap = pixelmap;
pixelmap.getImageInfo().then((imageInfo) => {
expect(imageInfo.size.height == 2).assertTrue();
expect(imageInfo.size.width == 1).assertTrue();
console.info('TC_050-10 success ');
console.info("imageInfo height :" + imageInfo.size.height );
console.info("imageInfo width : " + imageInfo.size.width);
done();
}).catch((err) => {
console.info('TC_050-10 getimageInfo err ' + JSON.stringify(err));
})
}
})
}
......@@ -3363,14 +3371,22 @@ describe('Image', function () {
index: 0
};
imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => {
globalpixelmap = pixelmap;
if (pixelmap == undefined) {
console.info('TC_067-10 success ');
expect(true).assertTrue();
done();
} else {
if (err) {
console.info('TC_067-10 createPixelMap error ' + JSON.stringify(err));
expect(false).assertTrue();
done();
} else {
globalpixelmap = pixelmap;
pixelmap.getImageInfo().then((imageInfo) => {
expect(imageInfo.size.height == 2).assertTrue();
expect(imageInfo.size.width == 1).assertTrue();
console.info('TC_067-10 success ');
console.info("imageInfo height :" + imageInfo.size.height);
console.info("imageInfo width : " + imageInfo.size.width);
done();
}).catch((err) => {
console.info('TC_067-10 getimageInfo err ' + JSON.stringify(err));
})
}
})
}
......@@ -3868,14 +3884,22 @@ describe('Image', function () {
index: 0
};
imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => {
globalpixelmap = pixelmap;
if (pixelmap == undefined) {
console.info('TC_068-10 success ');
expect(true).assertTrue();
done();
} else {
if (err) {
console.info('TC_068-10 createPixelMap error ' + JSON.stringify(err));
expect(false).assertTrue();
done();
} else {
globalpixelmap = pixelmap;
pixelmap.getImageInfo().then((imageInfo) => {
expect(imageInfo.size.height == 2).assertTrue();
expect(imageInfo.size.width == 1).assertTrue();
console.info('TC_068-10 success ');
console.info("imageInfo height :" + imageInfo.size.height);
console.info("imageInfo width : " + imageInfo.size.width);
done();
}).catch((err) => {
console.info('TC_068-10 getimageInfo err ' + JSON.stringify(err));
})
}
})
}
......@@ -4337,14 +4361,22 @@ describe('Image', function () {
index: 0
};
imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => {
globalpixelmap = pixelmap;
if (pixelmap == undefined) {
console.info('TC_163-10 success ');
expect(true).assertTrue();
done();
} else {
if (err) {
console.info('TC_163-10 createPixelMap error ' + JSON.stringify(err));
expect(false).assertTrue();
done();
} else {
globalpixelmap = pixelmap;
pixelmap.getImageInfo().then((imageInfo) => {
expect(imageInfo.size.height == 2).assertTrue();
expect(imageInfo.size.width == 1).assertTrue();
console.info('TC_163-10 success ');
console.info("imageInfo height :" + imageInfo.size.height);
console.info("imageInfo width : " + imageInfo.size.width);
done();
}).catch((err) => {
console.info('TC_163-10 getimageInfo err ' + JSON.stringify(err));
})
}
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册