Update the exception thrown for invalid data in the codec test (flutter/engine#9929)
This commit is contained in:
@@ -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.'))
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user