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

Unified Diff: pkg/analysis_server/test/abstract_context.dart

Issue 2681733007: When addSource() in tests, call both addFile() and changeFile(). (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/abstract_context.dart
diff --git a/pkg/analysis_server/test/abstract_context.dart b/pkg/analysis_server/test/abstract_context.dart
index 6b9a5aed3047df5ae8ebb7a6161fda9db8f3f72d..e3c4b93508e4d74bdf0e32d153e602c63efb2595 100644
--- a/pkg/analysis_server/test/abstract_context.dart
+++ b/pkg/analysis_server/test/abstract_context.dart
@@ -86,6 +86,7 @@ class AbstractContextTest {
File file = newFile(path, content);
if (enableNewAnalysisDriver) {
driver.addFile(path);
+ driver.changeFile(path);
Brian Wilkerson 2017/02/09 16:43:54 Should `addFile` be extended to also always do the
scheglov 2017/02/09 16:48:03 In general - no. We just allow us to be a bit slop
_fileContentOverlay[path] = content;
return null;
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698