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

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

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