| Index: lib/src/testing.dart
|
| diff --git a/lib/src/testing.dart b/lib/src/testing.dart
|
| index bdb3120b37d8f2ce8789fba369b59c266a757783..51a7bed068ef7707eec459678e6464c871837cbf 100644
|
| --- a/lib/src/testing.dart
|
| +++ b/lib/src/testing.dart
|
| @@ -23,6 +23,8 @@ import 'package:dev_compiler/src/report.dart';
|
| import 'package:dev_compiler/config.dart';
|
| import 'package:dev_compiler/devc.dart' show Compiler;
|
|
|
| +import 'dependency_graph.dart' show runtimeFilesForServerMode;
|
| +
|
| /// Run the checker on a program with files contents as indicated in
|
| /// [testFiles].
|
| ///
|
| @@ -67,6 +69,7 @@ CheckerResults testChecker(Map<String, String> testFiles,
|
| nonnullableTypes: nonnullableTypes,
|
| useMockSdk: sdkDir == null,
|
| dartSdkPath: sdkDir,
|
| + runtimeDir: '/dev_compiler_runtime/',
|
| entryPointFile: '/main.dart');
|
| var resolver = sdkDir == null
|
| ? new TypeResolver.fromMock(mockSdkSources, options,
|
| @@ -278,6 +281,11 @@ class TestUriResolver extends UriResolver {
|
| var uri = key.startsWith('package:') ? Uri.parse(key) : new Uri.file(key);
|
| files[uri] = new TestSource(uri, value);
|
| });
|
| +
|
| + runtimeFilesForServerMode.forEach((filepath) {
|
| + var uri = Uri.parse('/dev_compiler_runtime/$filepath');
|
| + files[uri] = new TestSource(uri, '/* test contents of $filepath */');
|
| + });
|
| }
|
|
|
| Source resolveAbsolute(Uri uri) {
|
|
|