提交 056d411a 编写于 作者: C caochuan

modify tagname

Signed-off-by: Ncaochuan <caochuan@huawei.com>
Change-Id: I5ce09e7fcfb61d23e6132f1a03f0df9e95359360
上级 bf4210c3
......@@ -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);
});
});
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册