| Index: dart/tests/compiler/dart2js/deprecated_features_test.dart
|
| diff --git a/dart/tests/compiler/dart2js/deprecated_features_test.dart b/dart/tests/compiler/dart2js/deprecated_features_test.dart
|
| index 8cd931f9b30331ed73c28914d81df5b3a789fc6d..88dd6b776cf1cb031609f7324f1f27c5cad28614 100644
|
| --- a/dart/tests/compiler/dart2js/deprecated_features_test.dart
|
| +++ b/dart/tests/compiler/dart2js/deprecated_features_test.dart
|
| @@ -4,8 +4,10 @@
|
|
|
| // Test that deprecated language features are diagnosed correctly.
|
|
|
| -import '../../../sdk/lib/_internal/compiler/compiler.dart';
|
| +import 'dart:async';
|
| import 'dart:uri';
|
| +
|
| +import '../../../sdk/lib/_internal/compiler/compiler.dart';
|
| import '../../utils/dummy_compiler_test.dart' as dummy;
|
|
|
| main() {
|
| @@ -31,10 +33,11 @@ main() {
|
| return (new Completer<String>()..complete(source)).future;
|
| }
|
|
|
| - String code = compile(new Uri.fromComponents(scheme: 'main'),
|
| - new Uri.fromComponents(scheme: 'lib', path: '/'),
|
| - new Uri.fromComponents(scheme: 'package', path: '/'),
|
| - provider, handler).value;
|
| + String code = deprecatedFutureValue(
|
| + compile(new Uri.fromComponents(scheme: 'main'),
|
| + new Uri.fromComponents(scheme: 'lib', path: '/'),
|
| + new Uri.fromComponents(scheme: 'package', path: '/'),
|
| + provider, handler));
|
| if (code == null) {
|
| throw 'Compilation failed: ${messages}';
|
| }
|
|
|