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

@@ -70,7 +70,7 @@ String getEmulatorPath([AndroidSdk existingSdk]) {
/// Locate the path for storing AVD emulator images. Returns null if none found.
String getAvdPath() {
final List<String> searchPaths = <String>[
platform.environment['ANDROID_AVD_HOME']
];

View File

@@ -374,7 +374,7 @@ class AppDomain extends Domain {
ipv6: ipv6,
);
}
return launch(
runner,
({ Completer<DebugConnectionInfo> connectionInfoCompleter,

View File

@@ -37,9 +37,9 @@ const String _kStackTraceFileField = 'DartError';
const String _kStackTraceFilename = 'stacktrace_file';
/// Sends crash reports to Google.
///
///
/// There are two ways to override the behavior of this class:
///
///
/// * Define a `FLUTTER_CRASH_SERVER_BASE_URL` environment variable that points
/// to a custom crash reporting server. This is useful if your development
/// environment is behind a firewall and unable to send crash reports to

View File

@@ -20,7 +20,7 @@ const String noCertificatesInstruction = '''
════════════════════════════════════════════════════════════════════════════════
No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID
in Xcode and create an iOS Development Certificate as well as a Provisioning
in Xcode and create an iOS Development Certificate as well as a Provisioning\u0020
Profile for your project by:
$fixWithDevelopmentTeamInstruction
5- Trust your newly created Development Certificate on your iOS device
@@ -37,12 +37,12 @@ Or run on an iOS simulator without code signing
/// The user did iOS development but never on this project and/or device.
const String noProvisioningProfileInstruction = '''
════════════════════════════════════════════════════════════════════════════════
No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
No Provisioning Profile was found for your project's Bundle Identifier or your\u0020
device. You can create a new Provisioning Profile for your project in Xcode for\u0020
your team by:
$fixWithDevelopmentTeamInstruction
It's also possible that a previously installed app with the same Bundle
It's also possible that a previously installed app with the same Bundle\u0020
Identifier was signed with a different certificate.
For more information, please visit:
@@ -55,7 +55,7 @@ Or run on an iOS simulator without code signing
/// Couldn't auto sign the app but can likely solved by retracing the signing flow in Xcode.
const String noDevelopmentTeamInstruction = '''
════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a
Building a deployable iOS app requires a selected Development Team with a\u0020
Provisioning Profile. Please ensure that a Development Team is selected by:
$fixWithDevelopmentTeamInstruction
@@ -69,7 +69,7 @@ const String fixWithDevelopmentTeamInstruction = '''
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- In the 'General' tab, make sure a 'Development Team' is selected.
3- In the 'General' tab, make sure a 'Development Team' is selected.\u0020
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID

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