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

Side by Side Diff: pkg/barback/test/transformer/many_to_one.dart

Issue 21004014: Fix cancelable_future again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More library tags. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/test/transformer/create_asset.dart ('k') | pkg/barback/test/transformer/mock.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.test.transformer.many_to_one;
6
5 import 'dart:async'; 7 import 'dart:async';
6 8
7 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
8 import 'package:barback/src/utils.dart'; 10 import 'package:barback/src/utils.dart';
9 11
10 import 'mock.dart'; 12 import 'mock.dart';
11 13
12 /// A transformer that uses the contents of a file to define the other inputs. 14 /// A transformer that uses the contents of a file to define the other inputs.
13 /// 15 ///
14 /// Outputs a file with the same name as the primary but with an "out" 16 /// Outputs a file with the same name as the primary but with an "out"
(...skipping 20 matching lines...) Expand all
35 return getInput(transform, id).then((input) => input.readAsString()); 37 return getInput(transform, id).then((input) => input.readAsString());
36 })); 38 }));
37 }).then((outputs) { 39 }).then((outputs) {
38 var id = transform.primaryId.changeExtension(".out"); 40 var id = transform.primaryId.changeExtension(".out");
39 transform.addOutput(new Asset.fromString(id, outputs.join())); 41 transform.addOutput(new Asset.fromString(id, outputs.join()));
40 }); 42 });
41 } 43 }
42 44
43 String toString() => "many->1 $extension"; 45 String toString() => "many->1 $extension";
44 } 46 }
OLDNEW
« no previous file with comments | « pkg/barback/test/transformer/create_asset.dart ('k') | pkg/barback/test/transformer/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698