Unverified Commit fc64e75a authored by zichangg's avatar zichangg Committed by GitHub

Update tooltip_theme_test to unblock Dart SDK roll (#59937)

parent bcb7b85b
...@@ -65,6 +65,8 @@ void main() { ...@@ -65,6 +65,8 @@ void main() {
testWidgets('TooltipThemeData implements debugFillProperties', (WidgetTester tester) async { testWidgets('TooltipThemeData implements debugFillProperties', (WidgetTester tester) async {
final DiagnosticPropertiesBuilder builder = DiagnosticPropertiesBuilder(); final DiagnosticPropertiesBuilder builder = DiagnosticPropertiesBuilder();
const Duration wait = Duration(milliseconds: 100);
const Duration show = Duration(milliseconds: 200);
const TooltipThemeData( const TooltipThemeData(
height: 15.0, height: 15.0,
padding: EdgeInsets.all(20.0), padding: EdgeInsets.all(20.0),
...@@ -73,8 +75,8 @@ void main() { ...@@ -73,8 +75,8 @@ void main() {
excludeFromSemantics: true, excludeFromSemantics: true,
decoration: BoxDecoration(color: Color(0xffffffff)), decoration: BoxDecoration(color: Color(0xffffffff)),
textStyle: TextStyle(decoration: TextDecoration.underline), textStyle: TextStyle(decoration: TextDecoration.underline),
waitDuration: Duration(milliseconds: 100), waitDuration: wait,
showDuration: Duration(milliseconds: 200), showDuration: show,
).debugFillProperties(builder); ).debugFillProperties(builder);
final List<String> description = builder.properties final List<String> description = builder.properties
...@@ -90,8 +92,8 @@ void main() { ...@@ -90,8 +92,8 @@ void main() {
'semantics: excluded', 'semantics: excluded',
'decoration: BoxDecoration(color: Color(0xffffffff))', 'decoration: BoxDecoration(color: Color(0xffffffff))',
'textStyle: TextStyle(inherit: true, decoration: TextDecoration.underline)', 'textStyle: TextStyle(inherit: true, decoration: TextDecoration.underline)',
'wait duration: 0:00:00.100000', 'wait duration: ${wait.toString()}',
'show duration: 0:00:00.200000', 'show duration: ${show.toString()}',
]); ]);
}); });
......
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