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

Side by Side Diff: test/transformer/exclusion/works_on_aggregate_transformer_test.dart

Issue 1530353002: Drop support for older Barback versions. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years 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 18 matching lines...) Expand all
29 }).then((contents) { 29 }).then((contents) {
30 var id = new AssetId(transform.package, 30 var id = new AssetId(transform.package,
31 p.url.join(transform.key, 'out.txt')); 31 p.url.join(transform.key, 'out.txt'));
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 withBarbackVersions(">=0.14.1", () { 39 integration("works on an aggregate transformer", () {
40 integration("works on an aggregate transformer", () { 40 d.dir(appPath, [
41 d.dir(appPath, [ 41 d.pubspec({
42 d.pubspec({ 42 "name": "myapp",
43 "name": "myapp", 43 "transformers": [
44 "transformers": [ 44 {
45 { 45 "myapp": {
46 "myapp": { 46 "\$include": ["web/a.txt", "web/b.txt", "web/c.txt"],
47 "\$include": ["web/a.txt", "web/b.txt", "web/c.txt"], 47 "\$exclude": "web/a.txt"
48 "\$exclude": "web/a.txt"
49 }
50 } 48 }
51 ] 49 }
52 }), 50 ]
53 d.dir("lib", [ 51 }),
54 d.file("transformer.dart", AGGREGATE_TRANSFORMER), 52 d.dir("lib", [
55 ]), 53 d.file("transformer.dart", AGGREGATE_TRANSFORMER),
56 d.dir("web", [ 54 ]),
57 d.file("a.txt", "a"), 55 d.dir("web", [
58 d.file("b.txt", "b"), 56 d.file("a.txt", "a"),
59 d.file("c.txt", "c"), 57 d.file("b.txt", "b"),
60 d.file("d.txt", "d") 58 d.file("c.txt", "c"),
61 ]) 59 d.file("d.txt", "d")
62 ]).create(); 60 ])
61 ]).create();
63 62
64 createLockFile('myapp', pkg: ['barback']); 63 createLockFile('myapp', pkg: ['barback']);
65 64
66 pubServe(); 65 pubServe();
67 requestShouldSucceed("out.txt", "b\nc"); 66 requestShouldSucceed("out.txt", "b\nc");
68 endPubServe(); 67 endPubServe();
69 });
70 }); 68 });
71 } 69 }
OLDNEW
« no previous file with comments | « test/transformer/exclusion/includes_before_excludes_test.dart ('k') | test/transformer/exclusion/works_on_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698