未验证 提交 9e047764 编写于 作者: J Jason Simmons 提交者: GitHub

Update the exception thrown for invalid data in the codec test (#9929)

上级 678ce2e8
......@@ -28,8 +28,8 @@ void main() {
test('Fails with invalid data', () async {
final Uint8List data = Uint8List.fromList(<int>[1, 2, 3]);
expect(
ui.instantiateImageCodec(data),
throwsA(exceptionWithMessage('operation failed'))
() => ui.instantiateImageCodec(data),
throwsA(exceptionWithMessage('Could not instantiate image codec.'))
);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册