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

Unified Diff: pkg/barback/test/utils.dart

Issue 19841002: Remove calls to [new Future] work around issue 11911. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change. Created 7 years, 5 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 | « pkg/barback/lib/src/utils.dart ('k') | pkg/unittest/lib/src/test_case.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/utils.dart
diff --git a/pkg/barback/test/utils.dart b/pkg/barback/test/utils.dart
index 1dda69732701e3f061a98731eec0cbecf30098bb..fcda96266b3e226e1f6c97f9b8d42f64fb9f8072 100644
--- a/pkg/barback/test/utils.dart
+++ b/pkg/barback/test/utils.dart
@@ -516,7 +516,7 @@ class BadTransformer extends Transformer {
Future<bool> isPrimary(Asset asset) => new Future.value(true);
Future apply(Transform transform) {
- return new Future(() {
+ return newFuture(() {
// Create the outputs first.
for (var output in outputs) {
var id = new AssetId.parse(output);
@@ -538,7 +538,7 @@ class CreateAssetTransformer extends Transformer {
Future<bool> isPrimary(Asset asset) => new Future.value(true);
Future apply(Transform transform) {
- return new Future(() {
+ return newFuture(() {
transform.addOutput(new MockAsset(new AssetId.parse(output), output));
});
}
« no previous file with comments | « pkg/barback/lib/src/utils.dart ('k') | pkg/unittest/lib/src/test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698