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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 1167733004: Decide if unit without directives is a part or a library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | pkg/analyzer/lib/src/context/context.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 0778532d29f0745f9c1f7fd826ef893c2e1a6d77..4bbaeb1fb9e7e2c2e9db4dcebf1e6cc48abcb683 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -276,6 +276,7 @@ class A {}
library my.lib;
part 'part.dart';
''');
+ _performAnalysis();
AnalysisError error = _findErrorToFix();
fix = _assertHasFix(DartFixKind.ADD_PART_OF, error);
change = fix.change;
@@ -3915,4 +3916,8 @@ main() {
}
return positions;
}
+
+ void _performAnalysis() {
+ while (context.performAnalysisTask().hasMoreWork);
+ }
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698