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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/loads_a_declaring_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 27 matching lines...) Expand all
38 transform.declareOutput(new AssetId(transform.package, 38 transform.declareOutput(new AssetId(transform.package,
39 p.url.join(transform.key, 'out.final'))); 39 p.url.join(transform.key, 'out.final')));
40 } 40 }
41 } 41 }
42 """; 42 """;
43 43
44 main() { 44 main() {
45 initConfig(); 45 initConfig();
46 withBarbackVersions(">=0.14.1", () { 46 withBarbackVersions(">=0.14.1", () {
47 integration("loads a declaring aggregate transformer", () { 47 integration("loads a declaring aggregate transformer", () {
48 d.dir(appPath, [ 48 d.dir(appPath, [d.pubspec({
49 d.pubspec({
50 "name": "myapp", 49 "name": "myapp",
51 "transformers": ["myapp/lazy", "myapp/aggregate"] 50 "transformers": ["myapp/lazy", "myapp/aggregate"]
52 }), 51 }),
53 d.dir("lib", [ 52 d.dir(
54 d.file("lazy.dart", LAZY_TRANSFORMER), 53 "lib",
55 d.file("aggregate.dart", AGGREGATE_TRANSFORMER), 54 [
56 ]), 55 d.file("lazy.dart", LAZY_TRANSFORMER),
57 d.dir("web", [ 56 d.file("aggregate.dart", AGGREGATE_TRANSFORMER),]),
58 d.file("foo.txt", "foo"), 57 d.dir("web", [d.file("foo.txt", "foo"), d.file("bar.txt", "bar")])]) .create();
59 d.file("bar.txt", "bar")
60 ])
61 ]).create();
62 58
63 createLockFile('myapp', pkg: ['barback']); 59 createLockFile('myapp', pkg: ['barback']);
64 60
65 var server = pubServe(); 61 var server = pubServe();
66 // The transformer should preserve laziness. 62 // The transformer should preserve laziness.
67 server.stdout.expect("Build completed successfully"); 63 server.stdout.expect("Build completed successfully");
68 64
69 requestShouldSucceed("out.final", "bar.out\nfoo.out"); 65 requestShouldSucceed("out.final", "bar.out\nfoo.out");
70 endPubServe(); 66 endPubServe();
71 }); 67 });
72 }); 68 });
73 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698