mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-09 17:34:13 +02:00
feat(metadata): show current cover dimensions
This commit is contained in:
1 parent
d4b617f49a
commit
7f4ace6d1b
3 files changed
+126
-2
No files matched your search
@@ -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