Index: sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_transformer_group_test.dart |
diff --git a/sdk/lib/_internal/pub/test/transformer/exclusion/works_on_transformer_group_test.dart b/sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_transformer_group_test.dart |
similarity index 57% |
copy from sdk/lib/_internal/pub/test/transformer/exclusion/works_on_transformer_group_test.dart |
copy to sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_transformer_group_test.dart |
index 27fd71cbe70f577b9ed6cd0c47c4cf39ef8fa14a..b5b8927227c9f30cf52acd15e19b0a1b38c7dbbf 100644 |
--- a/sdk/lib/_internal/pub/test/transformer/exclusion/works_on_transformer_group_test.dart |
+++ b/sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_transformer_group_test.dart |
@@ -1,13 +1,7 @@ |
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
library pub_tests; |
- |
import '../../descriptor.dart' as d; |
import '../../test_pub.dart'; |
import '../../serve/utils.dart'; |
- |
const GROUP = """ |
import 'package:barback/barback.dart'; |
@@ -19,36 +13,34 @@ class RewriteGroup implements TransformerGroup { |
Iterable<Iterable> get phases => [[new RewriteTransformer.asPlugin()]]; |
} |
"""; |
- |
main() { |
initConfig(); |
withBarbackVersions("any", () { |
integration("works on a transformer group", () { |
- d.dir(appPath, [ |
- d.pubspec({ |
+ d.dir(appPath, [d.pubspec({ |
"name": "myapp", |
- "transformers": [ |
- { |
+ "transformers": [{ |
"myapp/src/group": { |
"\$include": ["web/a.txt", "web/b.txt"], |
"\$exclude": "web/a.txt" |
} |
- } |
- ] |
+ }] |
}), |
- d.dir("lib", [d.dir("src", [ |
- d.file("transformer.dart", REWRITE_TRANSFORMER), |
- d.file("group.dart", GROUP) |
- ])]), |
- d.dir("web", [ |
- d.file("a.txt", "a.txt"), |
- d.file("b.txt", "b.txt"), |
- d.file("c.txt", "c.txt") |
- ]) |
- ]).create(); |
- |
+ d.dir( |
+ "lib", |
+ [ |
+ d.dir( |
+ "src", |
+ [ |
+ d.file("transformer.dart", REWRITE_TRANSFORMER), |
+ d.file("group.dart", GROUP)])]), |
+ d.dir( |
+ "web", |
+ [ |
+ d.file("a.txt", "a.txt"), |
+ d.file("b.txt", "b.txt"), |
+ d.file("c.txt", "c.txt")])]).create(); |
createLockFile('myapp', pkg: ['barback']); |
- |
pubServe(); |
requestShould404("a.out"); |
requestShouldSucceed("b.out", "b.txt.out"); |