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

Side by Side Diff: test/dependency_graph_test.dart

Issue 1014573003: Adding Travis CI and Coveralls support (Closed) Base URL: https://github.com/dart-lang/dart-dev-compiler.git@master
Patch Set: Created 5 years, 9 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:unittest/compact_vm_config.dart';
8 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
9 8
10 import 'package:dev_compiler/src/checker/dart_sdk.dart' 9 import 'package:dev_compiler/src/checker/dart_sdk.dart'
11 show mockSdkSources, dartSdkDirectory; 10 show mockSdkSources, dartSdkDirectory;
12 import 'package:dev_compiler/src/testing.dart'; 11 import 'package:dev_compiler/src/testing.dart';
13 import 'package:dev_compiler/src/options.dart'; 12 import 'package:dev_compiler/src/options.dart';
14 import 'package:dev_compiler/src/checker/resolver.dart'; 13 import 'package:dev_compiler/src/checker/resolver.dart';
15 import 'package:dev_compiler/src/dependency_graph.dart'; 14 import 'package:dev_compiler/src/dependency_graph.dart';
16 import 'package:dev_compiler/src/report.dart'; 15 import 'package:dev_compiler/src/report.dart';
17 import 'package:path/path.dart' as path; 16 import 'package:path/path.dart' as path;
18 17
19 main() { 18 import 'test_util.dart';
20 groupSep = " > "; 19
21 useCompactVMConfiguration(); 20 void main() {
21 configureTest();
22 22
23 var options = new CompilerOptions(); 23 var options = new CompilerOptions();
24 var testUriResolver; 24 var testUriResolver;
25 var context; 25 var context;
26 var graph; 26 var graph;
27 27
28 /// Initial values for test files 28 /// Initial values for test files
29 var testFiles = { 29 var testFiles = {
30 '/index1.html': ''' 30 '/index1.html': '''
31 <script src="foo.js"></script> 31 <script src="foo.js"></script>
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 ..write(e.structureChanged ? '[structure-changed] ' : ' ') 1234 ..write(e.structureChanged ? '[structure-changed] ' : ' ')
1235 ..write('\n'); 1235 ..write('\n');
1236 }); 1236 });
1237 } 1237 }
1238 } 1238 }
1239 helper(node); 1239 helper(node);
1240 return sb.toString(); 1240 return sb.toString();
1241 } 1241 }
1242 1242
1243 bool _same(Set a, Set b) => a.length == b.length && a.containsAll(b); 1243 bool _same(Set a, Set b) => a.length == b.length && a.containsAll(b);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698