| 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);
|
|
|