/test/xts/acts/multimedia/image/image_js_standard/imageGif/src/main/js/test/ |
D | imageGif.test.js | 66 async function packingPromise(done, testNum, pixelmap) { argument 69 console.info(`${testNum} packingPromise create image packer failed`); 75 `${testNum} packingPromise packOpts={${JSON.stringify(packOpts)}}` 79 console.info(`${testNum} packing finished`); 81 console.info(`${testNum} packing failed`); 86 console.info(`${testNum} packing success`); 88 console.info(`${testNum} packing show begin length: ${dataArr.length} `); 95 console.info(`${testNum} packing str: ${str}`); 99 console.info(`${testNum} packing show end line: ${line}`); 103 console.info(`${testNum} packingPromise error: ${error}`); [all …]
|
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/ |
D | watcher.test.js | 42 function startWatcher(testNum, eventCode, watchPath) { argument 49 …console.log(`${testNum} :{event: ${data.event}, fileName: ${data.fileName}, cookie: ${data.cookie}… 55 console.log(testNum + ' startWatcher failed for ' + e.message + ', code: ' + e.code); 73 let testNum = 'fileIO_test_watcher_000'; 74 let dpath = await nextFileName(testNum); 90 resWatcher[0] = startWatcher(testNum, watcherEvent.IN_MODIFY, dpath); 91 resWatcher[1] = startWatcher(testNum, watcherEvent.IN_ACCESS, ddpath); 92 resWatcher[2] = startWatcher(testNum, watcherEvent.IN_CREATE, dddpath); 109 console.log(testNum + ' has failed for ' + e.message + ', code: ' + e.code); 125 let testNum = 'fileIO_test_watcher_001'; [all …]
|
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/PhotoAsset/ |
D | getThumbnail.ets | 28 async function getThumbnailCallback1 (done, testNum, fetchOps) { 30 let asset = await getFileAsset(testNum, fetchOps); 34 console.info(`${testNum} err: ${err}`); 43 console.info(`${testNum} error: ${error}`); 48 console.info(`${testNum} failed; error: ${error}`); 54 async function getThumbnailCallback2 (done, testNum, fetchOps, size, expectSize) { 56 let asset = await getFileAsset(testNum, fetchOps); 60 console.info(`${testNum} err: ${err}`); 68 console.info(`${testNum} error: ${error}`); 73 console.info(`${testNum} failed; error: ${error}`); [all …]
|
D | commitModify.ets | 28 async function commitModifyCallback (done, testNum, fetchOps, newTitle) { 30 const asset = await getFileAsset(testNum, fetchOps); 33 console.info(`${testNum} oldTitle: ${oldTitle}`); 35 console.info(`${testNum} newTitle: ${newTitle}`); 39 console.info(`${testNum} err: ${err}`); 42 const option = photoFetchOption(testNum, photoKeys.URI, uri); 43 const newAsset = await getFileAsset(testNum, option); 50 console.info(`${testNum} error: ${error}`); 55 console.info(`${testNum} failed; error: ${error}`); 61 async function commitModifyAbnormalCallback (done, testNum, fetchOps, type, value) { [all …]
|
D | get.ets | 28 async function get (done, testNum, fetchOps, key, value) { 30 let asset = await getFileAsset(testNum, fetchOps); 31 console.info(`${testNum} key: ${key}, value: ${value}, asset.key: ${asset.get(key)}`); 45 console.info(`${testNum} failed; error: ${error}`); 62 const testNum = 'get_000'; 63 const fetchOps = photoFetchOption(testNum, photoKeys.DISPLAY_NAME, '01.jpg'); 66 await get(done, testNum, fetchOps, key, value); 78 const testNum = 'get_001'; 79 const fetchOps = photoFetchOption(testNum, photoKeys.DISPLAY_NAME, '01.jpg'); 82 await get(done, testNum, fetchOps, key, value); [all …]
|
D | close.ets | 26 async function closeCallbackTest (done, testNum, fetchOps) { 28 const asset = await getFileAsset(testNum, fetchOps); 30 console.info(`${testNum} fd: ${fd}`); 33 console.info(`${testNum} err: ${err}`); 40 console.info(`${testNum} read suc`); 42 console.info(`${testNum} read fail`); 47 console.info(`${testNum} write suc`); 50 console.info(`${testNum} write fail`); 52 console.info(`${testNum} count: ${count}`); 58 console.info(`${testNum} failed; error: ${error}`); [all …]
|
D | getReadOnlyFd.ets | 27 async function getReadOnlyFdCallback (done, testNum, fetchOps) { 29 const asset = await getFileAsset(testNum, fetchOps); 32 console.info(`${testNum} err: ${err}`); 35 console.info(`${testNum} fd: ${fd}`); 37 await fileio.write(fd, testNum); 40 console.info(`${testNum} error: ${error}`); 46 console.info(`${testNum} failed; error: ${error}`); 52 async function getReadOnlyFdPromise (done, testNum, fetchOps) { 54 const asset = await getFileAsset(testNum, fetchOps); 56 console.info(`${testNum} fd: ${fd}`); [all …]
|
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/PhotoAccessHelper/ |
D | createAsset.ets | 24 async function createAssetCallback1 (done, testNum, type, extension, options) { 29 console.info(`${testNum} err: ${err}`); 32 console.info(`${testNum} uri: ${uri}`); 35 console.info(`${testNum} error: ${error}`); 40 console.info(`${testNum} failed; error: ${error}`); 46 async function createAssetCallback2 (done, testNum, type, extension) { 51 console.info(`${testNum} err: ${err}`); 54 console.info(`${testNum} uri: ${uri}`); 57 console.info(`${testNum} error: ${error}`); 62 console.info(`${testNum} failed; error: ${error}`); [all …]
|
D | getAssets.ets | 27 function getAssetsCallbackTest (done, testNum, fetchOps, expectCount) { 32 console.info(`${testNum} getAssets failed; err: ${err}`); 39 console.info(`${testNum} getAssets failed; error: ${error}`); 44 console.info(`${testNum} failed; error: ${error}`); 50 function getAssetsAbnormalCallbackTest (done, testNum, fetchOps) { 55 console.info(`${testNum} getAssets failed; err: ${err}`); 58 console.info(`${testNum} getAssets suc; fetchResult: ${fetchResult.getCount()}`); 63 console.info(`${testNum} getAssets failed; error: ${error}`); 68 console.info(`${testNum} failed; error: ${error}`); 73 async function getAssetsPromiseTest (done, testNum, fetchOps, expectCount) { [all …]
|
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/Album/ |
D | removeAssets.ets | 39 const testNum = 'removeAssets_callback_000'; 41 const album = await helper.createAlbum(testNum); 42 const fetchOps = fetchOption(testNum, photoKeys.DISPLAY_NAME, 'removeCb01.jpg'); 43 const asset = await getFileAsset(testNum, fetchOps); 51 console.info(`${testNum} err: ${err}`); 54 console.info(`${testNum} album.count: ${album.count}`); 60 console.info(`${testNum} error: ${error}`); 65 console.info(`${testNum} failed; error: ${error}`); 80 const testNum = 'removeAssets_callback_002'; 82 const album = await helper.createAlbum(testNum); [all …]
|
D | commitModify.ets | 41 const testNum = 'album_commitModify_callback_000'; 43 const album = await helper.createAlbum(testNum); 49 console.info(`${testNum} err: ${err}`); 52 const fetchOps = fetchOption(testNum, albumKeys.ALBUM_NAME, newName); 54 console.info(`${testNum} fetchResult: ${fetchResult.getCount()}`); 60 console.info(`${testNum} error: ${error}`); 65 console.info(`${testNum} failed; error: ${error}`); 80 const testNum = 'album_commitModify_callback_001'; 82 const album = await helper.createAlbum(testNum); 85 console.info(`${testNum} err: ${err}`); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/ |
D | getThumbnailPromise.test.ets | 66 function checkCount(done,testNum,count){ 67 console.info('${testNum}::count:${count}'); 69 console.info('${testNum}::resources is empty'); 77 async function testGetThumbnail(done, testNum, dOp, size) { 80 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 83 console.info(`${testNum}:displayName ${asset.displayName}`); 100 console.info(`${testNum}:: error :${error}`); 106 async function testGetThumbnailError(done, testNum, dOp, size) { 109 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 117 … console.info(`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`); [all …]
|
D | getThumbnailCallback.test.ets | 68 function checkCount(done,testNum,count){ 69 console.info('${testNum}::count:${count}'); 71 console.info('${testNum}::resources is empty'); 79 async function testGetThumbnail(done, testNum, dOp, size) { 84 console.info(`${testNum} asset :${asset}, size: ${size}`); 90 console.info(`${testNum}:: err :${err}`); 98 console.info(`${testNum}:: error1 :${error}`); 106 console.info(`${testNum} err :${err}`); 114 console.info(`${testNum}:: error2 :${error}`); 120 console.info(`${testNum}:: error3 :${error}`); [all …]
|
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/AbsAlbum/ |
D | checkAttr.ets | 32 async function checkAssetAttr (done, testNum) { 34 const album = await helper.createAlbum(testNum); 37 expect(album.albumName).assertEqual(testNum); 40 const fetchOps = fetchOption(testNum, photoKeys.DISPLAY_NAME, '01.jpg'); 41 const asset = await getFileAsset(testNum, fetchOps); 43 const fetchAlbumOps = fetchOption(testNum, albumKeys.URI, album.albumUri); 46 console.info(`${testNum} count: ${newAlbum.count}, coverUri: ${newAlbum.coverUri}`) 51 console.info(`${testNum} failed; error: ${error}`); 57 async function checkImageVideoCount (album, testNum, iCount, vCount) { 58 console.info(`${testNum} image count: ${album.imageCount}, expect: ${iCount}`); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_album/entry/src/main/ets/test/ |
D | albumGetFileAssetsPromise.test.ets | 50 …const checkAlbumAssetsCount = async function (done, testNum, fetchOp, expectAssetsCount, expectAlb… 54 const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 62 console.info(`${testNum} fetchFileResult undefined`); 76 console.info(`${testNum}, error: ${error}`); 82 …const checkAlbumAssetsNoOps = async function (done, testNum, fetchOp, expectAssetsCount, expectAlb… 86 const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 92 console.info(`${testNum} fetchFileResult undefined`); 97 …console.info(`${testNum}, getCount:expectAssetsCount - ${fetchFileResult.getCount()} : ${expectAss… 102 console.info(`${testNum}, error: ${error}`); 110 testNum, [all …]
|
D | albumGetFileAssetsCallback.test.ets | 51 …const checkAlbumAssetsCount = async function (done, testNum, fetchOp, expectAssetsCount, expectAlb… 55 const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 64 console.info(`${testNum}, err: ${err}`) 68 console.info(`${testNum}, count: ${fetchFileResult.getCount()}`) 73 console.info(`${testNum}, error: ${error}`) 83 console.info(`${testNum} failed, error: ${error}`) 89 …const checkAlbumAssetsNoOps = async function (done, testNum, fetchOp, expectAssetsCount, expectAlb… 93 const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 99 console.info(`${testNum} fetchFileResult undefined or error, error: ${err}`) 104 …console.info(`${testNum}, getCount:expectAssetsCount - ${fetchFileResult.getCount()} : ${expectAss… [all …]
|
D | albumTestCallBack.test.ets | 46 function printAlbumMessage(testNum, album) { 47 console.info(`${testNum} album.albumId: ${album.albumId} 56 const checkProps = async function (done, testNum, album, relativePath, prop) { 57 printAlbumMessage(testNum, album); 59 console.info(`${testNum}, album.albumId or album.coverUri is undefined`); 70 …const checkAlbumInfo = async function (done, testNum, fetchOp, relativePaths, props, expectAlbumCo… 75 console.info(`${testNum}, err: ${err}`); 80 … const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 84 checkProps(done, testNum, album, relativePaths[0], props[0]); 89 checkProps(done, testNum, albumList[i], relativePaths[i], props[i]); [all …]
|
D | albumTestPromise.test.ets | 44 function printAlbumMessage(testNum, album) { 45 console.info(`${testNum} album.albumId: ${album.albumId} 54 const checkProps = async function (done, testNum, album, relativePath, prop) { 55 printAlbumMessage(testNum, album); 57 console.info(`${testNum}, album.albumId or album.coverUri is undefined`); 68 …const checkAlbumInfo = async function (done, testNum, fetchOp, relativePaths, props, expectAlbumCo… 71 const albumCountPass = await checkAlbumsCount(testNum, albumList, expectAlbumCount); 75 checkProps(done, testNum, album, relativePaths[0], props[0]); 80 checkProps(done, testNum, albumList[i], relativePaths[i], props[i]); 88 console.info(`${testNum}, failed: ${error}`); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/ |
D | mediaLibraryTestPromiseOnOff.test.ets | 49 const onTest = async (done, testNum, type, fetchOps) => { 56 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 59 asset.title = testNum + asset.title; 66 console.info(`${testNum}:: error :${error}`); 71 const offTest = async (done, testNum, type, fetchOps) => { 75 console.info(`${testNum}:: on`); 79 console.info(`${testNum}:: fetchFileResult :${fetchFileResult.getCount()}`); 80 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 83 asset.title = testNum + asset.title; 87 console.info(`${testNum}:: count :${count}`); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_favorite/entry/src/main/ets/test/ |
D | favoriteTestPromise.test.ets | 45 const favoriteDefaultState = async function (done, testNum, fetchOp) { 48 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 56 console.info(`${testNum} failed error: ${error}`); 61 const favoriteByTrue = async function (done, testNum, fetchOp) { 64 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 73 console.info(`${testNum} failed error: ${error}`); 78 const favoriteByFalse = async function (done, testNum, fetchOp) { 81 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 91 console.info(`${testNum} failed error: ${error}`); 106 let testNum = "SUB_MEDIA_MEDIALIBRARY_FAV_ASSET_PROMISE_001_01"; [all …]
|
D | favoriteTestCallback.test.ets | 47 const favoriteDefaultState = async function (done, testNum, fetchOp) { 50 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 65 console.info(`${testNum} failed error: ${error}`); 70 const favoriteByTrue = async function (done, testNum, fetchOp) { 73 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 78 console.info(`${testNum} failed err: ${err}`); 90 console.info(`${testNum} failed error: ${error}`); 95 const favoriteByFalse = async function (done, testNum, fetchOp) { 98 let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, 1); 104 console.info(`${testNum} failed err: ${err}`); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/ |
D | fileAssetTestCallback.test.ets | 47 const rwOpenTest = async function (done, testNum, fetchOp, assetProps, expectCount) { 52 … let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, expectCount); 57 … console.info(`${testNum} :: asset.name: ${asset.displayName}, asset.id: ${asset.id}`); 61 console.info(`${testNum} :: err: ${err}`); 80 … let newFetchFileResult = await media.getFileAssets(fileIdFetchOps(testNum, asset.id)); 81 … let checkAssetCountPass = await checkAssetsCount(testNum, newFetchFileResult, 1); 88 console.info(`${testNum} failed, error: ${error}`); 93 console.info(`${testNum} :: error: ${error}`); 99 const rOpenTest = async function (done, testNum, fetchOp, assetProps, expectCount) { 104 … let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, expectCount); [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/ |
D | fetchFileResultCallback.test.ets | 47 const checkAssetCount = async function (done, testNum, fetchOp, expectCount) { 50 let checkResult = await checkAssetsCount(testNum, fetchFileResult, expectCount); 56 console.info(`${testNum} error: ${error}`); 62 const checkGetPositionObject = async function (done, testNum, pos) { 64 let currentFetchOp = fetchOps(testNum, "Pictures/Static/", IMAGE_TYPE, { 67 console.info(`${testNum} currentFetchOp ${currentFetchOp} `); 71 … let checkAssetCountPass = await checkAssetsCount(testNum, fetchFileResult, expectCount); 86 console.info(`${testNum} error: ${error}`); 92 const checkGetAllObject = async function (done, testNum, expectCount) { 94 let currentFetchOp = fetchOps(testNum, "Documents/Static/", FILE_TYPE, { [all …]
|
/test/xts/acts/multimedia/medialibrary/mediaLibrary_trash/entry/src/main/ets/test/ |
D | trashPromise.test.ets | 44 async function setTrash(done, testNum, databasefFetchOps, ablumFetchOps, noAlbum = false) { 49 console.info(`${testNum} count: ${count}`); 65 console.info(`${testNum} istrash: ${istrash}`); 84 console.info(`${testNum} error: ${error}`); 90 async function trashError(done, testNum, databasefFetchOps, value) { 102 console.info(`${testNum} error: ${error}`); 111 console.info(`${testNum} error: ${error}`); 117 console.info(`${testNum} error: ${error}`); 123 async function recovery(done, testNum, databasefFetchOps, ablumFetchOps, noAlbum) { 160 console.info(`${testNum} error: ${error}`); [all …]
|
/test/xts/acts/storage/storagepickerjstest/entry/src/main/ets/test/ |
D | documentPickerCallback.test.ets | 37 let testNum = "documentpicker_select_callback_000"; 39 await selectWithOption(testNum, done, option); 50 let testNum = "documentpicker_select_callback_001"; 51 await select(testNum, done); 62 let testNum = "documentpicker_select_callback_002"; 65 await selectWithOption(testNum, done, option); 76 let testNum = "documentpicker_select_callback_003"; 79 await selectWithOption(testNum, done, option); 90 let testNum = "documentpicker_select_callback_004"; 93 await selectWithOption(testNum, done, option); [all …]
|