提交 3534c0e7 编写于 作者: T tongtongdad

<liwei200@hisilicon.com>

Signed-off-by: Ntongtongdad <liwei200@hisilicon.com>
上级 71694af4
...@@ -798,7 +798,7 @@ describe('Image', function () { ...@@ -798,7 +798,7 @@ describe('Image', function () {
var readArr = new Uint8Array(readArea.pixels); var readArr = new Uint8Array(readArea.pixels);
var res = true; var res = true;
for (var i = 0; i < readArr.length; i++) { for (var i = 0; i < readArr.length; i++) {
if (readArr[i] == 0) { if (readArr[i] != tc_022buf[i]) {
res = false; res = false;
console.info('TC_022-1 failed'); console.info('TC_022-1 failed');
expect(false).assertTrue(); expect(false).assertTrue();
...@@ -4614,7 +4614,7 @@ describe('Image', function () { ...@@ -4614,7 +4614,7 @@ describe('Image', function () {
imageSourceApi.getImageProperty("BitsPerSample") imageSourceApi.getImageProperty("BitsPerSample")
.then(data => { .then(data => {
console.info('TC_171 BitsPerSample ' + data); console.info('TC_171 BitsPerSample ' + data);
expect(data != undefined && data != '' ).assertTrue(); expect(data != undefined).assertTrue();
done(); done();
}) })
.catch(error => { .catch(error => {
...@@ -4914,7 +4914,7 @@ describe('Image', function () { ...@@ -4914,7 +4914,7 @@ describe('Image', function () {
done(); done();
}else{ }else{
console.info('TC_172 BitsPerSample ' + data); console.info('TC_172 BitsPerSample ' + data);
expect(data != undefined && data != '' ).assertTrue(); expect(data != undefined).assertTrue();
done(); done();
} }
}) })
...@@ -5204,7 +5204,7 @@ describe('Image', function () { ...@@ -5204,7 +5204,7 @@ describe('Image', function () {
done(); done();
}else{ }else{
console.info('TC_173 BitsPerSample ' + data); console.info('TC_173 BitsPerSample ' + data);
expect(data != '9999' && data != undefined && data != '').assertTrue(); expect(data != '9999' && data != undefined).assertTrue();
done(); done();
} }
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册