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 index 656c9cd17e4bbb48ae1e2bdd0cbbc8323eff4669..88ea6d9870751a3196a2482b0307eae065ee2cc3 100644 --- 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 @@ -22,7 +22,7 @@ export default function imageGetImagePropertySecond() { 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, TAG_PHOTO_MODE, TAG_STANDARD_OUTPUT_SENSITIVITY, HW_MNOTE_TAG_CAPTURE_MODE, HW_MNOTE_TAG_PHYSICAL_APERTURE } = image.PropertyKey; + FOCAL_LENGTH_IN_35_MM_FILM, PHOTO_MODE, STANDARD_OUTPUT_SENSITIVITY, CAPTURE_MODE, PHYSICAL_APERTURE } = image.PropertyKey; const props = { DateTime: "2019:11:15 20:48:30", GPSTimeStamp: "13:31:27.00", @@ -163,7 +163,7 @@ export default function imageGetImagePropertySecond() { expect(false).assertTrue(); done(); } catch (error) { - expect(error.code == 1).assertTrue(); + expect(error.code != 0).assertTrue(); console.log(`${testNum} error msg: ` + error); done(); } @@ -994,58 +994,58 @@ export default function imageGetImagePropertySecond() { /** * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0100 - * @tc.name : getImageProperty(TAG_PHOTO_MODE) + * @tc.name : getImageProperty(PHOTO_MODE) * @tc.desc : 1.create imagesource * 2.set property - * 3.call getImageProperty(TAG_PHOTO_MODE) + * 3.call getImageProperty(PHOTO_MODE) * @tc.size : MEDIUM * @tc.type : Functional * @tc.level : Level 0 */ it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0100", 0, async function (done) { - getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0100", TAG_PHOTO_MODE); + getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0100", PHOTO_MODE); }); /** * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0200 - * @tc.name : getImageProperty(TAG_STANDARD_OUTPUT_SENSITIVITY) + * @tc.name : getImageProperty(STANDARD_OUTPUT_SENSITIVITY) * @tc.desc : 1.create imagesource * 2.set property - * 3.call getImageProperty(TAG_STANDARD_OUTPUT_SENSITIVITY) + * 3.call getImageProperty(STANDARD_OUTPUT_SENSITIVITY) * @tc.size : MEDIUM * @tc.type : Functional * @tc.level : Level 0 */ it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0200", 0, async function (done) { - getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0200", TAG_STANDARD_OUTPUT_SENSITIVITY); + getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0200", STANDARD_OUTPUT_SENSITIVITY); }); /** * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0300 - * @tc.name : getImageProperty(HW_MNOTE_TAG_CAPTURE_MODE) + * @tc.name : getImageProperty(CAPTURE_MODE) * @tc.desc : 1.create imagesource * 2.set property - * 3.call getImageProperty(HW_MNOTE_TAG_CAPTURE_MODE) + * 3.call getImageProperty(CAPTURE_MODE) * @tc.size : MEDIUM * @tc.type : Functional * @tc.level : Level 0 */ it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0300", 0, async function (done) { - getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0300 ", HW_MNOTE_TAG_CAPTURE_MODE); + getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0300 ", CAPTURE_MODE); }); /** * @tc.number : SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0400 - * @tc.name : getImageProperty(HW_MNOTE_TAG_PHYSICAL_APERTURE) + * @tc.name : getImageProperty(PHYSICAL_APERTURE) * @tc.desc : 1.create imagesource * 2.set property - * 3.call getImageProperty(HW_MNOTE_TAG_PHYSICAL_APERTURE) + * 3.call getImageProperty(PHYSICAL_APERTURE) * @tc.size : MEDIUM * @tc.type : Functional * @tc.level : Level 0 */ it("SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0400", 0, async function (done) { - getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0400 ", HW_MNOTE_TAG_PHYSICAL_APERTURE); + getImagePropertyErr(done, "SUB_GRAPHIC_IMAGE_GETIMAGEPROPERTY_ERR_0400 ", PHYSICAL_APERTURE); }); }); }