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

Unified Diff: pkg/analyzer/test/src/task/strong/strong_test_helper.dart

Issue 2404703002: Fix more tests under windows (Closed)
Patch Set: Created 4 years, 2 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/test/src/summary/pub_summary_test.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/task/strong/strong_test_helper.dart
diff --git a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
index ccf33e02ba67914733842bac59e21c21c1685605..601a26ebe51bb4ad750509b490a889cb507556df 100644
--- a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
+++ b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
@@ -46,7 +46,7 @@ bool _checkCalled;
/// For a single file, you may also use [checkFile].
void addFile(String content, {String name: '/main.dart'}) {
name = name.replaceFirst('^package:', '/packages/');
- files.newFile(name, content);
+ files.newFile(files.convertPath(name), content);
}
/// Run the checker on a program, staring from '/main.dart', and verifies that
@@ -62,7 +62,7 @@ CompilationUnit check(
List<String> nonnullableTypes: AnalysisOptionsImpl.NONNULLABLE_TYPES}) {
_checkCalled = true;
- expect(files.getFile('/main.dart').exists, true,
+ expect(files.getFile(files.convertPath('/main.dart')).exists, true,
reason: '`/main.dart` is missing');
var uriResolver = new _TestUriResolver(files);
« no previous file with comments | « pkg/analyzer/test/src/summary/pub_summary_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698