mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Comma Comma Nit Nit
This commit is contained in:
parent
fdd554fb46
commit
80344acaaa
|
@ -1327,7 +1327,7 @@ void main() {
|
|||
find.byType(RepaintBoundary),
|
||||
matchesSkiaGoldFile('segmented_control_test.0.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Golden Test Pressed State', (WidgetTester tester) async {
|
||||
final Map<int, Widget> children = <int, Widget>{};
|
||||
|
@ -1365,5 +1365,5 @@ void main() {
|
|||
find.byType(RepaintBoundary),
|
||||
matchesSkiaGoldFile('segmented_control_test.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ void main() {
|
|||
find.byKey(key),
|
||||
matchesSkiaGoldFile('bottom_app_bar.custom_shape.2.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('color defaults to Theme.bottomAppBarColor', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
|
|
@ -2027,8 +2027,7 @@ void main() {
|
|||
find.byType(InputDecorator),
|
||||
matchesSkiaGoldFile('input_decorator.outline_icon_label.rtl.png'),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('InputDecorationTheme.toString()', (WidgetTester tester) async {
|
||||
// Regression test for https://github.com/flutter/flutter/issues/19305
|
||||
|
|
|
@ -51,8 +51,7 @@ void main() {
|
|||
find.byType(RichText),
|
||||
matchesSkiaGoldFile('localized_fonts.rich_text.styled_text_span.png'),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets(
|
||||
'Text with locale-specific glyphs, ambient locale',
|
||||
|
@ -102,8 +101,7 @@ void main() {
|
|||
find.byType(Row),
|
||||
matchesSkiaGoldFile('localized_fonts.text_ambient_locale.chars.png'),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets(
|
||||
'Text with locale-specific glyphs, explicit locale',
|
||||
|
@ -145,7 +143,6 @@ void main() {
|
|||
find.byType(Row),
|
||||
matchesSkiaGoldFile('localized_fonts.text_explicit_locale.chars.png'),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ void main() {
|
|||
find.byKey(const ValueKey<int>(1)),
|
||||
matchesSkiaGoldFile('editable_text_test.0.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('cursor layout has correct radius', (WidgetTester tester) async {
|
||||
final GlobalKey<EditableTextState> editableTextKey = GlobalKey<EditableTextState>();
|
||||
|
@ -142,7 +142,7 @@ void main() {
|
|||
find.byKey(const ValueKey<int>(1)),
|
||||
matchesSkiaGoldFile('editable_text_test.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Cursor animates on iOS', (WidgetTester tester) async {
|
||||
final Widget widget = MaterialApp(
|
||||
|
|
|
@ -60,7 +60,7 @@ void main() {
|
|||
);
|
||||
}
|
||||
debugDisableShadows = true;
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Shadows with PhysicalLayer', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -124,5 +124,5 @@ void main() {
|
|||
);
|
||||
}
|
||||
debugDisableShadows = true;
|
||||
},);
|
||||
});
|
||||
}
|
|
@ -55,7 +55,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Centered.wrap.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
|
||||
testWidgets('Text Foreground', (WidgetTester tester) async {
|
||||
|
@ -131,7 +131,7 @@ void main() {
|
|||
find.byType(RepaintBoundary),
|
||||
matchesSkiaGoldFile('text_golden.Foreground.stroke_and_gradient.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
// TODO(garyq): This test requires an update when the background
|
||||
// drawing from the beginning of the line bug is fixed. The current
|
||||
|
@ -181,7 +181,7 @@ void main() {
|
|||
find.byType(RepaintBoundary),
|
||||
matchesSkiaGoldFile('text_golden.Background.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Text Fade', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -217,7 +217,7 @@ void main() {
|
|||
find.byType(RepaintBoundary).first,
|
||||
matchesSkiaGoldFile('text_golden.Fade.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Default Strut text', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -242,7 +242,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.StrutDefault.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Strut text 1', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -269,7 +269,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Strut.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Strut text 2', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -297,7 +297,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Strut.2.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Strut text rich', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -348,7 +348,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Strut.3.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Strut text font fallback', (WidgetTester tester) async {
|
||||
// Font Fallback
|
||||
|
@ -383,7 +383,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Strut.4.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Strut text rich forceStrutHeight', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
|
@ -434,7 +434,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.StrutForce.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Decoration thickness', (WidgetTester tester) async {
|
||||
final TextDecoration allDecorations = TextDecoration.combine(
|
||||
|
@ -472,7 +472,7 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.Decoration.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
|
||||
testWidgets('Decoration thickness', (WidgetTester tester) async {
|
||||
final TextDecoration allDecorations = TextDecoration.combine(
|
||||
|
@ -511,5 +511,5 @@ void main() {
|
|||
find.byType(Container),
|
||||
matchesSkiaGoldFile('text_golden.DecorationThickness.1.png'),
|
||||
);
|
||||
},);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue