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

!5376 image用例名修改

Merge pull request !5376 from 秦莉文/master
......@@ -298,7 +298,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100
* @tc.name : Encode -callback-no quality
* @tc.desc : 1.create imagesource
* 2.createImagePacker
......@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100', 0, async function (done) {
let packOpts = { format:["image/jpeg"] }
packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100', packOpts)
packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100
* @tc.name : Encode -callback-no format
* @tc.desc : 1.create imagesource
* 2.createImagePacker
......@@ -322,9 +322,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100', 0, async function (done) {
let packOpts = { quality:50 }
packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200', packOpts)
packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100', packOpts)
})
/**
......@@ -358,7 +358,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100
* @tc.name : Encode -promise -no quality
* @tc.desc : 1.create imagesource
* 2.createImagePacker
......@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100', 0, async function (done) {
let packOpts = { format:["image/jpeg"] }
packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100', packOpts)
packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100
* @tc.name : Encode -promise -no format
* @tc.desc : 1.create imagesource
* 2.createImagePacker
......@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100', 0, async function (done) {
let packOpts = { quality:100 }
packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200', packOpts)
packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100', packOpts)
})
})
......
......@@ -326,32 +326,32 @@ describe('imageExif', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100
* @tc.name : getImageProperty(DateTimeOriginal)
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900
* @tc.name : getImageProperty(DateTimeOriginal)-promise
* @tc.desc : 1.create imagesource
* 2.set property
* 3.call getImageProperty(ImageLength)
* 3.call getImageProperty(DateTimeOriginal)
* 4.The return value is not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900', 0, async function (done) {
await getFd('test_exif.jpg');
const imageSourceApi = image.createImageSource(fdNumber);
if (imageSourceApi == undefined) {
console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 create image source failed');
console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 create image source failed');
expect(false).assertTrue();
done();
} else {
imageSourceApi.getImageProperty("DateTimeOriginal")
.then(data => {
console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 DateTimeOriginal ' + data);
console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 DateTimeOriginal ' + data);
expect(data != undefined && data != '').assertTrue();
done();
})
.catch(error => {
console.log('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 error: ' + error);
console.log('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 error: ' + error);
expect(false).assertFail();
done();
})
......
......@@ -693,7 +693,7 @@ describe('ImageReceiver', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100
* @tc.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -703,12 +703,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', JPEG)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100', JPEG)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100
* @tc.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -718,12 +718,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', YUV_U)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100', YUV_U)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100
* @tc.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -733,12 +733,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', YUV_V)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100', YUV_V)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100
* @tc.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -748,12 +748,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', YUV_Y)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100', YUV_Y)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100
* @tc.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -763,12 +763,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', JPEG)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100', JPEG)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100
* @tc.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -778,12 +778,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', YUV_Y)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100', YUV_Y)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100
* @tc.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -793,12 +793,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', YUV_V)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100', YUV_V)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100
* @tc.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -808,8 +808,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', YUV_U)
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', YUV_U)
})
/**
......@@ -1075,7 +1075,7 @@ describe('ImageReceiver', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100
* @tc.name : on-1
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 1)
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100', 1)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200
* @tc.name : on-null
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', null)
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200', null)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300
* @tc.name : on-{a : 1}
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', { a: 1 })
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300', { a: 1 })
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400
* @tc.name : on-'a'
* @tc.desc : 1.create ImageReceiver
* 2.call on
......@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 'a')
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 'a')
})
})
}
......@@ -964,7 +964,7 @@ describe('imageWebp', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200
* @tc.name : packing - promise-webp
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -973,13 +973,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200', 0, async function (done) {
let packOpts = { format: ["image/gif"], quality: 90 }
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', packOpts)
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300
* @tc.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -988,13 +988,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300', 0, async function (done) {
let packOpts = { quality: 90 }
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100', packOpts)
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400
* @tc.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1003,9 +1003,9 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400', 0, async function (done) {
let packOpts = { format: ["image/jpeg"] }
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200', packOpts)
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400', packOpts)
})
/**
......@@ -1039,7 +1039,7 @@ describe('imageWebp', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300
* @tc.name : packing - callback-webp-no quality
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1048,13 +1048,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300', 0, async function (done) {
let packOpts = { format: ["image/jpeg"] }
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100', packOpts)
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400
* @tc.name : packing - callback-webp-no format
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1063,13 +1063,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400', 0, async function (done) {
let packOpts = { quality: 90 }
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200', packOpts)
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500
* @tc.name : packing - callback-webp-quality -1
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1078,13 +1078,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500', 0, async function (done) {
let packOpts = { format: ["image/jpeg"], quality: -1 }
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', packOpts)
packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500
* @tc.name : packing - promise-webp-quality -1
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1093,14 +1093,14 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500', 0, async function (done) {
let packOpts = { format: ["image/jpeg"], quality: -1 }
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300', packOpts)
packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200
* @tc.name : packing - callback-webp-quality 0
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1109,13 +1109,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', 0, async function (done) {
let packOpts = { format: ["image/jpeg"], quality: 0 }
packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300', packOpts)
packingCb(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', packOpts)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200
* @tc.name : packing - promise-webp-quality 0
* @tc.desc : 1.create ImageSource
* 2.call packing
......@@ -1124,8 +1124,8 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400', 0, async function (done) {
it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', 0, async function (done) {
let packOpts = { format: ["image/jpeg"], quality: 0 }
packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400', packOpts)
packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', packOpts)
})
})}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册