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

Unified Diff: test/end_to_end_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/dependency_graph_test.dart ('k') | test/test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/end_to_end_test.dart
diff --git a/test/end_to_end_test.dart b/test/end_to_end_test.dart
index ba0f79953f3ba1f85473a9e1475b473cd369bc8f..6cb101ca34eac1afd6b42de41316f9d2d2c91726 100644
--- a/test/end_to_end_test.dart
+++ b/test/end_to_end_test.dart
@@ -7,22 +7,18 @@
library ddc.test.end_to_end;
import 'dart:io';
-import 'package:dev_compiler/devc.dart' show compile;
-import 'package:dev_compiler/src/checker/dart_sdk.dart' show mockSdkSources;
-import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver;
+import 'package:dev_compiler/devc.dart' show Compiler;
import 'package:dev_compiler/src/options.dart';
import 'package:dev_compiler/src/report.dart';
import 'package:path/path.dart' as path;
import 'package:unittest/unittest.dart';
main() {
- var options = new CompilerOptions();
- var mockSdk = new TypeResolver.fromMock(mockSdkSources, options);
-
var testDir = path.absolute(path.dirname(Platform.script.path));
-
_check(testfile) {
- compile('$testDir/$testfile.dart', mockSdk, options, new LogReporter());
+ var options = new CompilerOptions(
+ entryPointFile: '$testDir/$testfile.dart', useMockSdk: true);
+ new Compiler(options).run();
}
test('checker runs correctly (end-to-end)', () {
« no previous file with comments | « test/dependency_graph_test.dart ('k') | test/test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698