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

Unified Diff: pkg/analysis_services/test/refactoring/abstract_rename.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
« no previous file with comments | « pkg/analysis_services/test/correction/fix_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_services/test/refactoring/abstract_rename.dart
diff --git a/pkg/analysis_services/test/refactoring/abstract_rename.dart b/pkg/analysis_services/test/refactoring/abstract_rename.dart
index eb3c2fb02ab90677ed976dd518730787b9861df8..546b07fce2c1f76d019de22d997b682c6de401b8 100644
--- a/pkg/analysis_services/test/refactoring/abstract_rename.dart
+++ b/pkg/analysis_services/test/refactoring/abstract_rename.dart
@@ -61,9 +61,7 @@ class RenameRefactoringTest extends RefactoringTest {
FileEdit fileEdit = refactoringChange.getFileEdit(testFile);
expect(fileEdit, isNotNull);
// validate resulting code
- // TODO(paulberry): should the code under test be responsible for sorting
- // the edits?
- String actualCode = Edit.applySorted(testCode, fileEdit.edits);
+ String actualCode = Edit.applySequence(testCode, fileEdit.edits);
expect(actualCode, expectedCode);
}
« no previous file with comments | « pkg/analysis_services/test/correction/fix_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698