Removes trailing whitespace from source files. (#19329)
This commit is contained in:
@@ -36,7 +36,7 @@ void main() {
|
||||
testUsingContext('can hot reload', () async {
|
||||
await _flutterRun.run(withDebugger: true);
|
||||
await _flutterAttach.attach(_flutterRun.vmServicePort);
|
||||
|
||||
|
||||
await _flutterAttach.hotReload();
|
||||
});
|
||||
}, timeout: const Timeout.factor(3));
|
||||
|
||||
@@ -19,9 +19,9 @@ class BasicProject extends TestProject {
|
||||
@override
|
||||
final String main = r'''
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
void main() => runApp(new MyApp());
|
||||
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -78,7 +78,7 @@ class FlutterTestDriver {
|
||||
Future<void> _setupProcess(List<String> args, {bool withDebugger = false}) async {
|
||||
final String flutterBin = fs.path.join(getFlutterRoot(), 'bin', 'flutter');
|
||||
_debugPrint('Spawning flutter $args in ${_projectFolder.path}');
|
||||
|
||||
|
||||
const ProcessManager _processManager = const LocalProcessManager();
|
||||
_proc = await _processManager.start(
|
||||
<String>[flutterBin]
|
||||
@@ -103,7 +103,7 @@ class FlutterTestDriver {
|
||||
// script).
|
||||
final Map<String, dynamic> connected = await _waitFor(event: 'daemon.connected');
|
||||
_procPid = connected['params']['pid'];
|
||||
|
||||
|
||||
// Set this up now, but we don't wait it yet. We want to make sure we don't
|
||||
// miss it while waiting for debugPort below.
|
||||
final Future<Map<String, dynamic>> started = _waitFor(event: 'app.started',
|
||||
@@ -126,7 +126,7 @@ class FlutterTestDriver {
|
||||
|
||||
// Because we start paused, resume so the app is in a "running" state as
|
||||
// expected by tests. Tests will reload/restart as required if they need
|
||||
// to hit breakpoints, etc.
|
||||
// to hit breakpoints, etc.
|
||||
await waitForPause();
|
||||
await resume(wait: false);
|
||||
}
|
||||
@@ -266,7 +266,7 @@ class FlutterTestDriver {
|
||||
response.complete(json);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return _timeoutWithMessages(() => response.future,
|
||||
timeout: timeout,
|
||||
message: event != null
|
||||
@@ -285,7 +285,7 @@ class FlutterTestDriver {
|
||||
messages.writeln('[+ ${ms.toString().padLeft(5)}] $m');
|
||||
}
|
||||
final StreamSubscription<String> sub = _allMessages.stream.listen(logMessage);
|
||||
|
||||
|
||||
return f().timeout(timeout ?? defaultTimeout, onTimeout: () {
|
||||
logMessage('<timed out>');
|
||||
throw '$message\nReceived:\n${messages.toString()}';
|
||||
|
||||
Reference in New Issue
Block a user