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

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

Issue 1044463004: Gracefully degrade if no source for completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Gracefully degrade if no source for completion Created 5 years, 9 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_server/test/domain_completion_test.dart
diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart
index b2122ac09dc5c34729228c902c955ca87c186960..e727c6c70e9b184ed364bb840136f2fef1571881 100644
--- a/pkg/analysis_server/test/domain_completion_test.dart
+++ b/pkg/analysis_server/test/domain_completion_test.dart
@@ -602,6 +602,11 @@ class MockContext implements AnalysisContext {
return source.contents;
}
+ @override
+ bool exists(Source source) {
+ return source != null && source.exists();
+ }
+
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}

Powered by Google App Engine
This is Rietveld 408576698