mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-13 05:19:04 +02:00
style(dart): apply pinned formatter to existing files
Normalize three existing formatting differences with the pinned Dart formatter. No behavior changes.
This commit is contained in:
@@ -87,7 +87,8 @@ class DownloadedEmbeddedCoverResolver {
|
||||
static bool _drainScheduled = false;
|
||||
static final Map<String, int> _cacheGeneration = <String, int>{};
|
||||
static final Set<String> _pendingRefresh = <String>{};
|
||||
static final _pendingPreviewValidation = <String, _PendingPreviewValidation>{};
|
||||
static final _pendingPreviewValidation =
|
||||
<String, _PendingPreviewValidation>{};
|
||||
static Future<void>? _previewValidationFuture;
|
||||
static const _previewValidationInterval = Duration(seconds: 5);
|
||||
static const _previewValidationBatchSize = 8;
|
||||
|
||||
@@ -47,14 +47,11 @@ void main() {
|
||||
normalized.map((track) => track.albumArtist),
|
||||
everyElement('Falling In Reverse'),
|
||||
);
|
||||
expect(
|
||||
normalized.map((track) => track.artistName),
|
||||
<String>[
|
||||
'Falling In Reverse',
|
||||
'Falling In Reverse, Jelly Roll',
|
||||
'Falling In Reverse, Marilyn Manson',
|
||||
],
|
||||
);
|
||||
expect(normalized.map((track) => track.artistName), <String>[
|
||||
'Falling In Reverse',
|
||||
'Falling In Reverse, Jelly Roll',
|
||||
'Falling In Reverse, Marilyn Manson',
|
||||
]);
|
||||
});
|
||||
|
||||
test('preserves a stable joint album credit', () {
|
||||
|
||||
@@ -296,26 +296,32 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
test('waits on one progress delta stream and preserves concurrent items', () {
|
||||
expect(
|
||||
RegExp(
|
||||
r'Gobackend\.waitForAllDownloadProgressDelta\(',
|
||||
).allMatches(workerSnapshotSource),
|
||||
hasLength(1),
|
||||
);
|
||||
expect(
|
||||
workerSnapshotSource,
|
||||
isNot(contains('Gobackend.getAllDownloadProgress()')),
|
||||
);
|
||||
expect(workerSnapshotSource, contains('"item_deltas"'));
|
||||
expect(
|
||||
workerSnapshotSource,
|
||||
contains('progressItemIds = orderedItemIds'),
|
||||
);
|
||||
expect(workerSnapshotSource, contains('progressCoordinatorEpoch'));
|
||||
expect(workerSnapshotSource, contains('nativeWorkerProgressEpoch.get()'));
|
||||
expect(nativeWorkerProviderSource, contains("snapshot['item_deltas']"));
|
||||
});
|
||||
test(
|
||||
'waits on one progress delta stream and preserves concurrent items',
|
||||
() {
|
||||
expect(
|
||||
RegExp(
|
||||
r'Gobackend\.waitForAllDownloadProgressDelta\(',
|
||||
).allMatches(workerSnapshotSource),
|
||||
hasLength(1),
|
||||
);
|
||||
expect(
|
||||
workerSnapshotSource,
|
||||
isNot(contains('Gobackend.getAllDownloadProgress()')),
|
||||
);
|
||||
expect(workerSnapshotSource, contains('"item_deltas"'));
|
||||
expect(
|
||||
workerSnapshotSource,
|
||||
contains('progressItemIds = orderedItemIds'),
|
||||
);
|
||||
expect(workerSnapshotSource, contains('progressCoordinatorEpoch'));
|
||||
expect(
|
||||
workerSnapshotSource,
|
||||
contains('nativeWorkerProgressEpoch.get()'),
|
||||
);
|
||||
expect(nativeWorkerProviderSource, contains("snapshot['item_deltas']"));
|
||||
},
|
||||
);
|
||||
|
||||
Set<String> historyTableColumns(String source) {
|
||||
final match = RegExp(
|
||||
|
||||
Reference in New Issue
Block a user