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

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

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: tests/compiler/dart2js/analyze_only_test.dart
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart
index 394fe0d1749639553c9eceea6531c91fe721fb2f..9c5546236feb3ab0a29eecd5229b1f51fcfc59cd 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -19,7 +19,7 @@ runCompiler(String main, List<String> options,
Future<String> localProvider(Uri uri) {
if (uri.scheme != 'main') return dummy.provider(uri);
- return new Future<String>.immediate(main);
+ return new Future<String>.value(main);
}
void localHandler(Uri uri, int begin, int end,

Powered by Google App Engine
This is Rietveld 408576698