未验证 提交 4656b7de 编写于 作者: O openharmony_ci 提交者: Gitee

!3929 image xts 修改

Merge pull request !3929 from L刘/OpenHarmony-3.1-Release
......@@ -37,6 +37,7 @@
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/cache",
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/cache",
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/cache",
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/cache",
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/cache"
]
}
......
......@@ -4661,7 +4661,7 @@ describe('Image', function () {
* @tc.level : Level 1
*/
it('TC_171', 0, async function (done) {
await getAbilityInfo('test_exif.jpg');
await getAbilityInfo('test_exif1.jpg');
let fdExifJpg = fileio.openSync(filePath);
const imageSourceApi = image.createImageSource(fdExifJpg);
if (imageSourceApi == undefined) {
......@@ -4672,7 +4672,8 @@ describe('Image', function () {
imageSourceApi.getImageProperty("BitsPerSample")
.then(data => {
console.info('TC_171 BitsPerSample ' + data);
expect(data != undefined).assertTrue();
expect(data != undefined && data != '').assertTrue();
done();
})
.catch(error => {
......@@ -4966,7 +4967,7 @@ describe('Image', function () {
* @tc.level : Level 1
*/
it('TC_172', 0, async function (done) {
await getAbilityInfo('test_exif.jpg');
await getAbilityInfo('test_exif1.jpg');
let fdExifJpg = fileio.openSync(filePath);
const imageSourceApi = image.createImageSource(fdExifJpg);
if (imageSourceApi == undefined) {
......@@ -4981,7 +4982,7 @@ describe('Image', function () {
done();
} else {
console.info('TC_172 BitsPerSample ' + data);
expect(data != undefined).assertTrue();
expect(data != undefined && data != '').assertTrue();
done();
}
})
......@@ -5264,7 +5265,7 @@ describe('Image', function () {
* @tc.level : Level 1
*/
it('TC_173', 0, async function (done) {
await getAbilityInfo('test_exif.jpg');
await getAbilityInfo('test_exif1.jpg');
let fdExifJpg = fileio.openSync(filePath);
const imageSourceApi = image.createImageSource(fdExifJpg);
if (imageSourceApi == undefined) {
......@@ -5280,7 +5281,7 @@ describe('Image', function () {
done();
} else {
console.info('TC_173 BitsPerSample ' + data);
expect(data != '9999' && data != undefined).assertTrue();
expect(data != '9999' && data != undefined && data != '').assertTrue();
done();
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册