diff --git a/multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js b/multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js index 642e7521a2ac05ca916407a11d168dd43b6ed313..d9b6f06122e731fcdbce1cb4f28e016189cb0e3a 100644 --- a/multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js +++ b/multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js @@ -298,7 +298,7 @@ describe('imageColorSpace', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100 * @tc.name : Encode -callback-no quality * @tc.desc : 1.create imagesource * 2.createImagePacker @@ -307,13 +307,13 @@ describe('imageColorSpace', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100', 0, async function (done) { let packOpts = { format:["image/jpeg"] } - packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100', packOpts) + packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_QUALITY_0100', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100 * @tc.name : Encode -callback-no format * @tc.desc : 1.create imagesource * 2.createImagePacker @@ -322,9 +322,9 @@ describe('imageColorSpace', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100', 0, async function (done) { let packOpts = { quality:50 } - packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200', packOpts) + packingCbFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_FORMAT_0100', packOpts) }) /** @@ -358,7 +358,7 @@ describe('imageColorSpace', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100 * @tc.name : Encode -promise -no quality * @tc.desc : 1.create imagesource * 2.createImagePacker @@ -367,13 +367,13 @@ describe('imageColorSpace', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100', 0, async function (done) { let packOpts = { format:["image/jpeg"] } - packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100', packOpts) + packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_QUALITY_0100', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100 * @tc.name : Encode -promise -no format * @tc.desc : 1.create imagesource * 2.createImagePacker @@ -382,9 +382,9 @@ describe('imageColorSpace', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100', 0, async function (done) { let packOpts = { quality:100 } - packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0200', packOpts) + packingPromiseFail(done, 'SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_FORMAT_0100', packOpts) }) }) diff --git a/multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js b/multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js index 070db566b9e21e0d8a35991ed11c5bcd031135ff..bd25eae35eb5b625e666847233ffbfe1501547e0 100644 --- a/multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js +++ b/multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js @@ -326,32 +326,32 @@ describe('imageExif', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 - * @tc.name : getImageProperty(DateTimeOriginal) + * @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 + * @tc.name : getImageProperty(DateTimeOriginal)-promise * @tc.desc : 1.create imagesource * 2.set property - * 3.call getImageProperty(ImageLength) + * 3.call getImageProperty(DateTimeOriginal) * 4.The return value is not empty * @tc.size : MEDIUM * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900', 0, async function (done) { await getFd('test_exif.jpg'); const imageSourceApi = image.createImageSource(fdNumber); if (imageSourceApi == undefined) { - console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 create image source failed'); + console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 create image source failed'); expect(false).assertTrue(); done(); } else { imageSourceApi.getImageProperty("DateTimeOriginal") .then(data => { - console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 DateTimeOriginal ' + data); + console.info('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 DateTimeOriginal ' + data); expect(data != undefined && data != '').assertTrue(); done(); }) .catch(error => { - console.log('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_DATETIMEORIGINAL_0100 error: ' + error); + console.log('SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_PROMISE_0900 error: ' + error); expect(false).assertFail(); done(); }) diff --git a/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js b/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js index b06e48730bd6418a784f4bd600b2866e85fb02f4..6c4d434a869f12084cfe064522dc1241638cd2d4 100644 --- a/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js +++ b/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js @@ -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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -761,12 +761,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1100', 0, async function (done) { - modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1100', 'fd', "Orientation", "abcdef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0100', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -775,12 +775,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1200', 0, async function (done) { - modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1200', 'fd', "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0200', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -789,12 +789,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300', 0, async function (done) { - modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300', 'fd', "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0300', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -803,12 +803,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1400', 0, async function (done) { - modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1400', 'fd', "GPSLatitudeRef", "456") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0400', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -817,12 +817,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1500', 0, async function (done) { - modifyImageErrPromise(done, 'SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1500', 'fd', "GPSLongitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0500', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -831,12 +831,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1600', 0, async function (done) { - modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1600", "buffer", "Orientation", "abcdef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0600', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -845,12 +845,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1700', 0, async function (done) { - modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1700", "buffer", "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0700', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -859,12 +859,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1800', 0, async function (done) { - modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1800", "buffer", "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0800', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -873,12 +873,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1900', 0, async function (done) { - modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1900", "buffer", "GPSLatitudeRef", "456") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0900', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -887,12 +887,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_2000', 0, async function (done) { - modifyImageErrPromise(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_2000", "buffer", "GPSLongitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_1000', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -901,12 +901,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1100', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1100", "fd", "Orientation", "abcdef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0100', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -915,12 +915,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1200', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1200", "fd", "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0200', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -929,12 +929,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1300', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1300", "fd", "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0300', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -943,12 +943,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1400', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1400", "fd", "GPSLongitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0400', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -957,12 +957,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1500', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1500", "fd", "GPSLatitudeRef", "456") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0500', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -971,12 +971,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1600', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1600", "buffer", "Orientation", "abcdef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0600', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -985,12 +985,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1700', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1700", "buffer", "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0700', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -999,12 +999,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1800', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1800", "buffer", "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0800', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1013,12 +1013,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1900', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_1900", "buffer", "GPSLongitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_0900', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1027,12 +1027,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2000', 0, async function (done) { - modifyErrCb(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2000", "buffer", "GPSLatitudeRef", "456") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_ERROR_1000', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1041,12 +1041,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2100', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2100", "fd", "Orientation", "abcdef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0100', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1055,12 +1055,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2200', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2200", "fd", "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0200', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1069,12 +1069,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2300', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2300", "fd", "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0300', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1083,12 +1083,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2400', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2400", "fd", "GPSLatitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0400', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1097,12 +1097,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2500', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2500", "fd", "GPSLongitudeRef", "567") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0500', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1111,12 +1111,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2600', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2600", "buffer", "Orientation", "abcef") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0600', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1125,12 +1125,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2700', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2700", "buffer", "GPSLatitude", "abc,3") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0700', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1139,12 +1139,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2800', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2800", "buffer", "GPSLongitude", "abc,2") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0800', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1153,12 +1153,12 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2900', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_2900", "buffer", "GPSLatitudeRef", "456") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_0900', 0, async function (done) { + 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.desc : 1.create imagesource * 2.call modifyImageProperty(key,value) @@ -1167,7 +1167,7 @@ describe('imageModifyProperty', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_3000', 0, async function (done) { - modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_3000", "buffer", "GPSLongitudeRef", "1234") + it('SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_1000', 0, async function (done) { + modifyErrCb1(done, "SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROPERTY_CALLBACK_ERROR_1000", "buffer", "GPSLongitudeRef", "1234") }) })} diff --git a/multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js b/multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js index 2a70f2a6ca467a1c9190ffddbbb658729152aa24..52afa6105f51aefb1e7ba294b2aaac0ca0b6ffbe 100644 --- a/multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js +++ b/multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js @@ -693,7 +693,7 @@ describe('ImageReceiver', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100 * @tc.name : getComponent-jpeg * @tc.desc : 1.create ImageReceiver * 2.call on @@ -703,12 +703,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', 0, async function (done) { - getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100', JPEG) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100', 0, async function (done) { + getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_JPEG_0100', JPEG) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100 * @tc.name : getComponent-YUV_U * @tc.desc : 1.create ImageReceiver * 2.call on @@ -718,12 +718,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', 0, async function (done) { - getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100', YUV_U) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100', 0, async function (done) { + getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_U_0100', YUV_U) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100 * @tc.name : getComponent-YUV_V * @tc.desc : 1.create ImageReceiver * 2.call on @@ -733,12 +733,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', 0, async function (done) { - getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0200', YUV_V) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100', 0, async function (done) { + getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_V_0100', YUV_V) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100 * @tc.name : getComponent-YUV_Y * @tc.desc : 1.create ImageReceiver * 2.call on @@ -748,12 +748,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', 0, async function (done) { - getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0300', YUV_Y) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100', 0, async function (done) { + getComponentP(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_PROMISE_YUV_Y_0100', YUV_Y) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100 * @tc.name : getComponent-jpeg * @tc.desc : 1.create ImageReceiver * 2.call on @@ -763,12 +763,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', 0, async function (done) { - getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0200', JPEG) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100', 0, async function (done) { + getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_JPEG_0100', JPEG) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100 * @tc.name : getComponent-YUV_Y * @tc.desc : 1.create ImageReceiver * 2.call on @@ -778,12 +778,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', 0, async function (done) { - getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0400', YUV_Y) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100', 0, async function (done) { + getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_Y_0100', YUV_Y) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100 * @tc.name : getComponent-YUV_V * @tc.desc : 1.create ImageReceiver * 2.call on @@ -793,12 +793,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', 0, async function (done) { - getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0500', YUV_V) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100', 0, async function (done) { + getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_V_0100', YUV_V) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100 * @tc.name : getComponent-YUV_U * @tc.desc : 1.create ImageReceiver * 2.call on @@ -808,8 +808,8 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', 0, async function (done) { - getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0600', YUV_U) + it('SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', 0, async function (done) { + getComponentCb(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_CALLBACK_YUV_U_0100', YUV_U) }) /** @@ -1075,7 +1075,7 @@ describe('ImageReceiver', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100 * @tc.name : on-1 * @tc.desc : 1.create ImageReceiver * 2.call on @@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 0, async function (done) { - onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100', 1) + it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100', 0, async function (done) { + onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0100', 1) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200 * @tc.name : on-null * @tc.desc : 1.create ImageReceiver * 2.call on @@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', 0, async function (done) { - onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200', null) + it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200', 0, async function (done) { + onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0200', null) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300 * @tc.name : on-{a : 1} * @tc.desc : 1.create ImageReceiver * 2.call on @@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', 0, async function (done) { - onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300', { a: 1 }) + it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300', 0, async function (done) { + onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0300', { a: 1 }) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400 + * @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400 * @tc.name : on-'a' * @tc.desc : 1.create ImageReceiver * 2.call on @@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () { * @tc.type : Functional * @tc.level : Level 0 */ - it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 0, async function (done) { - onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400', 'a') + it('SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 0, async function (done) { + onErr(done, 'SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_ERROR_0400', 'a') }) }) } diff --git a/multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js b/multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js index 5aa036572292a1aaa8a72c54d25913a9a68e96a6..ee2401384d51b88e3076396038a609023003d589 100644 --- a/multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js +++ b/multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js @@ -964,7 +964,7 @@ describe('imageWebp', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200 * @tc.name : packing - promise-webp * @tc.desc : 1.create ImageSource * 2.call packing @@ -973,13 +973,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200', 0, async function (done) { let packOpts = { format: ["image/gif"], quality: 90 } - packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', packOpts) + packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0200', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300 * @tc.name : packing - promise-webp-no format * @tc.desc : 1.create ImageSource * 2.call packing @@ -988,13 +988,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300', 0, async function (done) { let packOpts = { quality: 90 } - packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0100', packOpts) + packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0300', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400 * @tc.name : packing - promise-webp-no format * @tc.desc : 1.create ImageSource * 2.call packing @@ -1003,9 +1003,9 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400', 0, async function (done) { let packOpts = { format: ["image/jpeg"] } - packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_NO_0200', packOpts) + packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0400', packOpts) }) /** @@ -1039,7 +1039,7 @@ describe('imageWebp', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300 * @tc.name : packing - callback-webp-no quality * @tc.desc : 1.create ImageSource * 2.call packing @@ -1048,13 +1048,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300', 0, async function (done) { let packOpts = { format: ["image/jpeg"] } - packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0100', packOpts) + packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0300', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400 * @tc.name : packing - callback-webp-no format * @tc.desc : 1.create ImageSource * 2.call packing @@ -1063,13 +1063,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400', 0, async function (done) { let packOpts = { quality: 90 } - packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_NO_0200', packOpts) + packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0400', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500 * @tc.name : packing - callback-webp-quality -1 * @tc.desc : 1.create ImageSource * 2.call packing @@ -1078,13 +1078,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500', 0, async function (done) { let packOpts = { format: ["image/jpeg"], quality: -1 } - packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', packOpts) + packingCbErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_ERROR_0500', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500 * @tc.name : packing - promise-webp-quality -1 * @tc.desc : 1.create ImageSource * 2.call packing @@ -1093,14 +1093,14 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500', 0, async function (done) { let packOpts = { format: ["image/jpeg"], quality: -1 } - packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0300', packOpts) + packingPromiseErr(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_ERROR_0500', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200 * @tc.name : packing - callback-webp-quality 0 * @tc.desc : 1.create ImageSource * 2.call packing @@ -1109,13 +1109,13 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', 0, async function (done) { let packOpts = { format: ["image/jpeg"], quality: 0 } - packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0300', packOpts) + packingCb(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0200', packOpts) }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400 + * @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200 * @tc.name : packing - promise-webp-quality 0 * @tc.desc : 1.create ImageSource * 2.call packing @@ -1124,8 +1124,8 @@ describe('imageWebp', function () { * @tc.type : Functional * @tc.level : Level 1 */ - it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400', 0, async function (done) { + it('SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', 0, async function (done) { let packOpts = { format: ["image/jpeg"], quality: 0 } - packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0400', packOpts) + packingPromise(done, 'SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200', packOpts) }) })} diff --git a/multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js b/multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js index b18e7db2e92328cc01195d649c0801b8154ec3e4..1e27e9077f3250a0fc24d0a241fb7515e7bb91fa 100644 --- a/multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js +++ b/multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js @@ -308,128 +308,128 @@ describe('imageYuv', function () { } /** - * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100 - * @tc.name : SUB_IMAGE_yuv_pixelmap_P_001 + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100 * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_002 + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200 * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_003 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_004 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_005 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_006 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_007 - Promise - wrong format + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700 - Promise - wrong format * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_P_008 - Promise - format null + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800 - Promise - format null * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_imagesource_P_001 + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100 * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -438,16 +438,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_002 + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200 * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -456,16 +456,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_003 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -474,16 +474,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_004 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -492,16 +492,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_005 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -510,16 +510,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_006 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -528,16 +528,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_007 - Promise - wrong format + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700 - Promise - wrong format * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -546,16 +546,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_P_008 - Promise - format null + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800 - Promise - format null * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -564,11 +564,11 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; 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 () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_PROMISE_0100 - * @tc.name : SUB_IMAGE_yuv_pixelmap_CB_003 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_CB_004 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_CB_005 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_CB_006 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_CB_007 - Promise - wrong format + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700 - Promise - wrong format * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_pixelmap_CB_008 - Promise - format null + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800 - Promise - format null * @tc.desc : 1.create ImageSource * 2.create pixelmap * @tc.size : MEDIUM * @tc.type : Functional * @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 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.name : SUB_IMAGE_yuv_imagesource_CB_001 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100 * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -728,8 +728,8 @@ describe('imageYuv', function () { }) /** - * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_PROMISE_0100 - * @tc.name : SUB_IMAGE_yuv_imagesource_CB_003 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -738,16 +738,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_CB_004 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -756,16 +756,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 8, sourceSize: { height: 4, width: 5 } }; 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.name : SUB_IMAGE_yuv_imagesource_CB_005 - Promise - wrong buffer + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500 - Promise - wrong buffer * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -774,16 +774,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_CB_006 - Promise - wrong width + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600 - Promise - wrong width * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -792,16 +792,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 9, sourceSize: { height: 4, width: 5 } }; 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.name : SUB_IMAGE_yuv_imagesource_CB_007 - Promise - wrong format + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700 - Promise - wrong format * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -810,16 +810,16 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourcePixelFormat: 10, sourceSize: { height: 4, width: 6 } }; 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.name : SUB_IMAGE_yuv_imagesource_CB_008 - Promise - format null + * @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800 + * @tc.name : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800 - Promise - format null * @tc.desc : 1.create ImageSource * 2.create pixelmap * 3.create ImagePacker @@ -828,10 +828,10 @@ describe('imageYuv', function () { * @tc.type : Functional * @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 sourceOptions = { sourceDensity: 120, sourceSize: { height: 4, width: 6 } }; 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) }) })}