style: apply dart format to six drifted sources
Formatting was clean through53288116and then drifted across three commits on 2026-07-30:1bf7aac7left one source unformatted,f13f5af6a second, anddaab4f1efour more. CI's Verify formatting job checks the whole tree, so it has had six files to report ever since. No pre-commit hook is installed in this checkout, so the aggregate check never ran locally to catch them. Formatted with the dart_style revision Dart 3.12.0 bundles, which is what the pinned Flutter 3.44.0 CI toolchain runs, rather than with a newer local SDK; the two disagree about some argument-list splits. The current stable formatter accepts this result as well, so both report the tree clean.
This commit is contained in:
@@ -20,9 +20,7 @@ void main() {
|
||||
});
|
||||
|
||||
test('captures effective forced-ness from the flag', () {
|
||||
final intent = SubtitleIntent.fromTrack(
|
||||
const SubtitleTrack(id: '4', language: 'fre', isForced: true),
|
||||
);
|
||||
final intent = SubtitleIntent.fromTrack(const SubtitleTrack(id: '4', language: 'fre', isForced: true));
|
||||
expect(intent!.forced, isTrue);
|
||||
});
|
||||
|
||||
@@ -54,7 +52,9 @@ void main() {
|
||||
|
||||
test('track references become intents with effective forced-ness', () {
|
||||
final demoted = SubtitlePreference.demoteToIntent(
|
||||
const SubtitlePreference.track(SubtitleTrack(id: 'source:8', title: 'FR Forced', language: 'fre', codec: 'ass')),
|
||||
const SubtitlePreference.track(
|
||||
SubtitleTrack(id: 'source:8', title: 'FR Forced', language: 'fre', codec: 'ass'),
|
||||
),
|
||||
);
|
||||
expect(
|
||||
demoted,
|
||||
@@ -75,10 +75,7 @@ void main() {
|
||||
});
|
||||
|
||||
test('metadata-less track references demote to null', () {
|
||||
expect(
|
||||
SubtitlePreference.demoteToIntent(const SubtitlePreference.track(SubtitleTrack(id: '2'))),
|
||||
isNull,
|
||||
);
|
||||
expect(SubtitlePreference.demoteToIntent(const SubtitlePreference.track(SubtitleTrack(id: '2'))), isNull);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user