提交 15f7cb84 编写于 作者: Q qinliwen

<修改medialibrary xts适配hos>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 1a6a5ce6
...@@ -467,10 +467,10 @@ describe('fetchFileResultCallback.test.js', async function() { ...@@ -467,10 +467,10 @@ describe('fetchFileResultCallback.test.js', async function() {
console.info('MediaLibraryTest :firstObject.uri === undefined'); console.info('MediaLibraryTest :firstObject.uri === undefined');
} }
expect(firstObject.mimeType.startsWith('image/')).assertTrue(); expect(firstObject.mimeType.startsWith('image/')).assertTrue();
if (!firstObject.mimeType.startsWith('image/')) { if (!firstObject.mimeType.startsWith('image/')) {
console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType);
} }
expect(firstObject.mediaType == imageType).assertTrue(); expect(firstObject.mediaType == imageType).assertTrue();
if (firstObject.mediaType != imageType) { if (firstObject.mediaType != imageType) {
...@@ -571,4 +571,4 @@ describe('fetchFileResultCallback.test.js', async function() { ...@@ -571,4 +571,4 @@ describe('fetchFileResultCallback.test.js', async function() {
done(); done();
} }
}); });
}); });
\ No newline at end of file
...@@ -579,10 +579,10 @@ describe('fetchFileResultPromise.test.js', async function() { ...@@ -579,10 +579,10 @@ describe('fetchFileResultPromise.test.js', async function() {
console.info('MediaLibraryTest :firstObject.uri === undefined'); console.info('MediaLibraryTest :firstObject.uri === undefined');
} }
expect(firstObject.mimeType.startsWith('image/')).assertTrue(); expect(firstObject.mimeType.startsWith('image/')).assertTrue();
if (!firstObject.mimeType.startsWith('image/')) { if (!firstObject.mimeType.startsWith('image/')) {
console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType); console.info('Test MediaLibraryTest :firstObject.mimeType:' + firstObject.mimeType);
} }
expect(firstObject.mediaType == imageType).assertTrue(); expect(firstObject.mediaType == imageType).assertTrue();
if (firstObject.mediaType != imageType) { if (firstObject.mediaType != imageType) {
...@@ -681,4 +681,4 @@ describe('fetchFileResultPromise.test.js', async function() { ...@@ -681,4 +681,4 @@ describe('fetchFileResultPromise.test.js', async function() {
done(); done();
} }
}); });
}); });
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册