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

Side by Side Diff: test/transformer/loads_a_lazy_aggregate_transformer_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 24 matching lines...) Expand all
35 } 35 }
36 36
37 void declareOutputs(DeclaringAggregateTransform transform) { 37 void declareOutputs(DeclaringAggregateTransform transform) {
38 transform.declareOutput(new AssetId(transform.package, 38 transform.declareOutput(new AssetId(transform.package,
39 p.url.join(transform.key, 'out.txt'))); 39 p.url.join(transform.key, 'out.txt')));
40 } 40 }
41 } 41 }
42 """; 42 """;
43 43
44 main() { 44 main() {
45 initConfig();
46 withBarbackVersions(">=0.14.1", () { 45 withBarbackVersions(">=0.14.1", () {
47 integration("loads a lazy aggregate transformer", () { 46 integration("loads a lazy aggregate transformer", () {
48 d.dir(appPath, [ 47 d.dir(appPath, [
49 d.pubspec({ 48 d.pubspec({
50 "name": "myapp", 49 "name": "myapp",
51 "transformers": ["myapp"] 50 "transformers": ["myapp"]
52 }), 51 }),
53 d.dir("lib", [ 52 d.dir("lib", [
54 d.file("transformer.dart", AGGREGATE_TRANSFORMER), 53 d.file("transformer.dart", AGGREGATE_TRANSFORMER),
55 ]), 54 ]),
56 d.dir("web", [ 55 d.dir("web", [
57 d.file("foo.txt", "foo"), 56 d.file("foo.txt", "foo"),
58 d.file("bar.txt", "bar") 57 d.file("bar.txt", "bar")
59 ]) 58 ])
60 ]).create(); 59 ]).create();
61 60
62 createLockFile('myapp', pkg: ['barback']); 61 createLockFile('myapp', pkg: ['barback']);
63 62
64 var server = pubServe(); 63 var server = pubServe();
65 // The transformer should preserve laziness. 64 // The transformer should preserve laziness.
66 server.stdout.expect("Build completed successfully"); 65 server.stdout.expect("Build completed successfully");
67 66
68 requestShouldSucceed("out.txt", "bar\nfoo"); 67 requestShouldSucceed("out.txt", "bar\nfoo");
69 endPubServe(); 68 endPubServe();
70 }); 69 });
71 }); 70 });
72 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698