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