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

Fix coding style check.

Signed-off-by: Nzhang-daiyue <zhangdaiyue1@huawei.com>
Change-Id: Ib91581e2068d35a1c2c481473af1f530987bf6d6
上级 44671f69
......@@ -56,17 +56,13 @@ describe('GetFileAssets_GetCount_GetAllObjects', function () {
order: fileKeyObj.dateAdded,
};
beforeAll(function () {
//onsole.info('beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
});
beforeEach(function () {
//console.info('MediaLibraryTest: beforeEach: Prerequisites at the test case level, which are executed before each test case is executed.');
});
afterEach(function () {
//console.info('MediaLibraryTest: afterEach: Test case-level clearance conditions, which are executed after each test case is executed.');
});
afterAll(function () {
//console.info('MediaLibraryTest: afterAll: Test suite-level cleanup condition, which is executed after the test suite is executed');
});
/**
......
......@@ -56,17 +56,13 @@ describe('GetFileAssets_GetCount_GetAllObjects', function () {
order: fileKeyObj.dateAdded,
};
beforeAll(function () {
//onsole.info('beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
});
beforeEach(function () {
//console.info('MediaLibraryTest: beforeEach: Prerequisites at the test case level, which are executed before each test case is executed.');
});
afterEach(function () {
//console.info('MediaLibraryTest: afterEach: Test case-level clearance conditions, which are executed after each test case is executed.');
});
afterAll(function () {
//console.info('MediaLibraryTest: afterAll: Test suite-level cleanup condition, which is executed after the test suite is executed');
});
/**
......
......@@ -53,7 +53,7 @@ describe('album.promise.test.js', async function () {
console.info('MediaLibraryTest : getMediaLibrary OUT');
beforeAll(function () {
onsole.info('Album Promise MediaLibraryTest: beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
console.info('Album Promise MediaLibraryTest: beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
});
beforeEach(function () {
console.info('Album Promise MediaLibraryTest: beforeEach: Prerequisites at the test case level, which are executed before each test case is executed.');
......
......@@ -29,21 +29,17 @@ describe('favSmartAlbum.promise.test.js', function () {
var asset;
var favSmartAlbum;
beforeAll(function () {
onsole.info('Smart Album Callback MediaLibraryTest: beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
console.info('Smart Album Callback MediaLibraryTest: beforeAll: Prerequisites at the test suite level, which are executed before the test suite is executed.');
})
beforeEach(function () {
console.info('Smart Album Callback MediaLibraryTest: beforeEach:Prerequisites at the test case level, which are executed before each test case is executed.');
})
afterEach(function () {
console.info('Smart Album Callback MediaLibraryTest: afterEach: Test case-level clearance conditions, which are executed after each test case is executed.');
})
afterAll(function () {
console.info('Smart Album Callback MediaLibraryTest: afterAll: Test suite-level cleanup condition, which is executed after the test suite is executed');
})
/**
......@@ -115,4 +111,4 @@ describe('favSmartAlbum.promise.test.js', function () {
done();
}
}
})
\ No newline at end of file
})
......@@ -62,7 +62,8 @@ describe('favSmartAlbum.promise.test.js', function () {
const favSmartAlbums = await media.getPrivateAlbum(mediaLibrary.PrivateAlbumType.TYPE_FAVORITE);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getPrivateAlbum favSmartAlbums 001_01');
console.info('MediaLibraryTest : SMARTALBUM_PROMISE favSmartAlbums 001_01 ' + favSmartAlbums[0].albumName);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE favSmartAlbums 001_01 ' + favSmartAlbums[0].albumCapacity);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE favSmartAlbums 001_01 ' +
favSmartAlbums[0].albumCapacity);
favSmartAlbum = favSmartAlbums[0];
expect(true).assertTrue();
done();
......@@ -78,8 +79,10 @@ describe('favSmartAlbum.promise.test.js', function () {
try {
const trashSmartAlbums = await media.getPrivateAlbum(mediaLibrary.PrivateAlbumType.TYPE_TRASH);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getPrivateAlbum trashSmartAlbums 001_02');
console.info('MediaLibraryTest : SMARTALBUM_PROMISE trashSmartAlbums 001_02 ' + trashSmartAlbums[0].albumName);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE trashSmartAlbums 001_02 ' + trashSmartAlbums[0].albumCapacity);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE trashSmartAlbums 001_02 ' +
trashSmartAlbums[0].albumName);
console.info('MediaLibraryTest : SMARTALBUM_PROMISE trashSmartAlbums 001_02 ' +
trashSmartAlbums[0].albumCapacity);
trashSmartAlbum = trashSmartAlbums[0];
expect(true).assertTrue();
done();
......@@ -228,8 +231,8 @@ describe('favSmartAlbum.promise.test.js', function () {
try {
await favSmartAlbum.removeAsset(asset.uri);
let fSmartFetchFileResultNew = await favSmartAlbum.getFileAssets();
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getFileAssets Successfull removeAsset 003_01 fSmartFetchFileResultNew = '
+ fSmartFetchFileResultNew.getCount());
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getFileAssets Successfull removeAsset 003_01 fSmartFetchFileResultNew = ' +
fSmartFetchFileResultNew.getCount());
await media.deleteAsset(asset.uri);
done();
} catch (error) {
......@@ -301,8 +304,8 @@ describe('favSmartAlbum.promise.test.js', function () {
it('SUB_MEDIA_MEDIALIBRARY_GETASSET_PROMISE_004_01', 0, async function (done) {
try {
let fSmartFetchFileResultGet = await favSmartAlbum.getFileAssets();
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getFileAssets Successfull 004_01 fSmartFetchFileResultGet = '
+ fSmartFetchFileResultGet.getCount());
console.info('MediaLibraryTest : SMARTALBUM_PROMISE getFileAssets Successfull 004_01 fSmartFetchFileResultGet = ' +
fSmartFetchFileResultGet.getCount());
expect(true).assertTrue();
done();
} catch (error) {
......@@ -311,4 +314,4 @@ describe('favSmartAlbum.promise.test.js', function () {
done();
}
});
})
\ No newline at end of file
})
......@@ -39,20 +39,16 @@ describe('file.callback.test.js', function () {
console.info('MediaLibraryTest : getMediaLibrary OUT');
beforeAll(function () {
console.info('File Callback MediaLibraryTest: beforeAll : Prerequisites at the test suite level, which are executed before the test suite is executed.');
})
beforeEach(function () {
console.info('File Callback MediaLibraryTest: beforeEach:Prerequisites at the test case level, which are executed before each test case is executed.');
})
afterEach(function () {
console.info('File Callback MediaLibraryTest: afterEach: Test case-level clearance conditions, which are executed after each test case is executed.');
})
afterAll(function () {
console.info('File Callback MediaLibraryTest: afterAll: Test suite-level cleanup condition, which is executed after the test suite is executed');
})
/**
......@@ -801,4 +797,4 @@ describe('file.callback.test.js', function () {
}
}
})
\ No newline at end of file
})
......@@ -44,20 +44,16 @@ describe('file.promise.test.js', function () {
console.info('MediaLibraryTest : getMediaLibrary OUT');
beforeAll(function () {
console.info('File Promise MediaLibraryTest: beforeAll : Prerequisites at the test suite level, which are executed before the test suite is executed.');
})
beforeEach(function () {
console.info('File Promise MediaLibraryTest: beforeEach:Prerequisites at the test case level, which are executed before each test case is executed.');
})
afterEach(function () {
console.info('File Promise MediaLibraryTest: afterEach: Test case-level clearance conditions, which are executed after each test case is executed.');
})
afterAll(function () {
console.info('File Promise MediaLibraryTest: afterAll: Test suite-level cleanup condition, which is executed after the test suite is executed');
})
/**
......@@ -98,7 +94,8 @@ describe('file.promise.test.js', function () {
let mediaType = mediaLibrary.MediaType.VIDEO;
let path = "Movies/";
var asset02 = await media.createAsset(mediaType, "video01.avi", path);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_02 asset.displayName = ' + asset02.displayName);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_02 asset.displayName = ' +
asset02.displayName);
} catch (error) {
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_02 fail, message = ' + error);
}
......@@ -110,7 +107,8 @@ describe('file.promise.test.js', function () {
let mediaType = mediaLibrary.MediaType.VIDEO;
let path = "";
var asset03 = await media.createAsset(mediaType, "video03.avi", path);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_03 asset.displayName = ' + asset03.displayName);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_03 asset.displayName = ' +
asset03.displayName);
expect(false).assertTrue();
} catch (error) {
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_03 fail, message = ' + error);
......@@ -124,7 +122,8 @@ describe('file.promise.test.js', function () {
let mediaType;
let path = "Movies/";
var asset04 = await media.createAsset(mediaType, "video04.avi", path);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_04 asset.displayName = ' + asset04.displayName);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_04 asset.displayName = ' +
asset04.displayName);
expect(false).assertTrue();
} catch (error) {
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_04 fail, message = ' + error);
......@@ -138,7 +137,8 @@ describe('file.promise.test.js', function () {
let mediaType;
let path;
var asset05 = await media.createAsset(mediaType, "video05.avi", path);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_05 asset.displayName = ' + asset05.displayName);
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_05 asset.displayName = ' +
asset05.displayName);
expect(false).assertTrue();
} catch (error) {
console.info('MediaLibraryTest : ASSET_PROMISE create asset 001_05 fail, message = ' + error);
......@@ -1114,4 +1114,4 @@ describe('file.promise.test.js', function () {
}
});
}
})
\ No newline at end of file
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册