Removes trailing whitespace from source files. (#19329)

This commit is contained in:
Greg Spencer
2018-07-19 23:03:58 -07:00
committed by GitHub
parent 2d3a5c744d
commit 1cc036519c
47 changed files with 138 additions and 138 deletions

View File

@@ -115,7 +115,7 @@ void main() {
class MockFileSystem extends ForwardingFileSystem {
MockFileSystem() : super(new MemoryFileSystem());
@override
File file(dynamic path) {
return new MockFile();

View File

@@ -325,7 +325,7 @@ class VsCodeValidatorTestTargets extends VsCodeValidator {
static final String validInstall = fs.path.join('test', 'data', 'vscode', 'application');
static final String validExtensions = fs.path.join('test', 'data', 'vscode', 'extensions');
static final String missingExtensions = fs.path.join('test', 'data', 'vscode', 'notExtensions');
VsCodeValidatorTestTargets._(String installDirectory, String extensionDirectory, {String edition})
VsCodeValidatorTestTargets._(String installDirectory, String extensionDirectory, {String edition})
: super(new VsCode.fromDirectory(installDirectory, extensionDirectory, edition: edition));
static VsCodeValidatorTestTargets get installedWithExtension =>

View File

@@ -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));

View File

@@ -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) {

View File

@@ -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()}';