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