whitespace cleanup (#14458)

This commit is contained in:
Alexandre Ardhuin
2018-02-05 22:20:21 +01:00
committed by GitHub
parent f5dea9325b
commit 3c379aaf43
17 changed files with 44 additions and 44 deletions

View File

@@ -568,7 +568,7 @@ class FlutterDriver {
'recordedStreams': _timelineStreamsToString(streams)
}).timeout(timeout);
return null;
} catch(error, stackTrace) {
} catch (error, stackTrace) {
throw new DriverError(
'Failed to start tracing due to remote error',
error,
@@ -584,7 +584,7 @@ class FlutterDriver {
.sendRequest(_kSetVMTimelineFlagsMethod, <String, String>{'recordedStreams': '[]'})
.timeout(timeout);
return new Timeline.fromJson(await _peer.sendRequest(_kGetVMTimelineMethod));
} catch(error, stackTrace) {
} catch (error, stackTrace) {
throw new DriverError(
'Failed to stop tracing due to remote error',
error,
@@ -626,7 +626,7 @@ class FlutterDriver {
await _peer
.sendRequest(_kClearVMTimelineMethod, <String, String>{})
.timeout(timeout);
} catch(error, stackTrace) {
} catch (error, stackTrace) {
throw new DriverError(
'Failed to clear event timeline due to remote error',
error,
@@ -723,7 +723,7 @@ Future<VMServiceClientConnection> _waitAndConnect(String url) async {
new VMServiceClient(new IOWebSocketChannel(ws1).cast()),
new rpc.Peer(new IOWebSocketChannel(ws2).cast())..listen()
);
} catch(e) {
} catch (e) {
await ws1?.close();
await ws2?.close();

View File

@@ -363,7 +363,7 @@ void main() {
try {
await driver.waitFor(find.byTooltip('foo'), timeout: const Duration(milliseconds: 100));
fail('expected an exception');
} catch(error) {
} catch (error) {
expect(error is DriverError, isTrue);
expect(error.message, 'Failed to fulfill WaitFor: Flutter application not responding');
}
@@ -378,7 +378,7 @@ void main() {
try {
await driver.waitFor(find.byTooltip('foo'));
fail('expected an exception');
} catch(error) {
} catch (error) {
expect(error is DriverError, isTrue);
expect(error.message, 'Error in Flutter application: {message: This is a failure}');
}