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

Side by Side Diff: test/checker/self_host_test.dart

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/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
« no previous file with comments | « test/all_tests.dart ('k') | test/codegen/dir/html_input_b.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// Tests that run the checker end-to-end using the file system. 5 /// Tests that run the checker end-to-end using the file system.
6 library ddc.test.end_to_end; 6 library ddc.test.end_to_end;
7 7
8 import 'dart:io'; 8 import 'dart:io';
9 import 'package:cli_util/cli_util.dart' show getSdkDir; 9 import 'package:cli_util/cli_util.dart' show getSdkDir;
10 import 'package:dev_compiler/devc.dart' show compile; 10 import 'package:dev_compiler/devc.dart' show Compiler;
11 import 'package:dev_compiler/src/options.dart'; 11 import 'package:dev_compiler/src/options.dart';
12 import 'package:dev_compiler/src/report.dart';
13 import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver;
14 import 'package:path/path.dart' as path; 12 import 'package:path/path.dart' as path;
15 import 'package:unittest/compact_vm_config.dart'; 13 import 'package:unittest/compact_vm_config.dart';
16 import 'package:unittest/unittest.dart'; 14 import 'package:unittest/unittest.dart';
17 15
18 main(args) { 16 main(args) {
19 useCompactVMConfiguration(); 17 useCompactVMConfiguration();
20 var options = new CompilerOptions();
21 var realSdk = new TypeResolver.fromDir(getSdkDir(args).path, options);
22 var testDir = path.absolute(path.dirname(Platform.script.path)); 18 var testDir = path.absolute(path.dirname(Platform.script.path));
23 19
24 test('checker can run on itself ', () { 20 test('checker can run on itself ', () {
25 compile('$testDir/../all_tests.dart', realSdk, options, new LogReporter()); 21 var options = new CompilerOptions(
22 entryPointFile: '$testDir/../all_tests.dart',
23 dartSdkPath: getSdkDir(args).path);
24 new Compiler(options).run();
26 }); 25 });
27 } 26 }
OLDNEW
« no previous file with comments | « test/all_tests.dart ('k') | test/codegen/dir/html_input_b.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698