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

Unified Diff: pkg/barback/test/package_graph/group_test.dart

Issue 281383004: Fix a bug when loading secondary assets in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/package_graph/group_test.dart
diff --git a/pkg/barback/test/package_graph/group_test.dart b/pkg/barback/test/package_graph/group_test.dart
index 468cb8c249f91503d573636a63d3abd32d4babb6..4e2cb443d665e312fc29905504c974947f645fd8 100644
--- a/pkg/barback/test/package_graph/group_test.dart
+++ b/pkg/barback/test/package_graph/group_test.dart
@@ -449,4 +449,25 @@ main() {
updateSources(["app|foo.a", "app|foo.x"]);
buildShouldFail([isAssetCollisionException("app|foo.c")]);
});
+
+ // Regression test for issue 18872.
+ test("a multi-phase group's outputs should be visible as secondary inputs "
+ "for a following group", () {
+ initGraph({
+ "app|foo.txt": "bar.c",
+ "app|bar.a": "bar"
+ }, {"app": [
+ [new TransformerGroup([
+ [new RewriteTransformer("a", "b")],
+ [new RewriteTransformer("b", "c")]
+ ])],
+ [new TransformerGroup([
+ [new ManyToOneTransformer("txt")]
+ ])]
+ ]});
+
+ updateSources(["app|foo.txt", "app|bar.a"]);
+ expectAsset("app|foo.out", "bar.b.c");
+ buildShouldSucceed();
+ });
}
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698