chore(lint): various code liniting changes
This commit is contained in:
parent
6d54ef7799
commit
359c800e54
|
@ -1 +1 @@
|
||||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-05-25 17:13:13.998769","version":"2.2.0"}
|
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-05-25 17:16:18.323118","version":"2.2.0"}
|
|
@ -146,9 +146,7 @@ class FlutterDriverTestConfiguration extends FlutterTestConfiguration {
|
||||||
world = world ?? FlutterDriverWorld();
|
world = world ?? FlutterDriverWorld();
|
||||||
|
|
||||||
final driver = await createFlutterDriver(
|
final driver = await createFlutterDriver(
|
||||||
flutterConfig.runningAppProtocolEndpointUri != null &&
|
flutterConfig.runningAppProtocolEndpointUri?.isNotEmpty ?? false
|
||||||
flutterConfig.runningAppProtocolEndpointUri != null &&
|
|
||||||
flutterConfig.runningAppProtocolEndpointUri!.isNotEmpty
|
|
||||||
? flutterConfig.runningAppProtocolEndpointUri
|
? flutterConfig.runningAppProtocolEndpointUri
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
|
@ -204,15 +202,14 @@ class FlutterDriverTestConfiguration extends FlutterTestConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _ensureCorrectConfiguration() {
|
void _ensureCorrectConfiguration() {
|
||||||
if (runningAppProtocolEndpointUri != null &&
|
if (runningAppProtocolEndpointUri?.isNotEmpty ?? false) {
|
||||||
runningAppProtocolEndpointUri!.isNotEmpty) {
|
|
||||||
if (restartAppBetweenScenarios) {
|
if (restartAppBetweenScenarios) {
|
||||||
throw AssertionError(
|
throw AssertionError(
|
||||||
'Cannot restart app between scenarios if using runningAppProtocolEndpointUri',
|
'Cannot restart app between scenarios if using runningAppProtocolEndpointUri',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetDeviceId != null && targetDeviceId!.isNotEmpty) {
|
if (targetDeviceId?.isNotEmpty ?? false) {
|
||||||
throw AssertionError(
|
throw AssertionError(
|
||||||
'Cannot target specific device id if using runningAppProtocolEndpointUri',
|
'Cannot target specific device id if using runningAppProtocolEndpointUri',
|
||||||
);
|
);
|
||||||
|
|
|
@ -60,8 +60,7 @@ class FlutterAppRunnerHook extends Hook {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _runApp(FlutterDriverTestConfiguration config) async {
|
Future<void> _runApp(FlutterDriverTestConfiguration config) async {
|
||||||
if (config.runningAppProtocolEndpointUri != null &&
|
if (config.runningAppProtocolEndpointUri?.isNotEmpty ?? false) {
|
||||||
config.runningAppProtocolEndpointUri!.isNotEmpty) {
|
|
||||||
stdout.writeln(
|
stdout.writeln(
|
||||||
"Connecting to running Flutter app under test at '${config.runningAppProtocolEndpointUri}', "
|
"Connecting to running Flutter app under test at '${config.runningAppProtocolEndpointUri}', "
|
||||||
'this might take a few moments',
|
'this might take a few moments',
|
||||||
|
|
Loading…
Reference in New Issue