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

Unified Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2719793002: debug MemoryResourceProvider on Windows (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 | « pkg/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/builder_test.dart
diff --git a/pkg/analyzer/test/src/context/builder_test.dart b/pkg/analyzer/test/src/context/builder_test.dart
index 83e059329844874a986cc88fb19345bfd8553651..2ebe18294ba0b41580d92ed6e5a7eb7d75f51921 100644
--- a/pkg/analyzer/test/src/context/builder_test.dart
+++ b/pkg/analyzer/test/src/context/builder_test.dart
@@ -722,24 +722,32 @@ linter:
AnalysisOptionsImpl expected = new AnalysisOptionsImpl();
expected.lint = true;
expected.lintRules = <Linter>[_mockLintRule];
+ String packagesFilePath =
+ resourceProvider.convertPath('/some/directory/path/.packages');
+ print('>>> packages: $packagesFilePath');
+ createFile(packagesFilePath, 'flutter:/pkg/flutter/lib/');
+ String optionsFilePath = resourceProvider
+ .convertPath('/pkg/flutter/lib/analysis_options_user.yaml');
+ print('>>> options: $optionsFilePath');
createFile(
- resourceProvider.convertPath('/some/directory/path/.packages'),
- '''
-flutter:/pkg/flutter/lib/
-''');
- createFile(
- resourceProvider
- .convertPath('/pkg/flutter/lib/analysis_options_user.yaml'),
+ optionsFilePath,
'''
linter:
rules:
- mock_lint_rule
''');
- AnalysisOptions options = builder.getAnalysisOptions(
- resourceProvider.convertPath('/some/directory/path'));
+ String projPath = resourceProvider.convertPath('/some/directory/path');
+ AnalysisOptions options = builder.getAnalysisOptions(projPath);
// TODO(danrubel) fix on Windows
if (resourceProvider.absolutePathContext.separator != r'\') {
_expectEqualOptions(options, expected);
+ } else {
+ // echo some debugging information
+ print('>>> projPath: $projPath');
+ print('>>> ${builderOptions.defaultAnalysisOptionsFilePath}');
+ print('>>> getOptionsFile: ${builder.getOptionsFile(projPath)}');
+ _expectEqualOptions(options, expected);
+ fail('>>>>>>> Fail to echo test output on bots <<<<<<<');
}
}
« no previous file with comments | « pkg/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698