提交 6099021f 编写于 作者: L ling990

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

Signed-off-by: Nling990 <ling990@qq.com>
上级 76a59d20
...@@ -211,7 +211,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -211,7 +211,7 @@ describe('AudioEncoderFuncCallback', function () {
try{ try{
let head = new ArrayBuffer(7); let head = new ArrayBuffer(7);
addADTStoPacket(head, len); addADTStoPacket(head, len);
let res = fileio.write(fdWrite, head, {length: 7}); let res = fileio.writeSync(fdWrite, head, {length: 7});
console.info('case fileio.write head success'); console.info('case fileio.write head success');
} catch(e) { } catch(e) {
console.info('case fileio.write head error is ' + e); console.info('case fileio.write head error is ' + e);
...@@ -220,7 +220,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -220,7 +220,7 @@ describe('AudioEncoderFuncCallback', function () {
function writeFile(path, buf, len) { function writeFile(path, buf, len) {
try{ try{
let res = fileio.write(fdWrite, buf, {length: len}); let res = fileio.writeSync(fdWrite, buf, {length: len});
console.info('case fileio.write buffer success'); console.info('case fileio.write buffer success');
} catch(e) { } catch(e) {
console.info('case fileio.write buffer error is ' + e); console.info('case fileio.write buffer error is ' + e);
......
...@@ -220,7 +220,7 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -220,7 +220,7 @@ describe('AudioEncoderFuncPromise', function () {
try{ try{
let head = new ArrayBuffer(7); let head = new ArrayBuffer(7);
addADTStoPacket(head, len); addADTStoPacket(head, len);
let res = fileio.write(fdWrite, head, {length: 7}); let res = fileio.writeSync(fdWrite, head, {length: 7});
console.info('case fileio.write head success'); console.info('case fileio.write head success');
} catch(e) { } catch(e) {
console.info('case fileio.write head error is ' + e); console.info('case fileio.write head error is ' + e);
...@@ -229,7 +229,7 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -229,7 +229,7 @@ describe('AudioEncoderFuncPromise', function () {
function writeFile(path, buf, len) { function writeFile(path, buf, len) {
try{ try{
let res = fileio.write(fdWrite, buf, {length: len}); let res = fileio.writeSync(fdWrite, buf, {length: len});
console.info('case fileio.write buffer success'); console.info('case fileio.write buffer success');
} catch(e) { } catch(e) {
console.info('case fileio.write buffer error is ' + e); console.info('case fileio.write buffer error is ' + e);
......
...@@ -158,7 +158,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () { ...@@ -158,7 +158,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
function writeFile(buf, len) { function writeFile(buf, len) {
try{ try{
let res = fileio.write(fdWrite, buf, {length: len}); let res = fileio.writeSync(fdWrite, buf, {length: len});
console.info('case fileio.write buffer success'); console.info('case fileio.write buffer success');
} catch(e) { } catch(e) {
console.info('case fileio.write buffer error is ' + e); console.info('case fileio.write buffer error is ' + e);
......
...@@ -178,7 +178,7 @@ describe('videoSoftwareEncoderFuncPromise', function () { ...@@ -178,7 +178,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
function writeFile(buf, len) { function writeFile(buf, len) {
try{ try{
let res = fileio.write(fdWrite, buf, {length: len}); let res = fileio.writeSync(fdWrite, buf, {length: len});
console.info('case fileio.write buffer success'); console.info('case fileio.write buffer success');
} catch(e) { } catch(e) {
console.info('case fileio.write buffer error is ' + e); console.info('case fileio.write buffer error is ' + e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册