| Index: tests/utils/dummy_compiler_test.dart
|
| diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
|
| index 2e858f0287f498f0dc923ad58c23f83ba2584502..cf573377c0a749a875fd87903f3467d0499008a7 100644
|
| --- a/tests/utils/dummy_compiler_test.dart
|
| +++ b/tests/utils/dummy_compiler_test.dart
|
| @@ -52,13 +52,13 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
|
|
|
| main() {
|
| asyncStart();
|
| - Future<String> result =
|
| + Future<CompilationResult> result =
|
| compile(new Uri(scheme: 'main'),
|
| new Uri(scheme: 'lib', path: '/'),
|
| new Uri(scheme: 'package', path: '/'),
|
| provider, handler);
|
| - result.then((String code) {
|
| - if (code == null) {
|
| + result.then((CompilationResult result) {
|
| + if (!result.isSuccess) {
|
| throw 'Compilation failed';
|
| }
|
| }, onError: (e, s) {
|
|
|