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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/loads_an_aggregate_transformer_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 pub_tests; 5 library pub_tests;
6 6
7 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 import '../serve/utils.dart'; 9 import '../serve/utils.dart';
10 10
(...skipping 21 matching lines...) Expand all
32 transform.addOutput(new Asset.fromString(id, contents.join('\\n'))); 32 transform.addOutput(new Asset.fromString(id, contents.join('\\n')));
33 }); 33 });
34 } 34 }
35 } 35 }
36 """; 36 """;
37 37
38 main() { 38 main() {
39 initConfig(); 39 initConfig();
40 withBarbackVersions(">=0.14.1", () { 40 withBarbackVersions(">=0.14.1", () {
41 integration("loads an aggregate transformer", () { 41 integration("loads an aggregate transformer", () {
42 d.dir(appPath, [ 42 d.dir(appPath, [d.pubspec({
43 d.pubspec({
44 "name": "myapp", 43 "name": "myapp",
45 "transformers": ["myapp"] 44 "transformers": ["myapp"]
46 }), 45 }),
47 d.dir("lib", [ 46 d.dir("lib", [d.file("transformer.dart", AGGREGATE_TRANSFORMER),]),
48 d.file("transformer.dart", AGGREGATE_TRANSFORMER), 47 d.dir("web", [d.file("foo.txt", "foo"), d.file("bar.txt", "bar")])]) .create();
49 ]),
50 d.dir("web", [
51 d.file("foo.txt", "foo"),
52 d.file("bar.txt", "bar")
53 ])
54 ]).create();
55 48
56 createLockFile('myapp', pkg: ['barback']); 49 createLockFile('myapp', pkg: ['barback']);
57 50
58 pubServe(); 51 pubServe();
59 requestShouldSucceed("out.txt", "bar\nfoo"); 52 requestShouldSucceed("out.txt", "bar\nfoo");
60 endPubServe(); 53 endPubServe();
61 }); 54 });
62 }); 55 });
63 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698