Unverified Commit 41325b56 authored by xster's avatar xster Committed by GitHub

Turn timer_picker_test goldens back on (#67555)

parent d127f2c9
...@@ -1206,48 +1206,48 @@ void main() { ...@@ -1206,48 +1206,48 @@ void main() {
}); });
}); });
// testWidgets('TimerPicker golden tests', (WidgetTester tester) async { testWidgets('TimerPicker golden tests', (WidgetTester tester) async {
// await tester.pumpWidget( await tester.pumpWidget(
// CupertinoApp( CupertinoApp(
// // Also check if the picker respects the theme. // Also check if the picker respects the theme.
// theme: const CupertinoThemeData( theme: const CupertinoThemeData(
// textTheme: CupertinoTextThemeData( textTheme: CupertinoTextThemeData(
// pickerTextStyle: TextStyle( pickerTextStyle: TextStyle(
// color: Color(0xFF663311), color: Color(0xFF663311),
// fontSize: 21, fontSize: 21,
// ), ),
// ), ),
// ), ),
// home: Center( home: Center(
// child: SizedBox( child: SizedBox(
// width: 320, width: 320,
// height: 216, height: 216,
// child: RepaintBoundary( child: RepaintBoundary(
// child: CupertinoTimerPicker( child: CupertinoTimerPicker(
// mode: CupertinoTimerPickerMode.hm, mode: CupertinoTimerPickerMode.hm,
// initialTimerDuration: const Duration(hours: 23, minutes: 59), initialTimerDuration: const Duration(hours: 23, minutes: 59),
// onTimerDurationChanged: (_) {}, onTimerDurationChanged: (_) {},
// ), ),
// ), ),
// ), ),
// ), ),
// ), ),
// ); );
//
// await expectLater( await expectLater(
// find.byType(CupertinoTimerPicker), find.byType(CupertinoTimerPicker),
// matchesGoldenFile('timer_picker_test.datetime.initial.png'), matchesGoldenFile('timer_picker_test.datetime.initial.png'),
// ); );
//
// // Slightly drag the minute component to make the current minute off-center. // Slightly drag the minute component to make the current minute off-center.
// await tester.drag(find.text('59'), Offset(0, _kRowOffset.dy / 2)); await tester.drag(find.text('59'), Offset(0, _kRowOffset.dy / 2));
// await tester.pump(); await tester.pump();
//
// await expectLater( await expectLater(
// find.byType(CupertinoTimerPicker), find.byType(CupertinoTimerPicker),
// matchesGoldenFile('timer_picker_test.datetime.drag.png'), matchesGoldenFile('timer_picker_test.datetime.drag.png'),
// ); );
// }); });
testWidgets('TimerPicker only changes hour label after scrolling stops', (WidgetTester tester) async { testWidgets('TimerPicker only changes hour label after scrolling stops', (WidgetTester tester) async {
Duration? duration; Duration? duration;
......
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