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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/self_host_test.dart
diff --git a/test/checker/self_host_test.dart b/test/checker/self_host_test.dart
index 111a5226cafb5d0bb84147370c41550634c49d9d..4a35f96f56e3639ec8b55fd35d5db069ef697cf9 100644
--- a/test/checker/self_host_test.dart
+++ b/test/checker/self_host_test.dart
@@ -7,21 +7,20 @@ library ddc.test.end_to_end;
import 'dart:io';
import 'package:cli_util/cli_util.dart' show getSdkDir;
-import 'package:dev_compiler/devc.dart' show compile;
+import 'package:dev_compiler/devc.dart' show Compiler;
import 'package:dev_compiler/src/options.dart';
-import 'package:dev_compiler/src/report.dart';
-import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver;
import 'package:path/path.dart' as path;
import 'package:unittest/compact_vm_config.dart';
import 'package:unittest/unittest.dart';
main(args) {
useCompactVMConfiguration();
- var options = new CompilerOptions();
- var realSdk = new TypeResolver.fromDir(getSdkDir(args).path, options);
var testDir = path.absolute(path.dirname(Platform.script.path));
test('checker can run on itself ', () {
- compile('$testDir/../all_tests.dart', realSdk, options, new LogReporter());
+ var options = new CompilerOptions(
+ entryPointFile: '$testDir/../all_tests.dart',
+ dartSdkPath: getSdkDir(args).path);
+ new Compiler(options).run();
});
}
« 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