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

Unified Diff: test/end_to_end_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 side-by-side diff with in-line comments
Download patch
Index: test/end_to_end_test.dart
diff --git a/test/end_to_end_test.dart b/test/end_to_end_test.dart
index 04a8455f8e3fdfa28208ee2ea9c7a2217fb44066..7515240816db7afd083bfb60b5cacbdaddf7d3f2 100644
--- a/test/end_to_end_test.dart
+++ b/test/end_to_end_test.dart
@@ -6,18 +6,16 @@
/// SDK.
library dev_compiler.test.end_to_end;
-import 'package:dev_compiler/devc.dart' show Compiler;
+import 'package:dev_compiler/devc.dart';
import 'package:dev_compiler/src/options.dart';
import 'package:test/test.dart';
-import 'test_util.dart' show testDirectory;
+import 'testing.dart' show realSdkContext, testDirectory;
main() {
- _check(testFile) {
- var options = new CompilerOptions(
- sourceOptions: new SourceResolverOptions(
- useMockSdk: true, entryPointFile: '$testDirectory/$testFile.dart'));
- new Compiler(options).run();
- }
+ var mockSdkContext = createAnalysisContextWithSources(
+ new StrongModeOptions(), new SourceResolverOptions(useMockSdk: true));
+ var compiler = new BatchCompiler(mockSdkContext, new CompilerOptions());
+ _check(file) => compiler.compileFromUriString('$testDirectory/$file.dart');
test('checker runs correctly (end-to-end)', () {
_check('samples/funwithtypes');

Powered by Google App Engine
This is Rietveld 408576698