| Index: tests/compiler/dart2js/codegen_helper.dart
|
| diff --git a/tests/compiler/dart2js/codegen_helper.dart b/tests/compiler/dart2js/codegen_helper.dart
|
| index c99fc49e3866c117b9202f1e3ca37ae8e1257f07..1e1dec8df926ecd28ebf2b1c35b26a48a513f9a8 100644
|
| --- a/tests/compiler/dart2js/codegen_helper.dart
|
| +++ b/tests/compiler/dart2js/codegen_helper.dart
|
| @@ -4,6 +4,7 @@
|
|
|
| import 'dart:async';
|
| import 'package:expect/expect.dart';
|
| +import 'package:compiler/compiler_new.dart' show CompilerOptions;
|
| import 'package:compiler/src/null_compiler_output.dart';
|
| import 'memory_source_file_helper.dart';
|
|
|
| @@ -16,14 +17,15 @@ Future<Map<String, String>> generate(String code,
|
| var provider = new MemorySourceFileProvider({ 'main.dart': code });
|
| var handler = new FormattingDiagnosticHandler(provider);
|
|
|
| + Uri uri = Uri.parse('memory:main.dart');
|
| CompilerImpl compiler = new CompilerImpl(provider,
|
| const NullCompilerOutput(),
|
| handler,
|
| - libraryRoot,
|
| - packageRoot,
|
| - options,
|
| - {});
|
| - Uri uri = Uri.parse('memory:main.dart');
|
| + new CompilerOptions.parse(
|
| + entryPoint: uri,
|
| + libraryRoot: libraryRoot,
|
| + packageRoot: packageRoot,
|
| + options: options));
|
| return compiler.run(uri).then((success) {
|
| Expect.isTrue(success);
|
| Map<String, String> result = new Map<String, String>();
|
|
|