run dart format over the dragon-fix files
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -223,7 +223,13 @@ Future<void> main() async {
|
|||||||
return next;
|
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 dispatcher = DaemonDispatcher();
|
||||||
final eventSink = _BusEventSink(events);
|
final eventSink = _BusEventSink(events);
|
||||||
final paneRegistry = PaneRegistry(events: eventSink);
|
final paneRegistry = PaneRegistry(events: eventSink);
|
||||||
|
|||||||
@@ -162,12 +162,12 @@ void main() {
|
|||||||
if (!Platform.isLinux) return;
|
if (!Platform.isLinux) return;
|
||||||
|
|
||||||
int ptmxCount() => Directory('/proc/self/fd').listSync().where((e) {
|
int ptmxCount() => Directory('/proc/self/fd').listSync().where((e) {
|
||||||
try {
|
try {
|
||||||
return Link(e.path).targetSync() == '/dev/ptmx';
|
return Link(e.path).targetSync() == '/dev/ptmx';
|
||||||
} on FileSystemException {
|
} on FileSystemException {
|
||||||
return false; // fd vanished between list and readlink
|
return false; // fd vanished between list and readlink
|
||||||
}
|
}
|
||||||
}).length;
|
}).length;
|
||||||
|
|
||||||
final baseline = ptmxCount();
|
final baseline = ptmxCount();
|
||||||
final s = NativePty.start(
|
final s = NativePty.start(
|
||||||
|
|||||||
@@ -682,7 +682,18 @@ void main() {
|
|||||||
// inside Terminal.write.
|
// inside Terminal.write.
|
||||||
test('truncated 38/48 sequences are ignored, never throw', () {
|
test('truncated 38/48 sequences are ignored, never throw', () {
|
||||||
final f = _newParser();
|
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);
|
f.parser.write(s);
|
||||||
}
|
}
|
||||||
expect(f.h.named('setForegroundColorRgb'), isEmpty);
|
expect(f.h.named('setForegroundColorRgb'), isEmpty);
|
||||||
|
|||||||
Reference in New Issue
Block a user