diff --git a/.gitattributes b/.gitattributes index 51c63e295e0232f7095a8ee8e03713837e37f419..8e07dd8105b6779e872cf9021795fa6a98b1ecce 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,5 @@ *.tgz filter=lfs diff=lfs merge=lfs -text *.trp filter=lfs diff=lfs merge=lfs -text -*.apk filter=lfs diff=lfs merge=lfs -text *.jar filter=lfs diff=lfs merge=lfs -text *.mp4 filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text diff --git a/storage/storagefmssharejstest/src/main/js/default/test/FmsShare.test.js b/storage/storagefmssharejstest/src/main/js/default/test/FmsShare.test.js index 52a77536f9a2a9f923e804f74bbd840abc014a83..212178f22cb32ac474fcb4c313133e225f6e73c3 100644 --- a/storage/storagefmssharejstest/src/main/js/default/test/FmsShare.test.js +++ b/storage/storagefmssharejstest/src/main/js/default/test/FmsShare.test.js @@ -36,7 +36,7 @@ describe('fmsShareTest', function () { prepareFile(fmsFileName('picture.jpg'), 'content'); prepareFile(fmsFileName('picture2.jpg'), 'content'); prepareFile(fmsFileName('文件.doc'), 'content'); - prepareFile(fmsFileName('cross Fire.apk'), 'content'); + prepareFile(fmsFileName('cross Fire.txt'), 'content'); prepareFile(fmsCacheName('video.mp4'), 'content'); prepareFile(fmsFileName('file.xlsx'), 'content'); prepareFile(fmsFileName('f2.ppt'), 'content'); @@ -47,7 +47,7 @@ describe('fmsShareTest', function () { '{"type": "files-path", "name": "primary_leaf3", "path": "/picture.jpg"},' + '{"type": "files-path", "name": "primary_leaf4", "path": "/picture2.jpg"},' + '{"type": "files-path", "name": "primary_leaf5", "path": "/文件.doc"},' + - '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.apk"},' + + '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.txt"},' + '{"type": "cache-path", "name": "cacheprimary_leaf", "path": "/video.mp4"},' + '{"type": "files-path", "name": "primary_leaf7", "path": "/file.xlsx"},' + '{"type": "files-path", "name": "primary_leaf8", "path": "/f3.doc"},' + @@ -165,12 +165,12 @@ describe('fmsShareTest', function () { fileShareAbility.fuzzyFileToUri({ deviceId: '440E-0906', authority: 'ohos.acts.test.ability', - uri: 'internal://app/cross Fire.apk', + uri: 'internal://app/cross Fire.txt', displayName: '你好,世界', success: function (uri) { console.log('FMS_fuzzyFileToUri_500 call fuzzyFileToUri success. uri:' + uri); expect(uri == 'dataability://440E-0906/ohos.acts.test.ability/primary/document/files' - +'/primary_leaf6/cross Fire.apk/leaf?displayName=你好,世界#').assertTrue(); + +'/primary_leaf6/cross Fire.txt/leaf?displayName=你好,世界#').assertTrue(); }, fail: function (data, code) { console.log('FMS_fuzzyFileToUri_500 call fuzzyFileToUri fail, code: ' + code + ', data: ' + data); diff --git a/storage/storagefmssharejstest/src/main/js/default/test/FmsSharePerformance.test.js b/storage/storagefmssharejstest/src/main/js/default/test/FmsSharePerformance.test.js index e020d35255e15fcfd03aa508143529dad5ffcb81..140a44c9cfaddb3ae09f5a2f4fbc3984e306e623 100644 --- a/storage/storagefmssharejstest/src/main/js/default/test/FmsSharePerformance.test.js +++ b/storage/storagefmssharejstest/src/main/js/default/test/FmsSharePerformance.test.js @@ -36,7 +36,7 @@ describe('fmsPerformanceTest', function () { prepareFile(fmsFileName('picture.jpg'), 'content'); prepareFile(fmsFileName('picture2.jpg'), 'content'); prepareFile(fmsFileName('文件.doc'), 'content'); - prepareFile(fmsFileName('cross Fire.apk'), 'content'); + prepareFile(fmsFileName('cross Fire.txt'), 'content'); prepareFile(fmsCacheName('video.mp4'), 'content'); prepareFile(fmsFileName('file.xlsx'), 'content'); prepareFile(fmsFileName('f2.ppt'), 'content'); @@ -47,7 +47,7 @@ describe('fmsPerformanceTest', function () { '{"type": "files-path", "name": "primary_leaf3", "path": "/picture.jpg"},' + '{"type": "files-path", "name": "primary_leaf4", "path": "/picture2.jpg"},' + '{"type": "files-path", "name": "primary_leaf5", "path": "/文件.doc"},' + - '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.apk"},' + + '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.txt"},' + '{"type": "cache-path", "name": "cacheprimary_leaf", "path": "/video.mp4"},' + '{"type": "files-path", "name": "primary_leaf7", "path": "/file.xlsx"},' + '{"type": "files-path", "name": "primary_leaf8", "path": "/f3.doc"},' + diff --git a/storage/storagefmssharejstest/src/main/js/default/test/FmsShareStability.test.js b/storage/storagefmssharejstest/src/main/js/default/test/FmsShareStability.test.js index 781bd4af196a15b8ba97aa163cdd1f01b27660b9..56e197fe017a3cb50b33e34f78a70d65359478bf 100644 --- a/storage/storagefmssharejstest/src/main/js/default/test/FmsShareStability.test.js +++ b/storage/storagefmssharejstest/src/main/js/default/test/FmsShareStability.test.js @@ -36,7 +36,7 @@ describe('fmsStabilityTest', function () { prepareFile(fmsFileName('picture.jpg'), 'content'); prepareFile(fmsFileName('picture2.jpg'), 'content'); prepareFile(fmsFileName('文件.doc'), 'content'); - prepareFile(fmsFileName('cross Fire.apk'), 'content'); + prepareFile(fmsFileName('cross Fire.txt'), 'content'); prepareFile(fmsCacheName('video.mp4'), 'content'); prepareFile(fmsFileName('file.xlsx'), 'content'); prepareFile(fmsFileName('f2.ppt'), 'content'); @@ -47,7 +47,7 @@ describe('fmsStabilityTest', function () { '{"type": "files-path", "name": "primary_leaf3", "path": "/picture.jpg"},' + '{"type": "files-path", "name": "primary_leaf4", "path": "/picture2.jpg"},' + '{"type": "files-path", "name": "primary_leaf5", "path": "/文件.doc"},' + - '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.apk"},' + + '{"type": "files-path", "name": "primary_leaf6", "path": "/cross Fire.txt"},' + '{"type": "cache-path", "name": "cacheprimary_leaf", "path": "/video.mp4"},' + '{"type": "files-path", "name": "primary_leaf7", "path": "/file.xlsx"},' + '{"type": "files-path", "name": "primary_leaf8", "path": "/f3.doc"},' +