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

!5376 image用例名修改

Merge pull request !5376 from 秦莉文/master
...@@ -298,7 +298,7 @@ describe('imageColorSpace', function () { ...@@ -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.name : Encode -callback-no quality
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.createImagePacker * 2.createImagePacker
...@@ -307,13 +307,13 @@ describe('imageColorSpace', function () { ...@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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"] } 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.name : Encode -callback-no format
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.createImagePacker * 2.createImagePacker
...@@ -322,9 +322,9 @@ describe('imageColorSpace', function () { ...@@ -322,9 +322,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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 () { ...@@ -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.name : Encode -promise -no quality
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.createImagePacker * 2.createImagePacker
...@@ -367,13 +367,13 @@ describe('imageColorSpace', function () { ...@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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"] } 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.name : Encode -promise -no format
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.createImagePacker * 2.createImagePacker
...@@ -382,9 +382,9 @@ describe('imageColorSpace', function () { ...@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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 () { ...@@ -326,32 +326,32 @@ describe('imageExif', function () {
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 * @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900
* @tc.name : getImageProperty(DateTimeOriginal) * @tc.name : getImageProperty(DateTimeOriginal)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.set property * 2.set property
* 3.call getImageProperty(ImageLength) * 3.call getImageProperty(DateTimeOriginal)
* 4.The return value is not empty * 4.The return value is not empty
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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'); await getFd('test_exif.jpg');
const imageSourceApi = image.createImageSource(fdNumber); const imageSourceApi = image.createImageSource(fdNumber);
if (imageSourceApi == undefined) { 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(); expect(false).assertTrue();
done(); done();
} else { } else {
imageSourceApi.getImageProperty("DateTimeOriginal") imageSourceApi.getImageProperty("DateTimeOriginal")
.then(data => { .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(); expect(data != undefined && data != '').assertTrue();
done(); done();
}) })
.catch(error => { .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(); expect(false).assertFail();
done(); done();
}) })
......
...@@ -752,7 +752,7 @@ describe('imageModifyProperty', function () { ...@@ -752,7 +752,7 @@ describe('imageModifyProperty', function () {
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1100 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0100
* @tc.name : modifyImageProperty(Orientation)-promise * @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -761,12 +761,12 @@ describe('imageModifyProperty', function () { ...@@ -761,12 +761,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0100', 0, async function (done) {
modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1100', 'fd', "Orientation", "abcdef") modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0100', 'fd', "Orientation", "abcdef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1200 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0200
* @tc.name : modifyImageProperty(GPSLatitude)-promise * @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -775,12 +775,12 @@ describe('imageModifyProperty', function () { ...@@ -775,12 +775,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0200', 0, async function (done) {
modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1200', 'fd', "GPSLatitude", "abc,3") modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0200', 'fd', "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0300
* @tc.name : modifyImageProperty(GPSLongitude)-promise * @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -789,12 +789,12 @@ describe('imageModifyProperty', function () { ...@@ -789,12 +789,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0300', 0, async function (done) {
modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300', 'fd', "GPSLongitude", "abc,2") modifyImageErrPromise(SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0300)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1400 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0400
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise * @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -803,12 +803,12 @@ describe('imageModifyProperty', function () { ...@@ -803,12 +803,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0400', 0, async function (done) {
modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1400', 'fd', "GPSLatitudeRef", "456") modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0400', 'fd', "GPSLatitudeRef", "456")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1500 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0500
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise * @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -817,12 +817,12 @@ describe('imageModifyProperty', function () { ...@@ -817,12 +817,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0500', 0, async function (done) {
modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1500', 'fd', "GPSLongitudeRef", "1234") modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0500', 'fd', "GPSLongitudeRef", "1234")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1600 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0600
* @tc.name : modifyImageProperty(Orientation)-promise * @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -831,12 +831,12 @@ describe('imageModifyProperty', function () { ...@@ -831,12 +831,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0600', 0, async function (done) {
modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1600", "buffer", "Orientation", "abcdef") modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0600", "buffer", "Orientation", "abcdef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1700 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0700
* @tc.name : modifyImageProperty(GPSLatitude)-promise * @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -845,12 +845,12 @@ describe('imageModifyProperty', function () { ...@@ -845,12 +845,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1700', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0700', 0, async function (done) {
modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1700", "buffer", "GPSLatitude", "abc,3") modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0700", "buffer", "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1800 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0800
* @tc.name : modifyImageProperty(GPSLongitude)-promise * @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -859,12 +859,12 @@ describe('imageModifyProperty', function () { ...@@ -859,12 +859,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1800', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0800', 0, async function (done) {
modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1800", "buffer", "GPSLongitude", "abc,2") modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0800", "buffer", "GPSLongitude", "abc,2")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1900 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0900
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise * @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -873,12 +873,12 @@ describe('imageModifyProperty', function () { ...@@ -873,12 +873,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1900', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0900', 0, async function (done) {
modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1900", "buffer", "GPSLatitudeRef", "456") modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0900", "buffer", "GPSLatitudeRef", "456")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_2000 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_1000
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise * @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -887,12 +887,12 @@ describe('imageModifyProperty', function () { ...@@ -887,12 +887,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_2000', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_1000', 0, async function (done) {
modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_2000", "buffer", "GPSLongitudeRef", "1234") modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_1000", "buffer", "GPSLongitudeRef", "1234")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1100 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0100
* @tc.name : modifyImageProperty(Orientation)-callback * @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -901,12 +901,12 @@ describe('imageModifyProperty', function () { ...@@ -901,12 +901,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0100', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1100", "fd", "Orientation", "abcdef") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0100", "fd", "Orientation", "abcdef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1200 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0200
* @tc.name : modifyImageProperty(GPSLatitude)-callback * @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -915,12 +915,12 @@ describe('imageModifyProperty', function () { ...@@ -915,12 +915,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0200', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1200", "fd", "GPSLatitude", "abc,3") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0200", "fd", "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1300 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0300
* @tc.name : modifyImageProperty(GPSLongitude)-callback * @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -929,12 +929,12 @@ describe('imageModifyProperty', function () { ...@@ -929,12 +929,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0300', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1300", "fd", "GPSLongitude", "abc,2") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0300", "fd", "GPSLongitude", "abc,2")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1400 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0400
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback * @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -943,12 +943,12 @@ describe('imageModifyProperty', function () { ...@@ -943,12 +943,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0400', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1400", "fd", "GPSLongitudeRef", "1234") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0400", "fd", "GPSLongitudeRef", "1234")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1500 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0500
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback * @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -957,12 +957,12 @@ describe('imageModifyProperty', function () { ...@@ -957,12 +957,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0500', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1500", "fd", "GPSLatitudeRef", "456") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0500", "fd", "GPSLatitudeRef", "456")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1600 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0600
* @tc.name : modifyImageProperty(Orientation)-callback * @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -971,12 +971,12 @@ describe('imageModifyProperty', function () { ...@@ -971,12 +971,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0600', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1600", "buffer", "Orientation", "abcdef") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0600", "buffer", "Orientation", "abcdef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1700 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0700
* @tc.name : modifyImageProperty(GPSLatitude)-callback * @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -985,12 +985,12 @@ describe('imageModifyProperty', function () { ...@@ -985,12 +985,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1700', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0700', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1700", "buffer", "GPSLatitude", "abc,3") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0700", "buffer", "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1800 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0800
* @tc.name : modifyImageProperty(GPSLongitude)-callback * @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -999,12 +999,12 @@ describe('imageModifyProperty', function () { ...@@ -999,12 +999,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1800', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0800', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1800", "buffer", "GPSLongitude", "abc,2") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0800", "buffer", "GPSLongitude", "abc,2")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1900 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0900
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback * @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1013,12 +1013,12 @@ describe('imageModifyProperty', function () { ...@@ -1013,12 +1013,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1900', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0900', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1900", "buffer", "GPSLongitudeRef", "1234") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0900", "buffer", "GPSLongitudeRef", "1234")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2000 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_1000
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback * @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1027,12 +1027,12 @@ describe('imageModifyProperty', function () { ...@@ -1027,12 +1027,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2000', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_1000', 0, async function (done) {
modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2000", "buffer", "GPSLatitudeRef", "456") modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_1000", "buffer", "GPSLatitudeRef", "456")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2100 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0100
* @tc.name : modifyImageProperty(Orientation)-callback * @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1041,12 +1041,12 @@ describe('imageModifyProperty', function () { ...@@ -1041,12 +1041,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0100', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2100", "fd", "Orientation", "abcdef") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0100", "fd", "Orientation", "abcdef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2200 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0200
* @tc.name : modifyImageProperty(GPSLatitude)-callback * @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1055,12 +1055,12 @@ describe('imageModifyProperty', function () { ...@@ -1055,12 +1055,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0200', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2200", "fd", "GPSLatitude", "abc,3") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0200", "fd", "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2300 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0300
* @tc.name : modifyImageProperty(GPSLongitude)-callback * @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1069,12 +1069,12 @@ describe('imageModifyProperty', function () { ...@@ -1069,12 +1069,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0300', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2300", "fd", "GPSLongitude", "abc,2") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0300", "fd", "GPSLongitude", "abc,2")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2400 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0400
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback * @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1083,12 +1083,12 @@ describe('imageModifyProperty', function () { ...@@ -1083,12 +1083,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0400', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2400", "fd", "GPSLatitudeRef", "1234") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0400", "fd", "GPSLatitudeRef", "1234")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2500 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0500
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback * @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1097,12 +1097,12 @@ describe('imageModifyProperty', function () { ...@@ -1097,12 +1097,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0500', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2500", "fd", "GPSLongitudeRef", "567") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0500", "fd", "GPSLongitudeRef", "567")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2600 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0600
* @tc.name : modifyImageProperty(Orientation)-callback * @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1111,12 +1111,12 @@ describe('imageModifyProperty', function () { ...@@ -1111,12 +1111,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0600', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2600", "buffer", "Orientation", "abcef") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0600", "buffer", "Orientation", "abcef")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2700 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0700
* @tc.name : modifyImageProperty(GPSLatitude)-callback * @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1125,12 +1125,12 @@ describe('imageModifyProperty', function () { ...@@ -1125,12 +1125,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2700', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0700', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2700", "buffer", "GPSLatitude", "abc,3") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0700", "buffer", "GPSLatitude", "abc,3")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2800 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0800
* @tc.name : modifyImageProperty(GPSLongitude)-callback * @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1139,12 +1139,12 @@ describe('imageModifyProperty', function () { ...@@ -1139,12 +1139,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2800', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0800', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2800", "buffer", "GPSLongitude", "abc,2") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0800", "buffer", "GPSLongitude", "abc,2")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2900 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0900
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback * @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1153,12 +1153,12 @@ describe('imageModifyProperty', function () { ...@@ -1153,12 +1153,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2900', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0900', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2900", "buffer", "GPSLatitudeRef", "456") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0900", "buffer", "GPSLatitudeRef", "456")
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_3000 * @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_1000
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback * @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource * @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value) * 2.call modifyImageProperty(key,value)
...@@ -1167,7 +1167,7 @@ describe('imageModifyProperty', function () { ...@@ -1167,7 +1167,7 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @tc.level : Level 1
*/ */
it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_3000', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_1000', 0, async function (done) {
modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_3000", "buffer", "GPSLongitudeRef", "1234") modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_1000", "buffer", "GPSLongitudeRef", "1234")
}) })
})} })}
...@@ -693,7 +693,7 @@ describe('ImageReceiver', function () { ...@@ -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.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -703,12 +703,12 @@ describe('ImageReceiver', function () { ...@@ -703,12 +703,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', JPEG) 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.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -718,12 +718,12 @@ describe('ImageReceiver', function () { ...@@ -718,12 +718,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', YUV_U) 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.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -733,12 +733,12 @@ describe('ImageReceiver', function () { ...@@ -733,12 +733,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', YUV_V) 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.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -748,12 +748,12 @@ describe('ImageReceiver', function () { ...@@ -748,12 +748,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100', 0, async function (done) {
getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', YUV_Y) 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.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -763,12 +763,12 @@ describe('ImageReceiver', function () { ...@@ -763,12 +763,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', JPEG) 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.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -778,12 +778,12 @@ describe('ImageReceiver', function () { ...@@ -778,12 +778,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', YUV_Y) 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.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -793,12 +793,12 @@ describe('ImageReceiver', function () { ...@@ -793,12 +793,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', YUV_V) 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.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -808,8 +808,8 @@ describe('ImageReceiver', function () { ...@@ -808,8 +808,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', 0, async function (done) {
getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', YUV_U) getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', YUV_U)
}) })
/** /**
...@@ -1075,7 +1075,7 @@ describe('ImageReceiver', function () { ...@@ -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.name : on-1
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () { ...@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 1) 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.name : on-null
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () { ...@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', null) 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.name : on-{a : 1}
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () { ...@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', { a: 1 }) 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.name : on-'a'
* @tc.desc : 1.create ImageReceiver * @tc.desc : 1.create ImageReceiver
* 2.call on * 2.call on
...@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () { ...@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 0, async function (done) {
onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 'a') onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 'a')
}) })
}) })
} }
...@@ -964,7 +964,7 @@ describe('imageWebp', function () { ...@@ -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.name : packing - promise-webp
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -973,13 +973,13 @@ describe('imageWebp', function () { ...@@ -973,13 +973,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -988,13 +988,13 @@ describe('imageWebp', function () { ...@@ -988,13 +988,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1003,9 +1003,9 @@ describe('imageWebp', function () { ...@@ -1003,9 +1003,9 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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"] } 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 () { ...@@ -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.name : packing - callback-webp-no quality
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1048,13 +1048,13 @@ describe('imageWebp', function () { ...@@ -1048,13 +1048,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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"] } 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.name : packing - callback-webp-no format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1063,13 +1063,13 @@ describe('imageWebp', function () { ...@@ -1063,13 +1063,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - callback-webp-quality -1
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1078,13 +1078,13 @@ describe('imageWebp', function () { ...@@ -1078,13 +1078,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - promise-webp-quality -1
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1093,14 +1093,14 @@ describe('imageWebp', function () { ...@@ -1093,14 +1093,14 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - callback-webp-quality 0
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1109,13 +1109,13 @@ describe('imageWebp', function () { ...@@ -1109,13 +1109,13 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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.name : packing - promise-webp-quality 0
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.call packing * 2.call packing
...@@ -1124,8 +1124,8 @@ describe('imageWebp', function () { ...@@ -1124,8 +1124,8 @@ describe('imageWebp', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : Level 1 * @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 } 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)
}) })
})} })}
...@@ -308,128 +308,128 @@ describe('imageYuv', function () { ...@@ -308,128 +308,128 @@ describe('imageYuv', function () {
} }
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_001 * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100', sourceOptions, yuvData) yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_002 * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200', sourceOptions, yuvData) yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_003 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100', sourceOptions, yuvData) yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_004 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } };
yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200', sourceOptions, yuvData) yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_005 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300', sourceOptions, yuvData) yuvToJpegByPixelMapPromise(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_006 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } };
yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400', sourceOptions, yuvData) yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_007 - Promise - wrong format * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700 - Promise - wrong format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500', sourceOptions, yuvData) yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800
* @tc.name : SUB_IMAGE_yuv_pixelmap_P_008 - Promise - format null * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800 - Promise - format null
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600', sourceOptions, yuvData) yuvToJpegByPixelMapPromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100
* @tc.name : SUB_IMAGE_yuv_imagesource_P_001 * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -438,16 +438,16 @@ describe('imageYuv', function () { ...@@ -438,16 +438,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200
* @tc.name : SUB_IMAGE_yuv_imagesource_P_002 * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -456,16 +456,16 @@ describe('imageYuv', function () { ...@@ -456,16 +456,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300
* @tc.name : SUB_IMAGE_yuv_imagesource_P_003 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -474,16 +474,16 @@ describe('imageYuv', function () { ...@@ -474,16 +474,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400
* @tc.name : SUB_IMAGE_yuv_imagesource_P_004 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -492,16 +492,16 @@ describe('imageYuv', function () { ...@@ -492,16 +492,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500
* @tc.name : SUB_IMAGE_yuv_imagesource_P_005 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -510,16 +510,16 @@ describe('imageYuv', function () { ...@@ -510,16 +510,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600
* @tc.name : SUB_IMAGE_yuv_imagesource_P_006 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -528,16 +528,16 @@ describe('imageYuv', function () { ...@@ -528,16 +528,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700
* @tc.name : SUB_IMAGE_yuv_imagesource_P_007 - Promise - wrong format * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700 - Promise - wrong format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -546,16 +546,16 @@ describe('imageYuv', function () { ...@@ -546,16 +546,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800
* @tc.name : SUB_IMAGE_yuv_imagesource_P_008 - Promise - format null * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800 - Promise - format null
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -564,11 +564,11 @@ describe('imageYuv', function () { ...@@ -564,11 +564,11 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourcePromise_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800', sourceOptions, packOpts, yuvData)
}) })
/** /**
...@@ -602,98 +602,98 @@ describe('imageYuv', function () { ...@@ -602,98 +602,98 @@ describe('imageYuv', function () {
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_003 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0100', sourceOptions, yuvData) yuvToJpegByPixelMapCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_004 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } };
yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0200', sourceOptions, yuvData) yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0300 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_005 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0300', sourceOptions, yuvData) yuvToJpegByPixelMapCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0400 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_006 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } };
yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0400', sourceOptions, yuvData) yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0500 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_007 - Promise - wrong format * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700 - Promise - wrong format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0500', sourceOptions, yuvData) yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0600 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800
* @tc.name : SUB_IMAGE_yuv_pixelmap_CB_008 - Promise - format null * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800 - Promise - format null
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } };
yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0600', sourceOptions, yuvData) yuvToJpegByPixelMapCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800', sourceOptions, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_001 * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -728,8 +728,8 @@ describe('imageYuv', function () { ...@@ -728,8 +728,8 @@ describe('imageYuv', function () {
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0100 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_003 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -738,16 +738,16 @@ describe('imageYuv', function () { ...@@ -738,16 +738,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0100', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0100', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0200 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_004 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -756,16 +756,16 @@ describe('imageYuv', function () { ...@@ -756,16 +756,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0200', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0200', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0300 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_005 - Promise - wrong buffer * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500 - Promise - wrong buffer
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -774,16 +774,16 @@ describe('imageYuv', function () { ...@@ -774,16 +774,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0300', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500', 0, async function (done) {
let yuvData = new ArrayBuffer(5); let yuvData = new ArrayBuffer(5);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0300', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0400 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_006 - Promise - wrong width * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600 - Promise - wrong width
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -792,16 +792,16 @@ describe('imageYuv', function () { ...@@ -792,16 +792,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0400', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0400', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0500 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_007 - Promise - wrong format * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700 - Promise - wrong format
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -810,16 +810,16 @@ describe('imageYuv', function () { ...@@ -810,16 +810,16 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0500', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0500', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700', sourceOptions, packOpts, yuvData)
}) })
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0600 * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800
* @tc.name : SUB_IMAGE_yuv_imagesource_CB_008 - Promise - format null * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800 - Promise - format null
* @tc.desc : 1.create ImageSource * @tc.desc : 1.create ImageSource
* 2.create pixelmap * 2.create pixelmap
* 3.create ImagePacker * 3.create ImagePacker
...@@ -828,10 +828,10 @@ describe('imageYuv', function () { ...@@ -828,10 +828,10 @@ describe('imageYuv', function () {
* @tc.type : Functional * @tc.type : Functional
* @tc.level : level 0 * @tc.level : level 0
*/ */
it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0600', 0, async function (done) { it('SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800', 0, async function (done) {
let yuvData = createBuffer(4, 6); let yuvData = createBuffer(4, 6);
let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; let sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } };
let packOpts = { format: "image/jpeg", quality: 99 } let packOpts = { format: "image/jpeg", quality: 99 }
yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0600', sourceOptions, packOpts, yuvData) yuvToJpegByImageSourceCallback_Fail(done, 'SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800', sourceOptions, packOpts, yuvData)
}) })
})} })}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册