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

!8212 fix receiver xts

Merge pull request !8212 from renhw001/master
...@@ -54,10 +54,12 @@ export default function ImageReceiver() { ...@@ -54,10 +54,12 @@ export default function ImageReceiver() {
image.createImageReceiver(wid, hei, fmt, cap); image.createImageReceiver(wid, hei, fmt, cap);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} catch (error) { } catch (error) {
expect(error.code == 1).assertTrue(); expect(error.code == 1).assertTrue();
console.info(`${testNum} err message` + error); console.info(`${testNum} err message` + error);
done(); done();
return;
} }
} }
...@@ -67,11 +69,13 @@ export default function ImageReceiver() { ...@@ -67,11 +69,13 @@ export default function ImageReceiver() {
if (receiver == undefined) { if (receiver == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
var error = receiver.checkDeviceTest; var error = receiver.checkDeviceTest;
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
if (once) { if (once) {
...@@ -82,6 +86,7 @@ export default function ImageReceiver() { ...@@ -82,6 +86,7 @@ export default function ImageReceiver() {
if (img == undefined) { if (img == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(img.size.width == WIDTH).assertTrue(); expect(img.size.width == WIDTH).assertTrue();
expect(img.size.height == HEIGHT).assertTrue(); expect(img.size.height == HEIGHT).assertTrue();
...@@ -94,10 +99,12 @@ export default function ImageReceiver() { ...@@ -94,10 +99,12 @@ export default function ImageReceiver() {
await img.getComponent(param); await img.getComponent(param);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} catch (error) { } catch (error) {
expect(error.code == 1).assertTrue(); expect(error.code == 1).assertTrue();
console.log(`${testNum} error msg: ` + error); console.log(`${testNum} error msg: ` + error);
done(); done();
return;
} }
} }
}); });
...@@ -113,11 +120,13 @@ export default function ImageReceiver() { ...@@ -113,11 +120,13 @@ export default function ImageReceiver() {
if (receiver == undefined) { if (receiver == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
var error = receiver.checkDeviceTest; var error = receiver.checkDeviceTest;
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
if (once) { if (once) {
...@@ -128,6 +137,7 @@ export default function ImageReceiver() { ...@@ -128,6 +137,7 @@ export default function ImageReceiver() {
if (img == undefined) { if (img == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(img.size.width == WIDTH).assertTrue(); expect(img.size.width == WIDTH).assertTrue();
expect(img.size.height == HEIGHT).assertTrue(); expect(img.size.height == HEIGHT).assertTrue();
...@@ -140,11 +150,13 @@ export default function ImageReceiver() { ...@@ -140,11 +150,13 @@ export default function ImageReceiver() {
img.getComponent(param, (err, component) => { img.getComponent(param, (err, component) => {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} catch (error) { } catch (error) {
expect(error.code == 1).assertTrue(); expect(error.code == 1).assertTrue();
console.log(`${testNum} error msg: ` + error); console.log(`${testNum} error msg: ` + error);
done(); done();
return;
} }
} }
}); });
...@@ -165,6 +177,7 @@ export default function ImageReceiver() { ...@@ -165,6 +177,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
if (once) { if (once) {
...@@ -175,6 +188,7 @@ export default function ImageReceiver() { ...@@ -175,6 +188,7 @@ export default function ImageReceiver() {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(img.size.width == WIDTH).assertTrue(); expect(img.size.width == WIDTH).assertTrue();
expect(img.size.height == HEIGHT).assertTrue(); expect(img.size.height == HEIGHT).assertTrue();
...@@ -194,11 +208,13 @@ export default function ImageReceiver() { ...@@ -194,11 +208,13 @@ export default function ImageReceiver() {
expect(component.byteBuffer != undefined).assertTrue(); expect(component.byteBuffer != undefined).assertTrue();
checkStride(component.rowStride, component.pixelStride); checkStride(component.rowStride, component.pixelStride);
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
console.log(`${testNum} error:` + error); console.log(`${testNum} error:` + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} }
}); });
...@@ -219,6 +235,7 @@ export default function ImageReceiver() { ...@@ -219,6 +235,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
if (once) { if (once) {
...@@ -229,6 +246,7 @@ export default function ImageReceiver() { ...@@ -229,6 +246,7 @@ export default function ImageReceiver() {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(img.size.width == WIDTH).assertTrue(); expect(img.size.width == WIDTH).assertTrue();
expect(img.size.height == HEIGHT).assertTrue(); expect(img.size.height == HEIGHT).assertTrue();
...@@ -242,12 +260,14 @@ export default function ImageReceiver() { ...@@ -242,12 +260,14 @@ export default function ImageReceiver() {
expect(false).assertTrue(); expect(false).assertTrue();
console.log(`${testNum} geterror: ` + err); console.log(`${testNum} geterror: ` + err);
done(); done();
return;
} else { } else {
expect(component != undefined).assertTrue(); expect(component != undefined).assertTrue();
expect(component.componentType == param).assertTrue(); expect(component.componentType == param).assertTrue();
expect(component.byteBuffer != undefined).assertTrue(); expect(component.byteBuffer != undefined).assertTrue();
checkStride(component.rowStride, component.pixelStride); checkStride(component.rowStride, component.pixelStride);
done(); done();
return;
} }
}); });
} }
...@@ -263,12 +283,14 @@ export default function ImageReceiver() { ...@@ -263,12 +283,14 @@ export default function ImageReceiver() {
if (receiver == undefined) { if (receiver == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
try { try {
var error = receiver.checkDeviceTest; var error = receiver.checkDeviceTest;
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on(param, () => { receiver.on(param, () => {
expect(false).assertTrue(); expect(false).assertTrue();
...@@ -277,6 +299,7 @@ export default function ImageReceiver() { ...@@ -277,6 +299,7 @@ export default function ImageReceiver() {
expect(error.code == 1).assertTrue(); expect(error.code == 1).assertTrue();
console.log(`${testNum} error msg: ` + error); console.log(`${testNum} error msg: ` + error);
done(); done();
return;
} }
var dummy = receiver.test; var dummy = receiver.test;
} }
...@@ -302,12 +325,14 @@ export default function ImageReceiver() { ...@@ -302,12 +325,14 @@ export default function ImageReceiver() {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("receiver_001 undefined"); console.info("receiver_001 undefined");
done(); done();
return;
} else { } else {
expect(receiver.size.width == WIDTH).assertTrue(); expect(receiver.size.width == WIDTH).assertTrue();
expect(receiver.size.height == HEIGHT).assertTrue(); expect(receiver.size.height == HEIGHT).assertTrue();
expect(receiver.capacity == CAPACITY).assertTrue(); expect(receiver.capacity == CAPACITY).assertTrue();
expect(receiver.format == FORMATJPEG).assertTrue(); expect(receiver.format == FORMATJPEG).assertTrue();
done(); done();
return;
} }
}); });
...@@ -516,12 +541,14 @@ export default function ImageReceiver() { ...@@ -516,12 +541,14 @@ export default function ImageReceiver() {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_CREATEIMAGERECEIVER_0400 undefined"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_CREATEIMAGERECEIVER_0400 undefined");
done(); done();
return;
} else { } else {
expect(receiver.size.width == WIDTH).assertTrue(); expect(receiver.size.width == WIDTH).assertTrue();
expect(receiver.size.height == HEIGHT).assertTrue(); expect(receiver.size.height == HEIGHT).assertTrue();
expect(receiver.capacity == CAPACITY).assertTrue(); expect(receiver.capacity == CAPACITY).assertTrue();
expect(receiver.format == FORMATJPEG).assertTrue(); expect(receiver.format == FORMATJPEG).assertTrue();
done(); done();
return;
} }
}); });
...@@ -548,15 +575,18 @@ export default function ImageReceiver() { ...@@ -548,15 +575,18 @@ export default function ImageReceiver() {
); );
expect(isString(id)).assertTrue(); expect(isString(id)).assertTrue();
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
console.log("SUB_GRAPHIC_IMAGE_RECEIVER_GETRECEIVINGSURFACEID_PROMISE_0100 error: " + error); console.log("SUB_GRAPHIC_IMAGE_RECEIVER_GETRECEIVINGSURFACEID_PROMISE_0100 error: " + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} }
}); });
...@@ -581,11 +611,13 @@ export default function ImageReceiver() { ...@@ -581,11 +611,13 @@ export default function ImageReceiver() {
); );
expect(isString(id)).assertTrue(); expect(isString(id)).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_GETRECEIVINGSURFACEID_CALLBACK_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_GETRECEIVINGSURFACEID_CALLBACK_0100 finished");
done(); done();
return;
} }
}); });
...@@ -607,15 +639,18 @@ export default function ImageReceiver() { ...@@ -607,15 +639,18 @@ export default function ImageReceiver() {
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0100 release "); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0100 release ");
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0100 finished");
done(); done();
return;
} }
}); });
...@@ -636,16 +671,19 @@ export default function ImageReceiver() { ...@@ -636,16 +671,19 @@ export default function ImageReceiver() {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 release fail"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 release fail");
done(); done();
return;
} else { } else {
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 release call back"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 release call back");
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
return;
} }
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_CALLBACK_0100 finished");
done(); done();
return;
} }
}); });
...@@ -665,6 +703,7 @@ export default function ImageReceiver() { ...@@ -665,6 +703,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
var dummy = receiver.test; var dummy = receiver.test;
if (receiver != undefined) { if (receiver != undefined) {
...@@ -674,16 +713,19 @@ export default function ImageReceiver() { ...@@ -674,16 +713,19 @@ export default function ImageReceiver() {
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 readLatestImage Success"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 readLatestImage Success");
expect(img != undefined).assertTrue(); expect(img != undefined).assertTrue();
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
console.log("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 error: " + error); console.log("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 error: " + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_PROMISE_0100 finished");
done(); done();
return;
} }
}); });
...@@ -703,6 +745,7 @@ export default function ImageReceiver() { ...@@ -703,6 +745,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
var dummy = receiver.test; var dummy = receiver.test;
if (receiver != undefined) { if (receiver != undefined) {
...@@ -712,11 +755,13 @@ export default function ImageReceiver() { ...@@ -712,11 +755,13 @@ export default function ImageReceiver() {
); );
expect(img != undefined).assertTrue(); expect(img != undefined).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_CALLBACK_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READLATESTIMAGE_CALLBACK_0100 finished");
done(); done();
return;
} }
}); });
...@@ -736,6 +781,7 @@ export default function ImageReceiver() { ...@@ -736,6 +781,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
var dummy = receiver.test; var dummy = receiver.test;
expect(receiver != undefined).assertTrue(); expect(receiver != undefined).assertTrue();
...@@ -746,16 +792,19 @@ export default function ImageReceiver() { ...@@ -746,16 +792,19 @@ export default function ImageReceiver() {
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 readNextImage Success"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 readNextImage Success");
expect(img != undefined).assertTrue(); expect(img != undefined).assertTrue();
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
console.log("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 error: " + error); console.log("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 error: " + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_PROMISE_0100 finished");
done(); done();
return;
} }
}); });
...@@ -775,6 +824,7 @@ export default function ImageReceiver() { ...@@ -775,6 +824,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
var dummy = receiver.test; var dummy = receiver.test;
if (receiver != undefined) { if (receiver != undefined) {
...@@ -782,18 +832,21 @@ export default function ImageReceiver() { ...@@ -782,18 +832,21 @@ export default function ImageReceiver() {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
console.info( console.info(
"SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_CALLBACK_0100 readNextImage call back Success" "SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_CALLBACK_0100 readNextImage call back Success"
); );
expect(img != undefined).assertTrue(); expect(img != undefined).assertTrue();
done(); done();
return;
} }
}); });
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_CALLBACK_0100 finished"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_READNEXTIMAGE_CALLBACK_0100 finished");
done(); done();
return;
} }
}); });
...@@ -869,11 +922,13 @@ export default function ImageReceiver() { ...@@ -869,11 +922,13 @@ export default function ImageReceiver() {
if (receiver == undefined) { if (receiver == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
var error = receiver.checkDeviceTest; var error = receiver.checkDeviceTest;
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
let pass = false; let pass = false;
receiver.on("imageArrival", (err) => { receiver.on("imageArrival", (err) => {
...@@ -881,6 +936,7 @@ export default function ImageReceiver() { ...@@ -881,6 +936,7 @@ export default function ImageReceiver() {
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RECEIVERON_0100 on err" + err); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RECEIVERON_0100 on err" + err);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
pass = true; pass = true;
console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RECEIVERON_0100 on call back IN"); console.info("SUB_GRAPHIC_IMAGE_RECEIVER_RECEIVERON_0100 on call back IN");
...@@ -891,6 +947,7 @@ export default function ImageReceiver() { ...@@ -891,6 +947,7 @@ export default function ImageReceiver() {
await sleep(2000); await sleep(2000);
expect(pass).assertTrue(); expect(pass).assertTrue();
done(); done();
return;
} }
}); });
...@@ -917,6 +974,7 @@ export default function ImageReceiver() { ...@@ -917,6 +974,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
expect(true).assertTrue(); expect(true).assertTrue();
...@@ -930,6 +988,7 @@ export default function ImageReceiver() { ...@@ -930,6 +988,7 @@ export default function ImageReceiver() {
if (img == undefined) { if (img == undefined) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(img.size.width == WIDTH).assertTrue(); expect(img.size.width == WIDTH).assertTrue();
expect(img.size.height == HEIGHT).assertTrue(); expect(img.size.height == HEIGHT).assertTrue();
...@@ -943,11 +1002,13 @@ export default function ImageReceiver() { ...@@ -943,11 +1002,13 @@ export default function ImageReceiver() {
.then(() => { .then(() => {
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
return;
}) })
.catch((error) => { .catch((error) => {
console.log("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0200 err" + error); console.log("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0200 err" + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
} }
}) })
...@@ -955,6 +1016,7 @@ export default function ImageReceiver() { ...@@ -955,6 +1016,7 @@ export default function ImageReceiver() {
console.log("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0200 readLatestImage err" + error); console.log("SUB_GRAPHIC_IMAGE_RECEIVER_RELEASE_PROMISE_0200 readLatestImage err" + error);
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
}); });
}); });
...@@ -981,6 +1043,7 @@ export default function ImageReceiver() { ...@@ -981,6 +1043,7 @@ export default function ImageReceiver() {
if (DEVICE_CODE == error) { if (DEVICE_CODE == error) {
expect(error == DEVICE_CODE).assertTrue(); expect(error == DEVICE_CODE).assertTrue();
done(); done();
return;
} }
receiver.on("imageArrival", () => { receiver.on("imageArrival", () => {
expect(true).assertTrue(); expect(true).assertTrue();
...@@ -1005,9 +1068,11 @@ export default function ImageReceiver() { ...@@ -1005,9 +1068,11 @@ export default function ImageReceiver() {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
done(); done();
return;
} else { } else {
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
return;
} }
}); });
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册