提交 f6537163 编写于 作者: H huangkaixing

adapter xts to js

Signed-off-by: Nhuangkaixing <huangkaixing@huawei.com>
上级 7fec50a7
...@@ -239,7 +239,7 @@ export default function ImageSource() { ...@@ -239,7 +239,7 @@ export default function ImageSource() {
} else { } else {
try { try {
console.info(`${testNum} getDelayTimePromise create imagesource success`); console.info(`${testNum} getDelayTimePromise create imagesource success`);
let delayTimes = await imageSourceApi.getDelayTime(); let delayTimes = await imageSourceApi.getDelayTimeList();
if (delayTimes != undefined) { if (delayTimes != undefined) {
console.info(`${testNum} getDelayTimePromise getDelayTime success`); console.info(`${testNum} getDelayTimePromise getDelayTime success`);
expect(true).assertTrue(); expect(true).assertTrue();
...@@ -270,7 +270,7 @@ export default function ImageSource() { ...@@ -270,7 +270,7 @@ export default function ImageSource() {
done(); done();
} else { } else {
console.info(`${testNum} getDelayTimeCallBack create imagesource success`); console.info(`${testNum} getDelayTimeCallBack create imagesource success`);
imageSourceApi.getDelayTime((err, delayTimes) => { imageSourceApi.getDelayTimeList((err, delayTimes) => {
if (err != undefined) { if (err != undefined) {
console.info(`${testNum} getDelayTimeCallBack getDelayTime failed err: ${err}`); console.info(`${testNum} getDelayTimeCallBack getDelayTime failed err: ${err}`);
expect(false).assertTrue(); expect(false).assertTrue();
......
...@@ -115,7 +115,7 @@ export default function imageGif() { ...@@ -115,7 +115,7 @@ export default function imageGif() {
} else { } else {
try { try {
console.info(`${testNum} getDelayTimePromise create imagesource success`); console.info(`${testNum} getDelayTimePromise create imagesource success`);
let delayTimes = await imageSourceApi.getDelayTime(); let delayTimes = await imageSourceApi.getDelayTimeList();
if (delayTimes != undefined) { if (delayTimes != undefined) {
console.info(`${testNum} getDelayTimePromise getDelayTime success`); console.info(`${testNum} getDelayTimePromise getDelayTime success`);
expect(true).assertTrue(); expect(true).assertTrue();
...@@ -147,7 +147,7 @@ export default function imageGif() { ...@@ -147,7 +147,7 @@ export default function imageGif() {
done(); done();
} else { } else {
console.info(`${testNum} getDelayTimeCallBack create imagesource success`); console.info(`${testNum} getDelayTimeCallBack create imagesource success`);
imageSourceApi.getDelayTime((err, delayTimes) => { imageSourceApi.getDelayTimeList((err, delayTimes) => {
if (err != undefined) { if (err != undefined) {
console.info(`${testNum} getDelayTimeCallBack getDelayTime failed err: ${err}`); console.info(`${testNum} getDelayTimeCallBack getDelayTime failed err: ${err}`);
expect(false).assertTrue(); expect(false).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册