提交 8f85e614 编写于 作者: H hekun

fix the code

Signed-off-by: Nhekun <hekun18@huawei.com>
上级 e4838653
......@@ -92,8 +92,8 @@ export default function colorSpaceManagerTest(context, windowStage, abilityStora
expect(colorSpaceName).assertEqual(colorSpaceManager.ColorSpace.UNKNOWN);
done();
} catch (err) {
console.log('test enum value of ColorSpace Manager error ' + JSON.stringify(err));
expect.assertFail();
console.log('test enum value of ColorSpace Manager not support error ' + JSON.stringify(err));
expect(err.code == 18600001).assertTrue();
done();
}
})
......@@ -176,8 +176,8 @@ export default function colorSpaceManagerTest(context, windowStage, abilityStora
expect(colorSpaceName).assertEqual(colorSpaceManager.ColorSpace.UNKNOWN);
done();
} catch (err) {
console.log('test enum value of ColorSpace Manager error ' + JSON.stringify(err));
expect.assertFail();
console.log('test enum value of ColorSpace Manager not support error ' + JSON.stringify(err));
expect(err.code == 18600001).assertTrue();
done();
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册