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

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

Issue 2610823004: Replace using MockSdk with FolderBasedDartSdk + summaries in AbstractContextTest(s). (Closed)
Patch Set: Created 3 years, 11 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
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 aff6dd28a020aeee89b589ce96e2a7423eb2f3b7..b07956175046556e79b483f36eb2e7a75b41ba78 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -4268,8 +4268,12 @@ void process(List<int> items) {
_assertLinkedGroup(
change.linkedEditGroups[2],
['List<int> items) {'],
- expectedSuggestions(LinkedEditSuggestionKind.TYPE,
- ['List<int>', 'Iterable<int>', 'Object']));
+ expectedSuggestions(LinkedEditSuggestionKind.TYPE, [
+ 'List<int>',
+ 'EfficientLengthIterable<int>',
+ 'Iterable<int>',
+ 'Object'
+ ]));
}
test_undefinedFunction_create_importType() async {
@@ -4908,7 +4912,7 @@ class A {
change.linkedEditGroups[index++],
['String s'],
expectedSuggestions(LinkedEditSuggestionKind.TYPE,
- ['String', 'Object', 'Comparable<String>']));
+ ['String', 'Object', 'Comparable<String>', 'Pattern']));
_assertLinkedGroup(change.linkedEditGroups[index++], ['s)']);
}
@@ -4952,7 +4956,7 @@ class A {
change.linkedEditGroups[index++],
['String ccc'],
expectedSuggestions(LinkedEditSuggestionKind.TYPE,
- ['String', 'Object', 'Comparable<String>']));
+ ['String', 'Object', 'Comparable<String>', 'Pattern']));
}
test_undefinedMethod_createUnqualified_returnType() async {

Powered by Google App Engine
This is Rietveld 408576698