Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Unified Diff: dart/tests/compiler/dart2js/deprecated_features_test.dart

Issue 11788016: Update dart2js unit tests to new library API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tests/compiler/dart2js/dart_backend_test.dart ('k') | dart/tests/compiler/dart2js/for_in_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
Johnni Winther 2013/01/07 14:39:27 Well, that is ironic; to use a deprecated feature
if (code == null) {
throw 'Compilation failed: ${messages}';
}
« no previous file with comments | « dart/tests/compiler/dart2js/dart_backend_test.dart ('k') | dart/tests/compiler/dart2js/for_in_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698