提交 f00ec3c9 编写于 作者: Z zhang-daiyue 提交者: gudehe

Fix coding style check.

Signed-off-by: Nzhang-daiyue <zhangdaiyue1@huawei.com>
Change-Id: I067199a35542890057812ed7767ca14843092d6e
上级 a9a2966e
......@@ -59,6 +59,7 @@ describe('album.callback.test.js', function () {
console.info('Album Callback MediaLibraryTest: afterAll.');
})
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GETALBUM_CALLBACK_001
* @tc.name : Get Album by AlbumNoArgsfetchOp
......
......@@ -59,6 +59,7 @@ describe('album.promise.test.js', function () {
console.info('Album Promise MediaLibraryTest: afterAll.');
})
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GETALBUM_PROMISE_001
* @tc.name : Get Album by AlbumNoArgsfetchOp
......
......@@ -63,7 +63,7 @@ describe('createFileAssetsPerformance.test.js', function () {
let rp = "Pictures/";
let displayName;
let conteEnd = 0;
for(let i = 0; i < times; i++) {
for (let i = 0; i < times; i++) {
displayName = displayNamePrefix + i + extendStr;
console.info('MediaLibraryTest : createAsset begin');
media.createAsset(mediaType, displayName, rp).then((fileObj) => {
......
......@@ -102,7 +102,7 @@ describe('deleteFileAssetsPerformance.test.js', function () {
it('SUB_MEDIA_MEDIALIBRARY_DELETE_FILE_PERFORMANCE_01', 0, async function (done) {
if (fileList_ != undefined) {
let counteEnd = 0;
for(let i = 0; i < fileList_.length; i++) {
for (let i = 0; i < fileList_.length; i++) {
let fileAsset = fileList_[i];
console.info('MediaLibraryTest : uri is '+ fileAsset.uri);
media.deleteAsset(fileAsset.uri, (deleteAssetErr, deleteRows) => {
......
......@@ -59,6 +59,7 @@ describe('favSmartAlbum.promise.test.js', function () {
console.info('Smart Album Callback MediaLibraryTest: afterAll.');
})
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GETPRIVATEALBUM_CALLBACK_001
* @tc.name : Get PrivateSmartAlbum by fav
......
......@@ -59,6 +59,7 @@ describe('favSmartAlbum.promise.test.js', function () {
console.info('Smart Album Promise MediaLibraryTest: afterAll.');
})
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GETPRIVATEALBUM_PROMISE_001
* @tc.name : Get PrivateSmartAlbum by fav
......@@ -77,6 +78,7 @@ describe('favSmartAlbum.promise.test.js', function () {
favSmartAlbum = favSmartAlbums[0];
done();
});
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_ADDASSET_PROMISE_002
* @tc.name : Add asset
......
......@@ -106,6 +106,7 @@ describe('file.callback.test.js', function () {
media.getFileAssets(fileNoArgsfetchOp, getFileAssetsCallBack);
done();
});
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GET_ASSET_CALLBACK_004
* @tc.name : Get assetList By HasArgsfetchOp
......
......@@ -112,6 +112,7 @@ describe('file.promise.test.js', function () {
assetList.forEach(getAllObjectInfo);
done();
});
/*
* @tc.number : SUB_MEDIA_MEDIALIBRARY_GET_ASSET_PROMISE_004
* @tc.name : Get assetList By HasArgsfetchOp
......
......@@ -56,7 +56,7 @@ describe('getAlbumsPerformance.test.js', function () {
console.info('MediaLibraryTest : SUB_MEDIA_MEDIALIBRARY_GET_ALBUMS_PERFORMANCE_01 begin');
it('SUB_MEDIA_MEDIALIBRARY_GET_ALBUMS_PERFORMANCE_01', 0, async function (done) {
for(let i = 0; i < times; i++) {
for (let i = 0; i < times; i++) {
const albumArray = await media.getAlbums(AlbumNoArgsfetchOp);
if (albumArray != undefined) {
console.info('MediaLibraryTest : getAlbums : PASS '+ albumArray.length);
......
......@@ -59,7 +59,7 @@ describe('getFileAssetsPerformance.test.js', function () {
console.info('MediaLibraryTest : SUB_MEDIA_MEDIALIBRARY_GET_FILE_ASSETS_PERFORMANCE_01 begin');
it('SUB_MEDIA_MEDIALIBRARY_GET_FILE_ASSETS_PERFORMANCE_01', 0, async function (done) {
for(let i = 0; i < times; i++) {
for (let i = 0; i < times; i++) {
const queryResultSet = await media.getFileAssets(fetchOp);
if (queryResultSet != undefined) {
console.info('MediaLibraryTest : getFileAssets : PASS '+ queryResultSet.getCount());
......
......@@ -51,7 +51,7 @@ describe('getPrivateAlbumsPerformance.test.js', function () {
console.info('MediaLibraryTest : SUB_MEDIA_MEDIALIBRARY_GET_ALBUMS_PERFORMANCE_01 begin');
it('SUB_MEDIA_MEDIALIBRARY_GET_ALBUMS_PERFORMANCE_01', 0, async function (done) {
for(let i = 0; i < times; i++) {
for (let i = 0; i < times; i++) {
const albums = await media.getPrivateAlbum(mediaLibrary.PrivateAlbumType.TYPE_TRASH);
if (albums != undefined) {
console.info('MediaLibraryTest : getAlbums : PASS '+ albums[0].albumName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册