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

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

Issue 2927873002: Another attempt to fix the windows tests (Closed)
Patch Set: Created 3 years, 6 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/completion/dart/completion_contributor_util.dart » ('j') | 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 4e3eb07e9db121013ee5935436e4fa7ac1e0980e..c5fb943c7330344598e1a641f52a4e810dbc7e01 100644
--- a/pkg/analysis_server/test/abstract_context.dart
+++ b/pkg/analysis_server/test/abstract_context.dart
@@ -98,6 +98,9 @@ class Required {
}
Source addSource(String path, String content, [Uri uri]) {
+ if (path.startsWith('/')) {
+ path = provider.convertPath(path);
+ }
File file = newFile(path, content);
Source source = file.createSource(uri);
if (enableNewAnalysisDriver) {
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698