未验证 提交 dbd724c3 编写于 作者: O openharmony_ci 提交者: Gitee

!3674 修改test.json文件,创建资源存放文件目录、修改媒体库打开文件权限大小写

Merge pull request !3674 from FULIZHONG/OpenHarmony-3.1-Release
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
}, },
{
"type": "ShellKit",
"run-command": [
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files"
],
"teardown-command":[
]
},
{ {
"type": "PushKit", "type": "PushKit",
"pre-push": [ "pre-push": [
...@@ -44,13 +52,6 @@ ...@@ -44,13 +52,6 @@
"./resource/audio/97.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/", "./resource/audio/97.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/",
"./resource/audio/98.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/" "./resource/audio/98.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/"
] ]
},
{
"type": "ShellKit",
"run-command": [
],
"teardown-command":[
]
} }
] ]
} }
...@@ -187,7 +187,7 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -187,7 +187,7 @@ describe('RecorderLocalTestAudioAPI', function () {
} }
let fetchFileResult = await mediaTest.getFileAssets(fetchOp); let fetchFileResult = await mediaTest.getFileAssets(fetchOp);
fileAsset = await fetchFileResult.getAllObject(); fileAsset = await fetchFileResult.getAllObject();
fdNumber = await fileAsset[0].open('Rw'); fdNumber = await fileAsset[0].open('rw');
fdPath = "fd://" + fdNumber.toString(); fdPath = "fd://" + fdNumber.toString();
} }
} }
......
...@@ -129,7 +129,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -129,7 +129,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
} }
let fetchFileResult = await mediaTest.getFileAssets(fetchOp); let fetchFileResult = await mediaTest.getFileAssets(fetchOp);
fileAsset = await fetchFileResult.getAllObject(); fileAsset = await fetchFileResult.getAllObject();
fdNumber = await fileAsset[0].open('Rw'); fdNumber = await fileAsset[0].open('rw');
fdPath = "fd://" + fdNumber.toString(); fdPath = "fd://" + fdNumber.toString();
} }
} }
......
...@@ -15,18 +15,19 @@ ...@@ -15,18 +15,19 @@
"cleanup-apps": true "cleanup-apps": true
}, },
{ {
"type": "PushKit", "type": "ShellKit",
"pre-push": [ "run-command": [
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files"
], ],
"push": [ "teardown-command":[
"./resource/audio/H264_AAC.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files/"
] ]
}, },
{ {
"type": "ShellKit", "type": "PushKit",
"run-command": [ "pre-push": [
], ],
"teardown-command":[ "push": [
"./resource/audio/H264_AAC.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files/"
] ]
} }
] ]
......
...@@ -133,7 +133,7 @@ describe('VideoRecorderAPICallbackTest', function () { ...@@ -133,7 +133,7 @@ describe('VideoRecorderAPICallbackTest', function () {
} }
let fetchFileResult = await mediaTest.getFileAssets(fetchOp); let fetchFileResult = await mediaTest.getFileAssets(fetchOp);
fileAsset = await fetchFileResult.getAllObject(); fileAsset = await fetchFileResult.getAllObject();
fdNumber = await fileAsset[0].open('Rw'); fdNumber = await fileAsset[0].open('rw');
fdPath = "fd://" + fdNumber.toString(); fdPath = "fd://" + fdNumber.toString();
} }
} }
......
...@@ -167,7 +167,7 @@ describe('VideoRecorderFuncCallbackTest', function () { ...@@ -167,7 +167,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
} }
let fetchFileResult = await mediaTest.getFileAssets(fetchOp); let fetchFileResult = await mediaTest.getFileAssets(fetchOp);
fileAsset = await fetchFileResult.getAllObject(); fileAsset = await fetchFileResult.getAllObject();
fdNumber = await fileAsset[0].open('Rw'); fdNumber = await fileAsset[0].open('rw');
fdPath = "fd://" + fdNumber.toString(); fdPath = "fd://" + fdNumber.toString();
} }
} }
...@@ -789,7 +789,7 @@ describe('VideoRecorderFuncCallbackTest', function () { ...@@ -789,7 +789,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2200', 0, async function (done) { it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2200', 0, async function (done) {
await getFd('46.mp4'); await getFd('46.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 20; configFile.videoFrameRate = 20;
let videoRecorder = null; let videoRecorder = null;
let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT); let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT);
eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done); eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done);
...@@ -806,7 +806,7 @@ describe('VideoRecorderFuncCallbackTest', function () { ...@@ -806,7 +806,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2300', 0, async function (done) { it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2300', 0, async function (done) {
await getFd('47.mp4'); await getFd('47.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 30; configFile.videoFrameRate = 30;
let videoRecorder = null; let videoRecorder = null;
let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT); let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT);
eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done); eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done);
...@@ -823,7 +823,7 @@ describe('VideoRecorderFuncCallbackTest', function () { ...@@ -823,7 +823,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2400', 0, async function (done) { it('SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2400', 0, async function (done) {
await getFd('48.mp4'); await getFd('48.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 60; configFile.videoFrameRate = 60;
let videoRecorder = null; let videoRecorder = null;
let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT); let mySteps = new Array(CREATE_EVENT, PREPARE_EVENT, GETSURFACE_EVENT, START_EVENT, RELEASE_EVENT, END_EVENT);
eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done); eventEmitter.emit(mySteps[0], videoRecorder, mySteps, done);
......
...@@ -167,7 +167,7 @@ describe('VideoRecorderFuncPromiseTest', function () { ...@@ -167,7 +167,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
} }
let fetchFileResult = await mediaTest.getFileAssets(fetchOp); let fetchFileResult = await mediaTest.getFileAssets(fetchOp);
fileAsset = await fetchFileResult.getAllObject(); fileAsset = await fetchFileResult.getAllObject();
fdNumber = await fileAsset[0].open('Rw'); fdNumber = await fileAsset[0].open('rw');
fdPath = "fd://" + fdNumber.toString(); fdPath = "fd://" + fdNumber.toString();
} }
} }
...@@ -1422,7 +1422,7 @@ describe('VideoRecorderFuncPromiseTest', function () { ...@@ -1422,7 +1422,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let videoOutput; let videoOutput;
await getFd('43.mp4'); await getFd('43.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 20; configFile.videoFrameRate = 20;
await media.createVideoRecorder().then((recorder) => { await media.createVideoRecorder().then((recorder) => {
console.info('case createVideoRecorder called'); console.info('case createVideoRecorder called');
if (typeof (recorder) != 'undefined') { if (typeof (recorder) != 'undefined') {
...@@ -1471,7 +1471,7 @@ describe('VideoRecorderFuncPromiseTest', function () { ...@@ -1471,7 +1471,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let videoOutput; let videoOutput;
await getFd('44.mp4'); await getFd('44.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 30; configFile.videoFrameRate = 30;
await media.createVideoRecorder().then((recorder) => { await media.createVideoRecorder().then((recorder) => {
console.info('case createVideoRecorder called'); console.info('case createVideoRecorder called');
if (typeof (recorder) != 'undefined') { if (typeof (recorder) != 'undefined') {
...@@ -1520,7 +1520,7 @@ describe('VideoRecorderFuncPromiseTest', function () { ...@@ -1520,7 +1520,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let videoOutput; let videoOutput;
await getFd('45.mp4'); await getFd('45.mp4');
videoConfig.url = fdPath; videoConfig.url = fdPath;
videoConfig.videoFrameRate = 60; configFile.videoFrameRate = 60;
await media.createVideoRecorder().then((recorder) => { await media.createVideoRecorder().then((recorder) => {
console.info('case createVideoRecorder called'); console.info('case createVideoRecorder called');
if (typeof (recorder) != 'undefined') { if (typeof (recorder) != 'undefined') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册