From 7205256b56c8b18aa13b892f08161a7f87fee41c Mon Sep 17 00:00:00 2001 From: caochuan Date: Fri, 21 Apr 2023 14:56:26 +0800 Subject: [PATCH] add exif testcase Signed-off-by: caochuan Change-Id: I330e943f42763d7d75c1d50f879c19be27e82d1d --- .../imageGetImageProperty/BUILD.gn | 12 +- .../imageGetImageProperty/Test.json | 19 +- .../signature/openharmony_sx.p7b | Bin 3621 -> 3602 bytes .../src/main/config.json | 14 +- .../src/main/js/MainAbility/app.js | 2 +- .../main/js/MainAbility/pages/index/index.js | 2 +- .../src/main/js/TestAbility/app.js | 2 +- .../main/js/TestAbility/pages/index/index.js | 2 +- .../js/TestRunner/OpenHarmonyTestRunner.js | 11 +- .../src/main/js/test/List.test.js | 4 +- .../main/js/test/getPropertySecond.test.js | 975 ++++++++++++++++++ 11 files changed, 1007 insertions(+), 36 deletions(-) create mode 100644 multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn b/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn index bb5ab7687..c17705935 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn +++ b/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -16,20 +16,20 @@ import("//test/xts/tools/build/suite.gni") ohos_js_hap_suite("image_getProperty_js_hap") { hap_profile = "./src/main/config.json" deps = [ - ":image_getProperty_js_assets", - ":image_getProperty_resources", + ":image_js_assets", + ":image_resources", ] certificate_profile = "./signature/openharmony_sx.p7b" hap_name = "ActsImageGetImagePropertyJsTest" subsystem_name = "multimedia" - part_name = "multimedia_image_standard" + part_name = "multimedia_image_framework" } -ohos_js_assets("image_getProperty_js_assets") { +ohos_js_assets("image_js_assets") { js2abc = true hap_profile = "./src/main/config.json" source_dir = "./src/main/js" } -ohos_resources("image_getProperty_resources") { +ohos_resources("image_resources") { sources = [ "./src/main/resources" ] hap_profile = "./src/main/config.json" } diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/Test.json b/multimedia/image/image_js_standard/imageGetImageProperty/Test.json index 86da76cfb..9af035377 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/Test.json +++ b/multimedia/image/image_js_standard/imageGetImageProperty/Test.json @@ -4,8 +4,8 @@ "type": "OHJSUnitTest", "test-timeout": "300000", "shell-timeout": "120000", - "bundle-name": "ohos.acts.multimedia.image.GetImageProperty", - "package-name": "ohos.acts.multimedia.image.GetImageProperty" + "bundle-name": "ohos.acts.multimedia.image", + "package-name": "ohos.acts.multimedia.image" }, "kits": [ { @@ -18,28 +18,27 @@ { "type": "ShellKit", "run-command": [ - "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/", - "chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*" + "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/", + "chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/*" ], - "teardown-command":[ - - ] + "teardown-command": [] }, { "type": "PushKit", "pre-push": [], "push": [ - "./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files" + "./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files", + "./resource/image/test_hw.jpg->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files" ] }, { "type": "ShellKit", "run-command": [ "hilog -Q pidoff", - "chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/test_exif.jpg" + "chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/*" ], "teardown-command": [ - "rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*" + "rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image/*" ] } ] diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b b/multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b index cafa476070b7a253b82f25376f31d14d045711ef..e1fbea49e00bea3fdfb0e23ec0ff67a7621923fa 100644 GIT binary patch delta 239 zcmZ1~GfBq5pox!@5qwPB{BRkWACf@%BO}xLE7#R(D4Y=7j6WTl&Q<+(q7!8_O zHy{);E@)z1$kN0*ccViK%jT;ryc|40qZn;~`V6uSk|*Eiu%E2Un^SLSY-|!`pbyu` z$zrI)qVT)PE9mdu@Yz2Wu!S+cP&i}F`CfeIthoA~CDTh*yIY1EaItX!opjEYg_()P z&A^38A=c@@+JjT~Op`va@NUuhm;1BAvdzoH`uH|DojJ7kcCrqWLUFn>L%|g8!`|*} bQo{e!Zv8uLCdSEq%VCFKQ{VptXN9={@5qwPB{BRkWACO#pc5FZmGqam*WHydX{n+IbmGYb==K@;mi zghIvzO{|+(npoFubZB7_)N@ZQ@ytz3PYo!_FGwvasoZ>og_ncJ$)JhR4rr1=wn6gb za~$@QWq5PyjSNi;q73xmMsczjDzPY7de{bBU2|^kZZ} zvb+l1+;70e#sPHXIa?NHCKe9^Hzq}f*7XO)F1K_=DY`$dZ0ijde_3Uk7VSRqsKAkF uf=~9lDFKxnG2O?NY5483Lf$Ql{Z-c#gQ_KY{n%E{c%$j@N@tVsJT(9=`d2Fe diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json index b2227062b..9f1c7ca3a 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json @@ -1,12 +1,12 @@ { "app": { "apiVersion": { - "compatible": 6, + "compatible": 9, "releaseType": "Beta1", - "target": 7 + "target": 9 }, "vendor": "acts", - "bundleName": "ohos.acts.multimedia.image.GetImageProperty", + "bundleName": "ohos.acts.multimedia.image", "version": { "code": 1000000, "name": "1.0.0" @@ -57,11 +57,7 @@ } ], "deviceType": [ - "tablet", - "phone", - "tablet", - "tv", - "wearable" + "default" ], "mainAbility": ".MainAbility", "distro": { @@ -100,7 +96,7 @@ "reason": "use ohos.permission.WRITE_MEDIA" } ], - "package": "ohos.acts.multimedia.image.GetImageProperty", + "package": "ohos.acts.multimedia.image", "name": ".entry", "js": [ { diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js index 8b3c3b3cb..972fd485e 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js index 6e13f0751..d1156efe5 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js index cdc31f3dc..bc68f20cb 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js index 88b083a7f..2836c005d 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js index c5fa8620c..70da04f8d 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -30,7 +30,7 @@ function translateParamsToString(parameters) { return targetParams.trim() } - export default { +export default { onPrepare() { console.info('OpenHarmonyTestRunner OnPrepare') }, @@ -44,12 +44,11 @@ function translateParamsToString(parameters) { var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) var debug = abilityDelegatorArguments.parameters["-D"] - console.info('debug value : '+debug) - if (debug == 'true') - { + console.info('debug value : ' + debug) + if (debug == 'true') { cmd += ' -D' } - console.info('cmd : '+cmd) + console.info('cmd : ' + cmd) abilityDelegator.executeShellCommand(cmd, (err, data) => { console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + data.stdResult); diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js index fe2fd263f..37be416ec 100644 --- a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +13,8 @@ * limitations under the License. */ import imageGetImageProperty from "./getProperty.test.js"; +import imageGetImagePropertySecond from "./getPropertySecond.test.js"; export default function testsuite() { imageGetImageProperty(); + imageGetImagePropertySecond(); } diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js new file mode 100644 index 000000000..d86338d22 --- /dev/null +++ b/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js @@ -0,0 +1,975 @@ +/* + * Copyright (C) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import image from "@ohos.multimedia.image"; +import fileio from "@ohos.fileio"; +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"; +import featureAbility from "@ohos.ability.featureAbility"; +export default function imageGetImagePropertySecond() { + describe("imageGetImagePropertySecond", function () { + const { DATE_TIME, GPS_TIME_STAMP, GPS_DATE_STAMP, IMAGE_DESCRIPTION, MAKE, MODEL, SENSITIVITY_TYPE, + RECOMMENDED_EXPOSURE_INDEX, ISO_SPEED, APERTURE_VALUE, EXPOSURE_BIAS_VALUE, METERING_MODE, LIGHT_SOURCE, + FLASH, FOCAL_LENGTH, USER_COMMENT, PIXEL_X_DIMENSION, PIXEL_Y_DIMENSION, WHITE_BALANCE, + FOCAL_LENGTH_IN_35_MM_FILM } = image.PropertyKey; + const props = { + DateTime: "2019:11:15 20:48:30", + GPSTimeStamp: "13:31:27.00", + GPSDateStamp: "2023:04:13", + ImageDescription: "A gray picture", + Make: "HW", + Model: "STK-LX1", + SensitivityType: "1", + RecommendedExposureIndex: "200", + ISOSpeedRatings: "200", + ApertureValue: "1.69 EV (f/1.8)", + ExposureBiasValue: "0.00 EV", + MeteringMode: "Pattern", + LightSource: "Daylight", + Flash: "Flash fired, auto mode", + FocalLength: "4.0 mm", + UserComment: "gray", + PixelXDimension: "3456", + PixelYDimension: "4608", + WhiteBalance: "Auto white balance", + FocalLengthIn35mmFilm: "26" + } + let filePath; + let fdNumber; + async function getFd(fileName) { + let context = await featureAbility.getContext(); + await context.getFilesDir().then((data) => { + filePath = data + "/" + fileName; + console.info("image case filePath is " + filePath); + }); + await fileio + .open(filePath) + .then( + (data) => { + fdNumber = data; + console.info("image case open fd success " + fdNumber); + }, + (err) => { + console.info("image cese open fd fail" + err); + } + ) + .catch((err) => { + console.info("image case open fd err " + err); + }); + } + beforeAll(async function () { + console.info("beforeAll case"); + }); + + beforeEach(function () { + console.info("beforeEach case"); + }); + + afterEach(function () { + console.info("afterEach case"); + }); + + afterAll(function () { + console.info("afterAll case"); + }); + + async function getImagePropertyPromise(done, testNum, key) { + await getFd("test_hw.jpg"); + let imageSourceApi = image.createImageSource(fdNumber); + if (imageSourceApi == undefined) { + console.info(`${testNum} create image source failed`); + expect(false).assertTrue(); + done(); + } else { + imageSourceApi + .getImageProperty(key) + .then((data) => { + console.info(`${testNum} ${key} ` + data); + expect(data == props[key]).assertTrue(); + done(); + }) + .catch((error) => { + console.log(`${testNum} error: ` + error); + expect(false).assertTrue(); + done(); + }); + } + } + async function getImagePropertyCb(done, testNum, key) { + await getFd("test_hw.jpg"); + let imageSourceApi = image.createImageSource(fdNumber); + if (imageSourceApi == undefined) { + console.info(`${testNum} create image source failed`); + expect(false).assertTrue(); + done(); + } else { + imageSourceApi.getImageProperty(key, (err, data) => { + if (err) { + expect(false).assertTrue(); + console.info(`${testNum} ${key} err: ` + err); + done(); + } else { + console.info(`${testNum} ${key} ` + data); + expect(data == props[key]).assertTrue(); + done(); + } + }); + } + } + async function getImagePropertyCb2(done, testNum, key) { + await getFd("test_hw.jpg"); + let imageSourceApi = image.createImageSource(fdNumber); + if (imageSourceApi == undefined) { + console.info(`${testNum} create image source failed`); + expect(false).assertTrue(); + done(); + } else { + let property = { index: 0, defaultValue: "9999" }; + imageSourceApi.getImageProperty(key, property, (err, data) => { + if (err) { + expect(false).assertTrue(); + onsole.info(`${testNum} ${key} err: ` + err); + done(); + } else { + console.info(`${testNum} ${key} ` + data); + expect(data != "9999" && data == props[key]).assertTrue(); + done(); + } + }); + } + } + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0100 + * @tc.name : getImageProperty(DATE_TIME) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(DATE_TIME) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0100", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0100", DATE_TIME); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0200 + * @tc.name : getImageProperty(GPS_TIME_STAMP) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(GPS_TIME_STAMP) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0200", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0200", GPS_TIME_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0300 + * @tc.name : getImageProperty(GPS_DATE_STAMP) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(GPS_DATE_STAMP) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0300", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0300", GPS_DATE_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0400 + * @tc.name : getImageProperty(IMAGE_DESCRIPTION) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(IMAGE_DESCRIPTION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0400", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0400", IMAGE_DESCRIPTION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0500 + * @tc.name : getImageProperty(MAKE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(MAKE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0500", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0500", MAKE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0600 + * @tc.name : getImageProperty(MODEL) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(MODEL) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0600", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0600", MODEL); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0700 + * @tc.name : getImageProperty(SENSITIVITY_TYPE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(SENSITIVITY_TYPE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0700", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0700", SENSITIVITY_TYPE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0800 + * @tc.name : getImageProperty(RECOMMENDED_EXPOSURE_INDEX) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(RECOMMENDED_EXPOSURE_INDEX) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0800", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0800", + RECOMMENDED_EXPOSURE_INDEX); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0900 + * @tc.name : getImageProperty(ISO_SPEED) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(ISO_SPEED) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0900", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_0900", ISO_SPEED); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1000 + * @tc.name : getImageProperty(APERTURE_VALUE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(APERTURE_VALUE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1000", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1000", APERTURE_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1100 + * @tc.name : getImageProperty(EXPOSURE_BIAS_VALUE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(EXPOSURE_BIAS_VALUE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1100", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1100", EXPOSURE_BIAS_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1200 + * @tc.name : getImageProperty(METERING_MODE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(METERING_MODE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1200", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1200", METERING_MODE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1300 + * @tc.name : getImageProperty(LIGHT_SOURCE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(LIGHT_SOURCE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1300", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1300", LIGHT_SOURCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1400 + * @tc.name : getImageProperty(FLASH) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FLASH) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1400", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1400", FLASH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1500 + * @tc.name : getImageProperty(FOCAL_LENGTH) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FOCAL_LENGTH) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1500", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1500", FOCAL_LENGTH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1600 + * @tc.name : getImageProperty(USER_COMMENT) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(USER_COMMENT) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1600", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1600", USER_COMMENT); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1700 + * @tc.name : getImageProperty(PIXEL_X_DIMENSION) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(PIXEL_X_DIMENSION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1700", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1700", PIXEL_X_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1800 + * @tc.name : getImageProperty(PIXEL_Y_DIMENSION) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(PIXEL_Y_DIMENSION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1800", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1800", PIXEL_Y_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1900 + * @tc.name : getImageProperty(WHITE_BALANCE) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(WHITE_BALANCE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1900", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_1900", WHITE_BALANCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_2000 + * @tc.name : getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM) + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_2000", 0, async function (done) { + getImagePropertyPromise(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_PROMISE_2000", + FOCAL_LENGTH_IN_35_MM_FILM); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0100 + * @tc.name : getImageProperty(DATE_TIME)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(DATE_TIME) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0100", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0100", DATE_TIME); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0200 + * @tc.name : getImageProperty(GPS_TIME_STAMP)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(GPS_TIME_STAMP) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0200", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0200", GPS_TIME_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0300 + * @tc.name : getImageProperty(GPS_DATE_STAMP)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(GPS_DATE_STAMP) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0300", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0300", GPS_DATE_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0400 + * @tc.name : getImageProperty(IMAGE_DESCRIPTION)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(IMAGE_DESCRIPTION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0400", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0400", IMAGE_DESCRIPTION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0500 + * @tc.name : getImageProperty(MAKE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(MAKE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0500", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0500", MAKE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0600 + * @tc.name : getImageProperty(SENSITIVITY_TYPE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(SENSITIVITY_TYPE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0600", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0600", SENSITIVITY_TYPE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0700 + * @tc.name : getImageProperty(RECOMMENDED_EXPOSURE_INDEX)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(RECOMMENDED_EXPOSURE_INDEX) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0700", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0700", RECOMMENDED_EXPOSURE_INDEX); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0800 + * @tc.name : getImageProperty(MODEL)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(MODEL) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0800", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0800", MODEL); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0900 + * @tc.name : getImageProperty(ISO_SPEED)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(ISO_SPEED) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0900", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_0900", ISO_SPEED); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1000 + * @tc.name : getImageProperty(APERTURE_VALUE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(APERTURE_VALUE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1000", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1000", APERTURE_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1100 + * @tc.name : getImageProperty(EXPOSURE_BIAS_VALUE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(EXPOSURE_BIAS_VALUE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1100", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1100", EXPOSURE_BIAS_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1200 + * @tc.name : getImageProperty(METERING_MODE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(METERING_MODE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1200", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1200", METERING_MODE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1300 + * @tc.name : getImageProperty(LIGHT_SOURCE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(LIGHT_SOURCE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1300", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1300", LIGHT_SOURCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1400 + * @tc.name : getImageProperty(FLASH)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(FLASH) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1400", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1400", FLASH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1500 + * @tc.name : getImageProperty(FOCAL_LENGTH)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(FOCAL_LENGTH) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1500", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1500", FOCAL_LENGTH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1600 + * @tc.name : getImageProperty(USER_COMMENT)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(USER_COMMENT) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1600", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1600", USER_COMMENT); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1700 + * @tc.name : getImageProperty(PIXEL_X_DIMENSION)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(PIXEL_X_DIMENSION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1700", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1700", PIXEL_X_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1800 + * @tc.name : getImageProperty(PIXEL_Y_DIMENSION)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(PIXEL_Y_DIMENSION) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1800", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1800", PIXEL_Y_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1900 + * @tc.name : getImageProperty(WHITE_BALANCE)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(WHITE_BALANCE) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1900", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_1900", WHITE_BALANCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_2000 + * @tc.name : getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM)-callback + * @tc.desc : 1.create imagesource + * 2.call getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_2000", 0, async function (done) { + getImagePropertyCb(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK_2000", FOCAL_LENGTH_IN_35_MM_FILM); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0100 + * @tc.name : getImageProperty(DATE_TIME,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(DATE_TIME,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0100", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0100", DATE_TIME); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0200 + * @tc.name : getImageProperty(GPS_TIME_STAMP,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(GPS_TIME_STAMP,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0200", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0200", GPS_TIME_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0300 + * @tc.name : getImageProperty(GPS_DATE_STAMP,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(GPS_DATE_STAMP,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0300", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0300", GPS_DATE_STAMP); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0400 + * @tc.name : getImageProperty(IMAGE_DESCRIPTION,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(IMAGE_DESCRIPTION,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0400", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0400", IMAGE_DESCRIPTION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0500 + * @tc.name : getImageProperty(MAKE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(MAKE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0500", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0500", MAKE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0600 + * @tc.name : getImageProperty(MODEL,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(MODEL,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0600", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0600", MODEL); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0700 + * @tc.name : getImageProperty(SENSITIVITY_TYPE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(SENSITIVITY_TYPE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0700", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0700", SENSITIVITY_TYPE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0800 + * @tc.name : getImageProperty(RECOMMENDED_EXPOSURE_INDEX,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(RECOMMENDED_EXPOSURE_INDEX,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0800", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0800", RECOMMENDED_EXPOSURE_INDEX); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0900 + * @tc.name : getImageProperty(ISO_SPEED,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(ISO_SPEED,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0900", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_0900", ISO_SPEED); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1000 + * @tc.name : getImageProperty(APERTURE_VALUE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(APERTURE_VALUE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1000", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1000", APERTURE_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1100 + * @tc.name : getImageProperty(EXPOSURE_BIAS_VALUE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(EXPOSURE_BIAS_VALUE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1100", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1100", EXPOSURE_BIAS_VALUE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1200 + * @tc.name : getImageProperty(METERING_MODE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(METERING_MODE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1200", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1200", METERING_MODE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1300 + * @tc.name : getImageProperty(LIGHT_SOURCE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(LIGHT_SOURCE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1300", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1300", LIGHT_SOURCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1400 + * @tc.name : getImageProperty(FLASH,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FLASH,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1400", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1400", FLASH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1500 + * @tc.name : getImageProperty(FOCAL_LENGTH,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FOCAL_LENGTH,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1500", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1500", FOCAL_LENGTH); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1600 + * @tc.name : getImageProperty(USER_COMMENT,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(USER_COMMENT,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1600", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1600", USER_COMMENT); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1700 + * @tc.name : getImageProperty(PIXEL_X_DIMENSION,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(PIXEL_X_DIMENSION,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1700", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1700", PIXEL_X_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1800 + * @tc.name : getImageProperty(PIXEL_Y_DIMENSION,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(PIXEL_Y_DIMENSION,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1800", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1800", PIXEL_Y_DIMENSION); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1900 + * @tc.name : getImageProperty(WHITE_BALANCE,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(WHITE_BALANCE,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1900", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_1900", WHITE_BALANCE); + }); + + /** + * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_2000 + * @tc.name : getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM,property)-callback + * @tc.desc : 1.create imagesource + * 2.set property + * 3.call getImageProperty(FOCAL_LENGTH_IN_35_MM_FILM,property) + * @tc.size : MEDIUM + * @tc.type : Functional + * @tc.level : Level 0 + */ + it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_2000", 0, async function (done) { + getImagePropertyCb2(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_CALLBACK2_2000", FOCAL_LENGTH_IN_35_MM_FILM); + }); + }); +} -- GitLab