提交 9cade100 编写于 作者: H hekun

fix the fail case

Signed-off-by: Nhekun <hekun18@huawei.com>
上级 ff8a0cc4
...@@ -66,12 +66,12 @@ export default function imageJsunit() { ...@@ -66,12 +66,12 @@ export default function imageJsunit() {
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("imageTest_0200 obj.$attrs.src is: " + obj.$attrs.src); console.info("imageTest_0200 obj.$attrs.src is: " + obj.$attrs.src);
console.info("imageTest_0200 obj.obj.$type is: " + obj.$type); console.info("imageTest_0200 obj.obj.$type is: " + obj.$type);
var res = obj.$attrs.src.indexOf('RAWFILE/test.png'); var res = obj.$attrs.src.indexOf('rawfile/test.png');
console.info("imageTest_0200 result is: " + res); console.info("imageTest_0200 result is: " + res);
var sres = obj.$attrs.src.slice(res, res + 16); var sres = obj.$attrs.src.slice(res, res + 16);
console.info("imageTest_0200 slice result is: " + sres); console.info("imageTest_0200 slice result is: " + sres);
expect(obj.$type).assertEqual('Image'); expect(obj.$type).assertEqual('Image');
expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('RAWFILE/test.png'); expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('rawfile/test.png');
console.info('imageTest_0200 END'); console.info('imageTest_0200 END');
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册