Unverified Commit 21e3bb89 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Update `RadioListTile` tests format for M2/M3 (#130391)

Update tests format 

context: https://github.com/flutter/flutter/pull/129718#issuecomment-1615124857
parent 21fa18b3
...@@ -1012,7 +1012,7 @@ void main() { ...@@ -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() { ...@@ -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() { ...@@ -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() { ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment