Minor improvements to analyzer test naming (#21234)

Clarify the intent of these tests.
This commit is contained in:
Chris Bracken
2018-08-30 14:07:34 -07:00
committed by GitHub
parent 5a5ebde3d3
commit 6d7ecab25c
2 changed files with 3 additions and 2 deletions

View File

@@ -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, <String>[tempDir.path]);
int errorCount = 0;
final Future<bool> onDone = server.onAnalyzing.where((bool analyzing) => analyzing == false).first;
server.onErrors.listen((FileAnalysisErrors errors) {

View File

@@ -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');
''';