未验证 提交 7b19b375 编写于 作者: O openharmony_ci 提交者: Gitee

!7304 【ArkUI子系统】修改失败用例

Merge pull request !7304 from hekun/monthly_20221018
...@@ -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.
先完成此消息的编辑!
想要评论请 注册