mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-18 17:07:19 +02:00
feat(metadata): show current cover dimensions
This commit is contained in:
@@ -31,4 +31,22 @@ void main() {
|
||||
throwsArgumentError,
|
||||
);
|
||||
});
|
||||
|
||||
test('cover dimensions require positive width and height', () {
|
||||
expect(
|
||||
FFmpegService.imageDimensionsFromProperties({
|
||||
'width': '1900',
|
||||
'height': 1500,
|
||||
}),
|
||||
(width: 1900, height: 1500),
|
||||
);
|
||||
expect(
|
||||
FFmpegService.imageDimensionsFromProperties({'width': 0, 'height': 1500}),
|
||||
isNull,
|
||||
);
|
||||
expect(
|
||||
FFmpegService.imageDimensionsFromProperties({'width': 1500}),
|
||||
isNull,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user