Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: pkg/analysis_server/test/integration/edit/get_fixes_test.dart

Issue 2932343002: Reduce the test scope of get_fixes_test.dart. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/integration/edit/get_fixes_test.dart
diff --git a/pkg/analysis_server/test/integration/edit/get_fixes_test.dart b/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
index 3583c76176bfb5cf89ee9ebf4cac466a3a92dff9..a76680d76edd3b9ef9411427e0e87372f9e56679 100644
--- a/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
+++ b/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:async';
-
import 'package:analysis_server/protocol/protocol_generated.dart';
import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:test/test.dart';
@@ -39,20 +37,10 @@ Future f;
expect(fix.error.code, 'undefined_class');
expect(fix.fixes, isNotEmpty);
- // apply the fix, expect that the new code has no errors
SourceChange change = fix.fixes.singleWhere(
(SourceChange change) => change.message.startsWith('Import '));
expect(change.edits, hasLength(1));
expect(change.edits.first.edits, hasLength(1));
- SourceEdit edit = change.edits.first.edits.first;
- text = text.replaceRange(edit.offset, edit.end, edit.replacement);
-
- // save the fixed text as an overlay
- Future analysisFinishedFuture = analysisFinished;
- sendAnalysisUpdateContent({pathname: new AddContentOverlay(text)});
- await analysisFinishedFuture;
-
- expect(currentAnalysisErrors[pathname], isEmpty);
}
test_no_fixes() async {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698