Unverified Commit 4a174058 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

++ (#74862)

parent 68bd9c01
...@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; ...@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
class TestTestBinding extends AutomatedTestWidgetsFlutterBinding { class TestTestBinding extends AutomatedTestWidgetsFlutterBinding {
@override @override
DebugPrintCallback get debugPrintOverride => testPrint; DebugPrintCallback get debugPrintOverride => testPrint;
static void testPrint(String message, { int wrapWidth }) { print(message); } static void testPrint(String? message, { int? wrapWidth }) { print(message); }
} }
Future<void> guardedHelper(WidgetTester tester) { Future<void> guardedHelper(WidgetTester tester) {
......
...@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; ...@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
class TestTestBinding extends AutomatedTestWidgetsFlutterBinding { class TestTestBinding extends AutomatedTestWidgetsFlutterBinding {
@override @override
DebugPrintCallback get debugPrintOverride => testPrint; DebugPrintCallback get debugPrintOverride => testPrint;
static void testPrint(String message, { int wrapWidth }) { print(message); } static void testPrint(String? message, { int? wrapWidth }) { print(message); }
} }
Future<void> helperFunction(WidgetTester tester) async { Future<void> helperFunction(WidgetTester tester) async {
......
...@@ -10,7 +10,7 @@ void main() { ...@@ -10,7 +10,7 @@ void main() {
testWidgets('Does flutter_test catch leaking tickers?', (WidgetTester tester) async { testWidgets('Does flutter_test catch leaking tickers?', (WidgetTester tester) async {
Ticker((Duration duration) { }).start(); Ticker((Duration duration) { }).start();
final ByteData message = const StringCodec().encodeMessage('AppLifecycleState.paused'); final ByteData? message = const StringCodec().encodeMessage('AppLifecycleState.paused');
await ServicesBinding.instance.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) {}); await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) {});
}); });
} }
name: flutter_automated_tests name: flutter_automated_tests
environment: environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0" sdk: ">=2.12.0-0 <3.0.0"
dependencies: dependencies:
flutter: flutter:
......
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