Revert "Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656)" (#22759)
This reverts commit e438632165
because it breaks 160 benchmarks, and several devicelab tests,
due to changing the format of the output.
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_tools/src/android/android_studio.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_tools/src/doctor.dart';
|
||||
import 'package:flutter_tools/src/android/android_studio_validator.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
|
||||
import '../src/common.dart';
|
||||
import '../src/context.dart';
|
||||
|
||||
const String home = '/home/me';
|
||||
|
||||
Platform linuxPlatform() {
|
||||
return FakePlatform.fromPlatform(const LocalPlatform())
|
||||
..operatingSystem = 'linux'
|
||||
..environment = <String, String>{'HOME': home};
|
||||
}
|
||||
|
||||
void main() {
|
||||
group('NoAndroidStudioValidator', () {
|
||||
testUsingContext('shows Android Studio as "not available" when not available.', () async {
|
||||
final NoAndroidStudioValidator validator = NoAndroidStudioValidator();
|
||||
expect((await validator.validate()).type, equals(ValidationType.notAvailable));
|
||||
}, overrides: <Type, Generator>{
|
||||
// Note that custom home paths are not supported on macOS nor Windows yet:
|
||||
Platform: () => linuxPlatform(),
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user