dart format whole tree

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-05-03 21:51:59 +02:00
co-authored by Claude
parent c436e72c5c
commit 9c7ec008dc
102 changed files with 1176 additions and 1282 deletions
+4 -8
View File
@@ -24,8 +24,7 @@ void main() {
expect(find.text('Save'), findsOneWidget);
});
testWidgets('emits a Semantics node with button: true + label',
(tester) async {
testWidgets('emits a Semantics node with button: true + label', (tester) async {
await tester.pumpWidget(
harness(f, ClideButton(label: 'Commit', onPressed: () {})),
);
@@ -38,8 +37,7 @@ void main() {
);
});
testWidgets('semanticLabel overrides the visible label for a11y',
(tester) async {
testWidgets('semanticLabel overrides the visible label for a11y', (tester) async {
await tester.pumpWidget(
harness(
f,
@@ -54,8 +52,7 @@ void main() {
expect(semantics.label, 'Save document');
});
testWidgets('semanticHint propagates to the Semantics node',
(tester) async {
testWidgets('semanticHint propagates to the Semantics node', (tester) async {
await tester.pumpWidget(
harness(
f,
@@ -75,8 +72,7 @@ void main() {
harness(f, const ClideButton(label: 'Nope', onPressed: null)),
);
final semantics = tester.getSemantics(find.byType(ClideButton));
expect(
semantics.getSemanticsData().hasAction(SemanticsAction.tap), isFalse);
expect(semantics.getSemanticsData().hasAction(SemanticsAction.tap), isFalse);
});
testWidgets('tap invokes onPressed', (tester) async {
+2 -4
View File
@@ -11,16 +11,14 @@ void main() {
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
testWidgets('renders a 1px horizontal container by default',
(tester) async {
testWidgets('renders a 1px horizontal container by default', (tester) async {
await tester.pumpWidget(harness(f, const ClideDivider()));
final c = tester.widget<Container>(find.byType(Container));
expect(c.constraints?.maxHeight, 1.0);
expect(c.color, f.services.theme.current.surface.dividerColor);
});
testWidgets('vertical axis yields a width-constrained container',
(tester) async {
testWidgets('vertical axis yields a width-constrained container', (tester) async {
await tester.pumpWidget(
harness(f, const ClideDivider(axis: Axis.vertical, thickness: 2)),
);
+1 -2
View File
@@ -11,8 +11,7 @@ void main() {
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
testWidgets('sizes a SizedBox + CustomPaint to the given size',
(tester) async {
testWidgets('sizes a SizedBox + CustomPaint to the given size', (tester) async {
await tester.pumpWidget(
harness(f, const ClideIcon(FolderIcon(), size: 24)),
);
+2 -4
View File
@@ -12,15 +12,13 @@ void main() {
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
testWidgets('default background comes from panelBackground token',
(tester) async {
testWidgets('default background comes from panelBackground token', (tester) async {
await tester.pumpWidget(
harness(f, const ClideSurface(child: Text('x'))),
);
final container = tester.widget<Container>(find.byType(Container));
final decoration = container.decoration as BoxDecoration;
expect(
decoration.color, f.services.theme.current.surface.panelBackground);
expect(decoration.color, f.services.theme.current.surface.panelBackground);
});
testWidgets('explicit color overrides the token default', (tester) async {
+2 -4
View File
@@ -26,13 +26,11 @@ void main() {
testWidgets('muted mode uses globalTextMuted', (tester) async {
await tester.pumpWidget(harness(f, const ClideText('x', muted: true)));
final text = tester.widget<Text>(find.byType(Text));
expect(
text.style!.color, f.services.theme.current.surface.globalTextMuted);
expect(text.style!.color, f.services.theme.current.surface.globalTextMuted);
});
testWidgets('explicit color wins over tokens', (tester) async {
await tester.pumpWidget(
harness(f, const ClideText('x', color: Color(0xFFAABBCC))));
await tester.pumpWidget(harness(f, const ClideText('x', color: Color(0xFFAABBCC))));
final text = tester.widget<Text>(find.byType(Text));
expect(text.style!.color, const Color(0xFFAABBCC));
});