Update RadioListTile
tests format for M2/M3 (#130391)
Update tests format context: https://github.com/flutter/flutter/pull/129718#issuecomment-1615124857
This commit is contained in:
parent
21fa18b3fe
commit
21e3bb8967
@ -1012,7 +1012,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('RadioListTile respects hoverColor', (WidgetTester tester) async {
|
testWidgets('Material3 - RadioListTile respects hoverColor', (WidgetTester tester) async {
|
||||||
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
||||||
int? groupValue = 0;
|
int? groupValue = 0;
|
||||||
final Color? hoverColor = Colors.orange[500];
|
final Color? hoverColor = Colors.orange[500];
|
||||||
@ -1078,7 +1078,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('RadioListTile respects overlayColor in active/pressed/hovered states', (WidgetTester tester) async {
|
testWidgets('Material3 - RadioListTile respects overlayColor in active/pressed/hovered states', (WidgetTester tester) async {
|
||||||
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
||||||
|
|
||||||
const Color fillColor = Color(0xFF000000);
|
const Color fillColor = Color(0xFF000000);
|
||||||
@ -1339,7 +1339,7 @@ void main() {
|
|||||||
// support is deprecated and the APIs are removed, these tests
|
// support is deprecated and the APIs are removed, these tests
|
||||||
// can be deleted.
|
// can be deleted.
|
||||||
|
|
||||||
testWidgets('RadioListTile respects overlayColor in active/pressed/hovered states', (WidgetTester tester) async {
|
testWidgets('Material2 - RadioListTile respects overlayColor in active/pressed/hovered states', (WidgetTester tester) async {
|
||||||
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
||||||
|
|
||||||
const Color fillColor = Color(0xFF000000);
|
const Color fillColor = Color(0xFF000000);
|
||||||
@ -1443,7 +1443,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('RadioListTile respects hoverColor', (WidgetTester tester) async {
|
testWidgets('Material2 - RadioListTile respects hoverColor', (WidgetTester tester) async {
|
||||||
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
||||||
int? groupValue = 0;
|
int? groupValue = 0;
|
||||||
final Color? hoverColor = Colors.orange[500];
|
final Color? hoverColor = Colors.orange[500];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user