mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-26 12:52:40 +02:00
fix(library): show complete quality labels
This commit is contained in:
@@ -136,4 +136,24 @@ void main() {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
group('Library grid audio quality label', () {
|
||||
test('keeps both parts of detailed bit-depth labels', () {
|
||||
expect(
|
||||
formatLibraryGridAudioQualityLabel('16-bit/44.1kHz'),
|
||||
'16-bit/44.1kHz',
|
||||
);
|
||||
expect(
|
||||
formatLibraryGridAudioQualityLabel('16-bit/1411kbps'),
|
||||
'16-bit/1411kbps',
|
||||
);
|
||||
expect(isDetailedLibraryAudioQualityLabel('16-bit/44.1kHz'), isTrue);
|
||||
});
|
||||
|
||||
test('keeps bitrate-only grid labels compact', () {
|
||||
expect(formatLibraryGridAudioQualityLabel('FLAC 1760kbps'), '1760k');
|
||||
expect(formatLibraryGridAudioQualityLabel('Bitrate 1760kbps'), '1760k');
|
||||
expect(isDetailedLibraryAudioQualityLabel('FLAC 1760kbps'), isFalse);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user