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