Migrate Flutter gallery test to null safety (#69048)

This commit is contained in:
Emmanuel Garcia
2020-11-06 20:38:12 -08:00
committed by GitHub
parent 52d49fb358
commit 7ba775a994
106 changed files with 1584 additions and 1624 deletions

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
// @dart = 2.9
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
// @dart = 2.9
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;

View File

@@ -47,7 +47,7 @@ class _MessageHandler {
}
void main() {
enableFlutterDriverExtension(handler: _MessageHandler());
enableFlutterDriverExtension(handler: _MessageHandler().call);
// As in lib/main.dart: overriding https://github.com/flutter/flutter/issues/13736
// for better visual effect at the cost of performance.
runApp(const GalleryApp(testMode: true));

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
// @dart = 2.9
import 'package:integration_test/integration_test_driver.dart' as driver;
Future<void> main() => driver.integrationDriver(

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
// @dart = 2.9
import 'transitions_perf_test.dart' as transitions_perf_test;
void main([List<String> args = const <String>[]]) => transitions_perf_test.main(

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
// @dart = 2.9
import 'dart:convert' show JsonEncoder, json;
import 'package:file/file.dart';