From 6d7ecab25c244629943a3b3de7ddccf4ee1dc256 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 30 Aug 2018 14:07:34 -0700 Subject: [PATCH] Minor improvements to analyzer test naming (#21234) Clarify the intent of these tests. --- .../flutter_tools/test/commands/analyze_continuously_test.dart | 3 ++- packages/flutter_tools/test/commands/analyze_once_test.dart | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/test/commands/analyze_continuously_test.dart b/packages/flutter_tools/test/commands/analyze_continuously_test.dart index 018dc85595..49763f55f8 100644 --- a/packages/flutter_tools/test/commands/analyze_continuously_test.dart +++ b/packages/flutter_tools/test/commands/analyze_continuously_test.dart @@ -70,10 +70,11 @@ void main() { OperatingSystemUtils: () => os }); - testUsingContext('analyze', () async { + testUsingContext('Returns no errors when source is error-free', () async { const String contents = "StringBuffer bar = StringBuffer('baz');"; tempDir.childFile('main.dart').writeAsStringSync(contents); server = new AnalysisServer(dartSdkPath, [tempDir.path]); + int errorCount = 0; final Future onDone = server.onAnalyzing.where((bool analyzing) => analyzing == false).first; server.onErrors.listen((FileAnalysisErrors errors) { diff --git a/packages/flutter_tools/test/commands/analyze_once_test.dart b/packages/flutter_tools/test/commands/analyze_once_test.dart index 61cd9fe1b7..70df815ed3 100644 --- a/packages/flutter_tools/test/commands/analyze_once_test.dart +++ b/packages/flutter_tools/test/commands/analyze_once_test.dart @@ -162,7 +162,7 @@ void bar() { } }); - testUsingContext('analyze', () async { + testUsingContext('returns no issues when source is error-free', () async { const String contents = ''' StringBuffer bar = StringBuffer('baz'); ''';