| Index: sdk/lib/_internal/pub/test/transformer/exclusion/includes_before_excludes_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/transformer/exclusion/includes_before_excludes_test.dart b/sdk/lib/_internal/pub/test/transformer/exclusion/includes_before_excludes_test.dart
|
| index 4d7f436d00cce592805deb0dd112400f9618fcb5..b6200195a6f5b9623cfa3a3f910784294290c2e1 100644
|
| --- a/sdk/lib/_internal/pub/test/transformer/exclusion/includes_before_excludes_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/transformer/exclusion/includes_before_excludes_test.dart
|
| @@ -10,35 +10,37 @@ import '../../serve/utils.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration("applies includes before excludes if both are present", () {
|
| - d.dir(appPath, [
|
| - d.pubspec({
|
| - "name": "myapp",
|
| - "transformers": [
|
| - {
|
| - "myapp/src/transformer": {
|
| - "\$include": ["web/a.txt", "web/b.txt"],
|
| - "\$exclude": "web/a.txt"
|
| + withBarbackVersions("any", () {
|
| + integration("applies includes before excludes if both are present", () {
|
| + d.dir(appPath, [
|
| + d.pubspec({
|
| + "name": "myapp",
|
| + "transformers": [
|
| + {
|
| + "myapp/src/transformer": {
|
| + "\$include": ["web/a.txt", "web/b.txt"],
|
| + "\$exclude": "web/a.txt"
|
| + }
|
| }
|
| - }
|
| - ]
|
| - }),
|
| - d.dir("lib", [d.dir("src", [
|
| - d.file("transformer.dart", REWRITE_TRANSFORMER)
|
| - ])]),
|
| - 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.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']);
|
| + createLockFile('myapp', pkg: ['barback']);
|
|
|
| - pubServe();
|
| - requestShould404("a.out");
|
| - requestShouldSucceed("b.out", "b.txt.out");
|
| - requestShould404("c.out");
|
| - endPubServe();
|
| + pubServe();
|
| + requestShould404("a.out");
|
| + requestShouldSucceed("b.out", "b.txt.out");
|
| + requestShould404("c.out");
|
| + endPubServe();
|
| + });
|
| });
|
| }
|
|
|