| Index: pkg/dartino_compiler/tests/compiler_api_test.dart
|
| diff --git a/pkg/fletchc/tests/compiler_api_test.dart b/pkg/dartino_compiler/tests/compiler_api_test.dart
|
| similarity index 52%
|
| rename from pkg/fletchc/tests/compiler_api_test.dart
|
| rename to pkg/dartino_compiler/tests/compiler_api_test.dart
|
| index 202118e4b344498c039db95f4ab20cdec28c9ea4..d2420784f40367863257e02879d51c54211b6c37 100644
|
| --- a/pkg/fletchc/tests/compiler_api_test.dart
|
| +++ b/pkg/dartino_compiler/tests/compiler_api_test.dart
|
| @@ -2,44 +2,44 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE.md file.
|
|
|
| -library fletchc.compiler_api_test;
|
| +library dartino_compiler.compiler_api_test;
|
|
|
| -import 'package:fletchc/compiler.dart' show
|
| - FletchCompiler;
|
| +import 'package:dartino_compiler/compiler.dart' show
|
| + DartinoCompiler;
|
|
|
| import 'package:expect/expect.dart' show
|
| Expect;
|
|
|
| main(List<String> arguments) {
|
| - var compiler = new FletchCompiler();
|
| + var compiler = new DartinoCompiler();
|
| Expect.throws(compiler.run, (e) => e is StateError);
|
|
|
| Expect.throws(
|
| - () => new FletchCompiler(packageConfig: 0),
|
| + () => new DartinoCompiler(packageConfig: 0),
|
| (e) => e is ArgumentError && '$e'.contains("packageConfig"));
|
|
|
| Expect.throws(
|
| - () => new FletchCompiler(libraryRoot: 0),
|
| + () => new DartinoCompiler(libraryRoot: 0),
|
| (e) => e is ArgumentError && '$e'.contains("libraryRoot"));
|
|
|
| Expect.throws(
|
| - () => new FletchCompiler(libraryRoot: '/dev/null'),
|
| + () => new DartinoCompiler(libraryRoot: '/dev/null'),
|
| (e) => e is ArgumentError && '$e'.contains("Dart SDK library not found"));
|
|
|
| Expect.throws(
|
| - () => new FletchCompiler(script: 0),
|
| + () => new DartinoCompiler(script: 0),
|
| (e) => e is ArgumentError && '$e'.contains("script"));
|
|
|
| - new FletchCompiler(script: "lib/system/system.dart").run();
|
| + new DartinoCompiler(script: "lib/system/system.dart").run();
|
|
|
| - new FletchCompiler(script: Uri.parse("lib/system/system.dart")).run();
|
| + new DartinoCompiler(script: Uri.parse("lib/system/system.dart")).run();
|
|
|
| - new FletchCompiler(
|
| + new DartinoCompiler(
|
| script: Uri.base.resolve("lib/system/system.dart")).run();
|
|
|
| - new FletchCompiler().run("lib/system/system.dart");
|
| + new DartinoCompiler().run("lib/system/system.dart");
|
|
|
| - new FletchCompiler().run(Uri.parse("lib/system/system.dart"));
|
| + new DartinoCompiler().run(Uri.parse("lib/system/system.dart"));
|
|
|
| - new FletchCompiler().run(Uri.base.resolve("lib/system/system.dart"));
|
| + new DartinoCompiler().run(Uri.base.resolve("lib/system/system.dart"));
|
| }
|
|
|