Unverified Commit e4b97967 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] Implement NotifyingLogger.supportsColor (#113635)

parent 637e5bce
......@@ -1259,7 +1259,7 @@ class NotifyingLogger extends DelegatingLogger {
void sendEvent(String name, [Map<String, Object?>? args]) { }
@override
bool get supportsColor => throw UnimplementedError();
bool get supportsColor => false;
@override
bool get hasTerminal => false;
......
......@@ -708,6 +708,11 @@ void main() {
expect(message.level, 'status');
expect(message.message, 'hello');
});
testWithoutContext('responds to .supportsColor', () async {
final NotifyingLogger logger = NotifyingLogger(verbose: false, parent: bufferLogger);
expect(logger.supportsColor, isFalse);
});
});
group('daemon queue', () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment