Skip to content

Commit dde086c

Browse files
committed
forgot to remove the tests for padding when I removed the padding
1 parent bc33f52 commit dde086c

File tree

2 files changed

+0
-94
lines changed

2 files changed

+0
-94
lines changed

test/form_builder_checkbox_group_test.dart

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -29,53 +29,6 @@ void main() {
2929
expect(formValue(widgetName), equals(const [1, 3]));
3030
});
3131

32-
testWidgets('FormBuilderCheckboxGroup -- decoration control',
33-
(WidgetTester tester) async {
34-
const widgetName = 'cbg1';
35-
final testWidget = FormBuilderCheckboxGroup<int>(
36-
name: widgetName,
37-
wrapSpacing: 10.0,
38-
options: const [
39-
FormBuilderFieldOption(key: ValueKey('1'), value: 1),
40-
FormBuilderFieldOption(key: ValueKey('2'), value: 2),
41-
],
42-
itemDecoration:
43-
BoxDecoration(border: Border.all(color: Colors.blueAccent)),
44-
);
45-
await tester.pumpWidget(buildTestableFieldWidget(testWidget));
46-
47-
// this is a brittle test knowing how we use container for a border
48-
// there is one container for each option
49-
expect(find.byType(Container), findsExactly(2));
50-
// same as wrapSpacing
51-
Container foo = tester.firstWidget(find.byType(Container));
52-
expect(foo.padding, const EdgeInsets.only(right: 10.0));
53-
});
54-
55-
testWidgets('FormBuilderCheckboxGroup -- decoration control following',
56-
(WidgetTester tester) async {
57-
const widgetName = 'cbg1';
58-
final testWidget = FormBuilderCheckboxGroup<int>(
59-
name: widgetName,
60-
controlAffinity: ControlAffinity.trailing,
61-
wrapSpacing: 10.0,
62-
options: const [
63-
FormBuilderFieldOption(key: ValueKey('1'), value: 1),
64-
FormBuilderFieldOption(key: ValueKey('2'), value: 2),
65-
],
66-
itemDecoration:
67-
BoxDecoration(border: Border.all(color: Colors.blueAccent)),
68-
);
69-
await tester.pumpWidget(buildTestableFieldWidget(testWidget));
70-
71-
// this is a brittle test knowing how we use container for a border
72-
// there is one container for each option
73-
expect(find.byType(Container), findsExactly(2));
74-
// same as wrapSpacing
75-
Container foo = tester.firstWidget(find.byType(Container));
76-
expect(foo.padding, const EdgeInsets.only(left: 10.0));
77-
});
78-
7932
testWidgets('FormBuilderCheckboxGroup -- decoration horizontal',
8033
(WidgetTester tester) async {
8134
const widgetName = 'cbg1';

test/form_builder_radio_group_test.dart

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -28,53 +28,6 @@ void main() {
2828
expect(formValue(widgetName), equals(3));
2929
});
3030

31-
testWidgets('FormBuilderRadioGroup -- decoration control leading',
32-
(WidgetTester tester) async {
33-
const widgetName = 'rg1';
34-
final testWidget = FormBuilderRadioGroup<int>(
35-
name: widgetName,
36-
wrapSpacing: 10.0,
37-
options: const [
38-
FormBuilderFieldOption(key: ValueKey('1'), value: 1),
39-
FormBuilderFieldOption(key: ValueKey('2'), value: 2),
40-
],
41-
itemDecoration:
42-
BoxDecoration(border: Border.all(color: Colors.blueAccent)),
43-
);
44-
await tester.pumpWidget(buildTestableFieldWidget(testWidget));
45-
46-
// this is a brittle test knowing how we use container for a border
47-
// there is one container for each option
48-
expect(find.byType(Container), findsExactly(2));
49-
// same as wrapSpacing
50-
Container foo = tester.firstWidget(find.byType(Container));
51-
expect(foo.padding, const EdgeInsets.only(right: 10.0));
52-
});
53-
54-
testWidgets('FormBuilderRadioGroup -- decoration control following',
55-
(WidgetTester tester) async {
56-
const widgetName = 'rg1';
57-
final testWidget = FormBuilderRadioGroup<int>(
58-
name: widgetName,
59-
controlAffinity: ControlAffinity.trailing,
60-
wrapSpacing: 10.0,
61-
options: const [
62-
FormBuilderFieldOption(key: ValueKey('1'), value: 1),
63-
FormBuilderFieldOption(key: ValueKey('2'), value: 2),
64-
],
65-
itemDecoration:
66-
BoxDecoration(border: Border.all(color: Colors.blueAccent)),
67-
);
68-
await tester.pumpWidget(buildTestableFieldWidget(testWidget));
69-
70-
// this is a brittle test knowing how we use container for a border
71-
// there is one container for each option
72-
expect(find.byType(Container), findsExactly(2));
73-
// same as wrapSpacing
74-
Container foo = tester.firstWidget(find.byType(Container));
75-
expect(foo.padding, const EdgeInsets.only(left: 10.0));
76-
});
77-
7831
testWidgets('FormBuilderRadioGroup -- decoration horizontal',
7932
(WidgetTester tester) async {
8033
const widgetName = 'rg1';

0 commit comments

Comments
 (0)