提交 555f3195 编写于 作者: L ling990

modify testcases Signed-off-by: ling990 <liling96@huawei.com>

Signed-off-by: Nling990 <ling990@qq.com>
上级 6099021f
......@@ -301,6 +301,7 @@ describe('AudioDecoderFuncCallback', function () {
done();
} else {
fdRead = res.fd;
console.info("case pathName is : " + pathName);
console.info("case fdRead is: " + fdRead);
}
})
......@@ -1192,11 +1193,11 @@ describe('AudioDecoderFuncCallback', function () {
expect(err).assertUndefined();
console.info(`case configure 2`);
resetParam();
readFile(AUDIOPATH3)
readpath = AUDIOPATH3;
savepath = 'audioDecode_function_callback_07_2.pcm';
await getFdWrite(savepath);
await getFdRead(readpath, done);
readFile(AUDIOPATH3)
workdoneAtEOS = true;
ES = [0, 2116, 2093, 2886, 2859, 2798, 2778, 2752, 2752, 2754, 2720, 2898, 2829,
2806, 2796, 2786, 2774, 2758, 2741, 3489, 3342, 3272, 3167, 3048, 3060, 2919,
......
......@@ -311,6 +311,7 @@ describe('AudioDecoderFuncPromise', function () {
done();
} else {
fdRead = res.fd;
console.info("case pathName is: " + pathName);
console.info("case fdRead is: " + fdRead);
}
})
......@@ -994,10 +995,10 @@ describe('AudioDecoderFuncPromise', function () {
resetParam();
readFile(AUDIOPATH3);
}, failCallback).catch(failCatch);
readpath = AUDIOPATH3;
savepath = 'audioDecode_function_promise_07_2.pcm';
await getFdWrite(savepath);
await getFdRead(readpath, done);
readpath = AUDIOPATH3;
workdoneAtEOS = true;
ES = [0, 2116, 2093, 2886, 2859, 2798, 2778, 2752, 2752, 2754, 2720, 2898, 2829,
2806, 2796, 2786, 2774, 2758, 2741, 3489, 3342, 3272, 3167, 3048, 3060, 2919,
......
......@@ -120,6 +120,7 @@ describe('AudioEncoderFuncCallback', function () {
done();
} else {
fdRead = res.fd;
console.info("case pathName is: " + pathName);
console.info("case fdRead is: " + fdRead);
}
})
......@@ -908,11 +909,11 @@ describe('AudioEncoderFuncCallback', function () {
expect(err).assertUndefined();
console.info(`case configure 2`);
resetParam();
readFile(AUDIOPATH)
readpath = AUDIOPATH;
savepath = 'audioEncode_function_callback_06_2.aac';
await getFdWrite(savepath);
await getFdRead(readpath, done);
readFile(AUDIOPATH);
workdoneAtEOS = true;
hasreconfigured = true;
eventEmitter.emit('prepare');
......
......@@ -130,6 +130,7 @@ describe('AudioEncoderFuncPromise', function () {
done();
} else {
fdRead = res.fd;
console.info("case pathName is: " + pathName);
console.info("case fdRead is: " + fdRead);
}
})
......@@ -758,12 +759,12 @@ describe('AudioEncoderFuncPromise', function () {
await audioEncodeProcessor.configure(mediaDescription2).then(() => {
console.info("configure 2 success");
resetParam();
readFile(AUDIOPATH);
}, failCallback).catch(failCatch);
readpath = AUDIOPATH;
savepath = 'audioEncode_function_promise_06_2.aac';
await getFdWrite(savepath);
await getFdRead(readpath, done);
readFile(AUDIOPATH);
workdoneAtEOS = true;
setCallback(savepath, done);
await audioEncodeProcessor.prepare().then(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册