diff --git a/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn b/multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn index bb5ab768751487398cdc2720e99a7e087a016ec5..c17705935678aa1c65bc800b561fedbcc6ef7125 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 86da76cfbdf1f23ed18d4b497759421a71aeff19..9af035377ca5c57e94a915791712d075994fbc44 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 Binary files a/multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b and b/multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b differ 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 b2227062bd565e12782467cc04c9521224c60182..9f1c7ca3a948594397a3034f4ee05de8fca43d01 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 8b3c3b3cb7930c465567b386bf230cb38a0d128e..972fd485ee805f3aa911e871654bc7fc86d840f8 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 6e13f07516799a59adf5300cb7a609436db8122a..d1156efe5f5911e334d24d499bc505d6e44d24de 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 cdc31f3dcf031e2f6a7665d9653e53bb649e21c5..bc68f20cbcd6b0d3b9a9a0967d6c553bd9548aed 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 88b083a7f6b979019d6a2c5ad20b19c5fd43286b..2836c005dfa3cbed39dac1787f69b727e7faf7df 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 c5fa8620ca77d381f20b65a903b833e6e3378c97..70da04f8d2136bd81fd6c63a6ef0392842e16c98 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 fe2fd263fe4be2774428c7252c22c99a070e474a..37be416ec3f436adda9d272cf7adad610a4e735d 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 0000000000000000000000000000000000000000..d86338d228351636ebd147459f98ae78de8d8676 --- /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); + }); + }); +}