Minor code cleanup (#16237)

This commit is contained in:
Ian Hickson
2018-04-09 16:33:47 -07:00
committed by GitHub
parent da4e06bbca
commit 44fbf7463b
2 changed files with 2 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ void installHook({
int observatoryPort,
InternetAddressType serverType: InternetAddressType.IP_V4,
}) {
if (startPaused || observatoryPort != null)
assert(enableObservatory);
assert(!enableObservatory || (!startPaused && observatoryPort == null));
hack.registerPlatformPlugin(
<Runtime>[Runtime.vm],
() => new _FlutterPlatform(
@@ -705,7 +704,6 @@ void main() {
'--enable-dart-profiling',
'--non-interactive',
'--use-test-fonts',
// '--enable-txt', // enable this to test libtxt rendering
'--packages=$packages',
testPath,
]);

View File

@@ -16,7 +16,7 @@ import '../base/process_manager.dart';
import '../base/terminal.dart';
import '../dart/package_map.dart';
import '../globals.dart';
import '../test/flutter_platform.dart' as loader;
import 'flutter_platform.dart' as loader;
import 'watcher.dart';
/// Runs tests using package:test and the Flutter engine.