run dart format over the dragon-fix files

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 00:58:37 +02:00
co-authored by Claude Fable 5
parent 9889afdc35
commit 0e7353bf9c
3 changed files with 25 additions and 8 deletions
+7 -1
View File
@@ -223,7 +223,13 @@ Future<void> main() async {
return next;
}
(DaemonDispatcher, Future<void> Function()) buildDispatcher(DaemonBus events, Toolchain tc, Directory workRoot, LayoutArrangement arrangement, PanelRegistry panels) {
(DaemonDispatcher, Future<void> Function()) buildDispatcher(
DaemonBus events,
Toolchain tc,
Directory workRoot,
LayoutArrangement arrangement,
PanelRegistry panels,
) {
final dispatcher = DaemonDispatcher();
final eventSink = _BusEventSink(events);
final paneRegistry = PaneRegistry(events: eventSink);
+6 -6
View File
@@ -162,12 +162,12 @@ void main() {
if (!Platform.isLinux) return;
int ptmxCount() => Directory('/proc/self/fd').listSync().where((e) {
try {
return Link(e.path).targetSync() == '/dev/ptmx';
} on FileSystemException {
return false; // fd vanished between list and readlink
}
}).length;
try {
return Link(e.path).targetSync() == '/dev/ptmx';
} on FileSystemException {
return false; // fd vanished between list and readlink
}
}).length;
final baseline = ptmxCount();
final s = NativePty.start(
+12 -1
View File
@@ -682,7 +682,18 @@ void main() {
// inside Terminal.write.
test('truncated 38/48 sequences are ignored, never throw', () {
final f = _newParser();
for (final s in ['\x1b[38m', '\x1b[48m', '\x1b[38;2m', '\x1b[38;2;255m', '\x1b[38;2;255;10m', '\x1b[38;5m', '\x1b[48;5m', '\x1b[38:2m', '\x1b[38:5m', '\x1b[48:2:255m']) {
for (final s in [
'\x1b[38m',
'\x1b[48m',
'\x1b[38;2m',
'\x1b[38;2;255m',
'\x1b[38;2;255;10m',
'\x1b[38;5m',
'\x1b[48;5m',
'\x1b[38:2m',
'\x1b[38:5m',
'\x1b[48:2:255m',
]) {
f.parser.write(s);
}
expect(f.h.named('setForegroundColorRgb'), isEmpty);