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

Unified Diff: pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart

Issue 2614903006: Run 'Rename Library' refactoring tests with the new analysis driver. (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
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/rename_library_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
diff --git a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
index 486ee982830ba1f9e1e7e4612435ee2c24ba9257..a57c9888f782be85519ecab86303eec13e5ef357 100644
--- a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
+++ b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
@@ -62,8 +62,7 @@ abstract class RefactoringTest extends AbstractSingleUnitTest {
expect(fileEdit, isNotNull, reason: 'No file edit for $path');
// validate resulting code
File file = provider.getResource(path);
- Source source = file.createSource();
- String ini = context.getContents(source).data;
+ String ini = file.readAsStringSync();
String actualCode = SourceEdit.applySequence(ini, fileEdit.edits);
expect(actualCode, expectedCode);
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/rename_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698