| Index: pkg/analysis_server/test/integration/analysis/update_content_list_test.dart
|
| diff --git a/pkg/analysis_server/test/integration/analysis/update_content_list_test.dart b/pkg/analysis_server/test/integration/analysis/update_content_list_test.dart
|
| index 7a8f10bc4624ebd88ee2ffe364abc00695493f63..2450fd834334413e2a87e28682f66a316479fd76 100644
|
| --- a/pkg/analysis_server/test/integration/analysis/update_content_list_test.dart
|
| +++ b/pkg/analysis_server/test/integration/analysis/update_content_list_test.dart
|
| @@ -28,9 +28,7 @@ main() {
|
| writeFile(pathname, '// dummy text');
|
| standardAnalysisSetup();
|
| // Override file contents with badText.
|
| - sendAnalysisUpdateContent({
|
| - pathname: new AddContentOverlay(badText)
|
| - });
|
| + sendAnalysisUpdateContent({pathname: new AddContentOverlay(badText)});
|
| return analysisFinished.then((_) {
|
| // The overridden contents (badText) are missing quotation marks.
|
| expect(currentAnalysisErrors[pathname], isNotEmpty);
|
| @@ -39,11 +37,11 @@ main() {
|
| // order in which they appear in the file. If these edits are applied in
|
| // the wrong order, some of the quotation marks will be in the wrong
|
| // places, and there will still be errors.
|
| - List<SourceEdit> edits = '"'.allMatches(
|
| - goodText).map((Match match) => new SourceEdit(match.start, 0, '"')).toList();
|
| - sendAnalysisUpdateContent({
|
| - pathname: new ChangeContentOverlay(edits)
|
| - });
|
| + List<SourceEdit> edits = '"'
|
| + .allMatches(goodText)
|
| + .map((Match match) => new SourceEdit(match.start, 0, '"'))
|
| + .toList();
|
| + sendAnalysisUpdateContent({pathname: new ChangeContentOverlay(edits)});
|
| return analysisFinished;
|
| }).then((_) {
|
| // There should be no errors now, assuming that quotation marks have been
|
|
|