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

Unified Diff: pkg/analysis_services/test/correction/fix_test.dart

Issue 473563003: Sort separate Edits in FileEdit during adding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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_services/test/correction/fix_test.dart
diff --git a/pkg/analysis_services/test/correction/fix_test.dart b/pkg/analysis_services/test/correction/fix_test.dart
index 476f3196e9faf4d0ca7486f2eb8a1af62db059f5..4a755ab97dab6a9af3c6d571815d4332b71e87af 100644
--- a/pkg/analysis_services/test/correction/fix_test.dart
+++ b/pkg/analysis_services/test/correction/fix_test.dart
@@ -41,9 +41,7 @@ class FixProcessorTest extends AbstractSingleUnitTest {
// apply to "file"
List<FileEdit> fileEdits = change.fileEdits;
expect(fileEdits, hasLength(1));
- // TODO(paulberry): should the code under test be responsible for sorting
- // the edits?
- resultCode = Edit.applySorted(testCode, change.fileEdits[0].edits);
+ resultCode = Edit.applySequence(testCode, change.fileEdits[0].edits);
// verify
expect(resultCode, expected);
}
« no previous file with comments | « pkg/analysis_services/test/correction/change_test.dart ('k') | pkg/analysis_services/test/refactoring/abstract_rename.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698