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

Side by Side Diff: test/dependency_graph_test.dart

Issue 1235503010: fixes #219, able to compile multiple entry points (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dev_compiler.test.dependency_graph_test; 5 library dev_compiler.test.dependency_graph_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:path/path.dart' as path;
10 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
11 12
12 import 'package:dev_compiler/src/analysis_context.dart'; 13 import 'package:dev_compiler/src/analysis_context.dart';
14 import 'package:dev_compiler/src/compiler.dart';
13 import 'package:dev_compiler/src/options.dart'; 15 import 'package:dev_compiler/src/options.dart';
14 import 'package:dev_compiler/src/dependency_graph.dart';
15 import 'package:dev_compiler/src/report.dart'; 16 import 'package:dev_compiler/src/report.dart';
16 import 'package:dev_compiler/src/testing.dart'; 17 import 'package:dev_compiler/src/server/dependency_graph.dart';
17 import 'package:path/path.dart' as path; 18
19 import 'testing.dart';
18 20
19 void main() { 21 void main() {
20 var options = new CompilerOptions( 22 var options = new CompilerOptions(
21 runtimeDir: '/dev_compiler_runtime/', 23 runtimeDir: '/dev_compiler_runtime/',
22 sourceOptions: new SourceResolverOptions(useMockSdk: true)); 24 sourceOptions: new SourceResolverOptions(useMockSdk: true));
23 MemoryResourceProvider testResourceProvider; 25 MemoryResourceProvider testResourceProvider;
24 ResourceUriResolver testUriResolver; 26 ResourceUriResolver testUriResolver;
25 var context; 27 var context;
26 var graph; 28 var graph;
27 29
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 helper(node); 1170 helper(node);
1169 return sb.toString(); 1171 return sb.toString();
1170 } 1172 }
1171 1173
1172 final runtimeFilesWithoutPath = defaultRuntimeFiles 1174 final runtimeFilesWithoutPath = defaultRuntimeFiles
1173 .map((f) => f.replaceAll('dart/', '')) 1175 .map((f) => f.replaceAll('dart/', ''))
1174 .toList(growable: false); 1176 .toList(growable: false);
1175 final _RUNTIME_GRAPH = runtimeFilesWithoutPath.map((s) => '|-- $s').join('\n'); 1177 final _RUNTIME_GRAPH = runtimeFilesWithoutPath.map((s) => '|-- $s').join('\n');
1176 final _RUNTIME_GRAPH_REBUILD = 1178 final _RUNTIME_GRAPH_REBUILD =
1177 runtimeFilesWithoutPath.map((s) => '|-- $s [needs-rebuild]').join('\n'); 1179 runtimeFilesWithoutPath.map((s) => '|-- $s [needs-rebuild]').join('\n');
OLDNEW
« lib/src/summary.dart ('K') | « test/codegen_test.dart ('k') | test/end_to_end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698