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

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

Issue 1147543002: [WEB-16445] When create a missing imported library/part, add the edit once. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »
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 1b4af7d502dab1bbf60f7cf31a1d3e78bebac9db..f09f8c6f74229f3025449a126dcdcf2369c80e6c 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -1055,6 +1055,7 @@ import 'my_file.dart';
SourceFileEdit fileEdit = change.edits[0];
expect(fileEdit.file, '/my/project/bin/my_file.dart');
expect(fileEdit.fileStamp, -1);
+ expect(fileEdit.edits, hasLength(1));
expect(fileEdit.edits[0].replacement, contains('library my.file;'));
}
@@ -1073,6 +1074,7 @@ part 'my_part.dart';
SourceFileEdit fileEdit = change.edits[0];
expect(fileEdit.file, '/my/project/bin/my_part.dart');
expect(fileEdit.fileStamp, -1);
+ expect(fileEdit.edits, hasLength(1));
expect(fileEdit.edits[0].replacement, contains('part of my.lib;'));
}
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698