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

Unified Diff: pkg/barback/test/package_graph/transform/concurrency_test.dart

Issue 189263002: Make Phase.getInput in barback play nicely with the push model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« pkg/barback/lib/src/phase.dart ('K') | « pkg/barback/lib/src/transform_node.dart ('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/transform/concurrency_test.dart
diff --git a/pkg/barback/test/package_graph/transform/concurrency_test.dart b/pkg/barback/test/package_graph/transform/concurrency_test.dart
index c659e610c2cfd8b41bd72a94a19d4c2cb0e4d062..41e3047a5c9e55d6d08b61c5890d00dd918a2927 100644
--- a/pkg/barback/test/package_graph/transform/concurrency_test.dart
+++ b/pkg/barback/test/package_graph/transform/concurrency_test.dart
@@ -470,4 +470,24 @@ main() {
expectNoAsset("app|foo.out1");
expectNoAsset("app|foo.out2");
});
+
+ test("a transformer in a later phase gets a slow secondary input from an "
+ "earlier phase", () {
+ var rewrite = new RewriteTransformer("in", "in");
+ initGraph({
+ "app|foo.in": "foo",
+ "app|bar.txt": "foo.in"
+ }, {"app": [
+ [rewrite],
+ [new ManyToOneTransformer("txt")]
+ ]});
+
+ rewrite.pauseApply();
+ updateSources(["app|foo.in", "app|bar.txt"]);
+ expectAssetDoesNotComplete("app|bar.out");
+
+ rewrite.resumeApply();
+ expectAsset("app|bar.out", "foo.in");
+ buildShouldSucceed();
+ });
}
« pkg/barback/lib/src/phase.dart ('K') | « pkg/barback/lib/src/transform_node.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698