| Index: tests/utils/dummy_compiler_test.dart
|
| diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
|
| index 9f1685956ce3b92b40b71244a0e2eff3226d7f42..5bd9dce662330073cd98e9048969cc882f845033 100644
|
| --- a/tests/utils/dummy_compiler_test.dart
|
| +++ b/tests/utils/dummy_compiler_test.dart
|
| @@ -79,11 +79,16 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
|
| }
|
|
|
| main() {
|
| - String code = compile(new Uri.fromComponents(scheme: 'main'),
|
| - new Uri.fromComponents(scheme: 'lib', path: '/'),
|
| - new Uri.fromComponents(scheme: 'package', path: '/'),
|
| - provider, handler).value;
|
| - if (code == null) {
|
| - throw 'Compilation failed';
|
| - }
|
| + Future<String> result =
|
| + compile(new Uri.fromComponents(scheme: 'main'),
|
| + new Uri.fromComponents(scheme: 'lib', path: '/'),
|
| + new Uri.fromComponents(scheme: 'package', path: '/'),
|
| + provider, handler);
|
| + result.then((String code) {
|
| + if (code == null) {
|
| + throw 'Compilation failed';
|
| + }
|
| + }, onError: (AsyncError e) {
|
| + throw 'Compilation failed';
|
| + });
|
| }
|
|
|